Quote:
Originally Posted by Typhome
pawn Код:
forward IsAdmin(playerid);
public IsAdmin(playerid) { if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 3) { return 1; } return 0; }
or what? :S
|
Would be a solution but I prefer a macro
pawn Код:
#define IsAdmin(%0) PlayerInfo[%0][pAdmin]
that would check if PlayerInfo[playerid][pAdmin] would be logically true (means != 0)