05.10.2014, 12:24
As I don`t have your variables you`ll have to change the script but here`s the idea:
Код:
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; }