05.04.2013, 16:44
Also whats nice to save a lot of coding is make some defines like this........
or....
Then simply put....
CMDLEVEL(5);
COMMUNITYLEVEL(4);
Best way to do these things neatly
Code:
#define CMDLEVEL(%0) if(PlayerInfo[playerid][pAdmin] < %0 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You do not have the privilege to use that command.")
Code:
#define COMMUNITYLEVEL(%0) if(PlayerInfo[playerid][pAdmin] <= %0) return SendClientMessage(playerid, COLOR_SILVER, "You must be atleast a Community Owner to use this command!");
CMDLEVEL(5);
COMMUNITYLEVEL(4);
Best way to do these things neatly