admin level
#1

Welcome I am attached to the admin team add code that could be used by a team of level 3 but does not work

codew command admin

Quote:

dcmd_freeze(playerid, params[])
{
if(pInfo[playerid][AdminLevelis] < 2)
{
new id, priez[128];
if (sscanf(params, "dz", id, priez)) return SendClientMessage(playerid, COLOR_ADMINZALIA, "[Teisingas naudojimas]: /freeze [playerid] [prieћastis]");
if (IsPlayerConnected(id))
{
new string[128]; new zaid[128];
GetPlayerName(id,zaid,sizeof(zaid));
format(string,sizeof(string),"[INFO ADMIN]: %s uћљaldytas. (Prieћastis: %s).",zaid, priez);
SendClientMessageToAll(COLOR_RAUDONA, string);
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
PlayerPlaySound(id,1057,0.0,0.0,0.0);
TogglePlayerControllable(id,0);
}
else
{
SendClientMessage(playerid, COLOR_ADMINZALIA,"[KLAIDA]: Zaidejas nerastas!");
}
}
else
{
SendClientMessage(playerid, COLOR_RAUDONA,"INFO: Tu ne rcon administratorius");
}
return 1;
}

sorry i very bad speak english

Renisil
Reply
#2

Quote:
Originally Posted by RenisiL
Welcome I am attached to the admin team add code that could be used by a team of level 3 but does not work

code command admin

Quote:

dcmd_freeze(playerid, params[])
{
if(pInfo[playerid][AdminLevelis] < 2)
{
new id, priez[128];
if (sscanf(params, "dz", id, priez)) return SendClientMessage(playerid, COLOR_ADMINZALIA, "[Teisingas naudojimas]: /freeze [playerid] [prieћastis]");
if (IsPlayerConnected(id))
{
new string[128]; new zaid[128];
GetPlayerName(id,zaid,sizeof(zaid));
format(string,sizeof(string),"[INFO ADMIN]: %s uћљaldytas. (Prieћastis: %s).",zaid, priez);
SendClientMessageToAll(COLOR_RAUDONA, string);
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
PlayerPlaySound(id,1057,0.0,0.0,0.0);
TogglePlayerControllable(id,0);
}
else
{
SendClientMessage(playerid, COLOR_ADMINZALIA,"[KLAIDA]: Zaidejas nerastas!");
}
}
else
{
SendClientMessage(playerid, COLOR_RAUDONA,"INFO: Tu ne rcon administratorius");
}
return 1;
}

sorry i very bad speak english

Renisil
Reply
#3

Stop bumping.
Reported.
Reply
#4

'You can bump topics when the last reply is at least 12 hours old.'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)