24.11.2015, 03:00
Change this:
to this:
The ! checks if the player isn't an admin, if he isn't it will send him the message, if he is it will grant the command.
IsPlayerAdmin(playerid) = Admin
!IsPlayerAdmin(playerid) = Not Admin
pawn Код:
if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You must be admin");
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You must be admin");
IsPlayerAdmin(playerid) = Admin
!IsPlayerAdmin(playerid) = Not Admin