24.02.2014, 08:13
pawn Код:
CMD:setlevel(playerid,params[])
{
new ID, level;
if(pInfo[playerid][pAdmin] < 3) // change 3 to owner level
{
SendClientMessage(playerid,COLOR_WHITE,"{B30000}[ERROR] {FFFFFF}You don't have access to this command.");
return 1;
}
if(sscanf(params,"ii", ID, level))
{
SendClientMessage(playerid,COLOR_WHITE,"{B30000}[ERROR] {FFFFFF}USAGE: /setlevel [playerid] [Level]");
return 1;
}
pInfo[ID][pAdmin] = level;
return 1;
}