05.08.2011, 12:43
You wan't still to use IsPlayerAdmin(playerid), yes?
You won't player [pHelper] and [pAdmin] with level 2 or greater use this command. Change >= to <= if you wan't to let players with greater levels or 2 use this.
You won't player [pHelper] and [pAdmin] with level 2 or greater use this command. Change >= to <= if you wan't to let players with greater levels or 2 use this.
pawn Код:
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] < 2 || PlayerInfo[playerid][pHelper] < 2)
{
SendClientMessage(playerid, 0xFF4646FF, "You are not authorized to use that command !");
return true;
}