05.10.2014, 10:45
hi guys! I need your help! I need a command /setlevel [account id] [level]... please
rep++
rep++
CMD:setlevel(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 10)
{
if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setlevel [playerid] [level]");
PlayerInfo[giveplayerid][pLevel] = amount;
SendClientMessage(playerid, COLOR_GRAY, "You are not authorized to use that command!");
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}