14.08.2014, 00:53
new pInfo[MAX_PLAYERS][PlayerInfo]; you have, PlayerInfo[playerid][AdminLevel]<5
I would recommend doing this instead.
Then all you need to do is write, CMDLEVEL(5); much easier when you have a lot of commands.
I would recommend doing this instead.
pawn Код:
#define CMDLEVEL(%0) if(!IsPlayerAdmin(playerid)|| pInfo[playerid][AdminLevel]< %0) return SendClientMessage(playerid,0xFF0000FF,"You're not authorized to use that command");