Y_INI question
#9

Also whats nice to save a lot of coding is make some defines like this........

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.")
or....

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!");
Then simply put....

CMDLEVEL(5);
COMMUNITYLEVEL(4);

Best way to do these things neatly
Reply


Messages In This Thread
Y_INI question - by Anjh - 05.04.2013, 16:29
Re: Y_INI question - by SilverKiller - 05.04.2013, 16:31
Re: Y_INI question - by Tamer - 05.04.2013, 16:32
Re: Y_INI question - by Anjh - 05.04.2013, 16:34
Re: Y_INI question - by SilverKiller - 05.04.2013, 16:36
Re: Y_INI question - by Pottus - 05.04.2013, 16:38
Re: Y_INI question - by Anjh - 05.04.2013, 16:39
Re: Y_INI question - by SilverKiller - 05.04.2013, 16:43
Re: Y_INI question - by Pottus - 05.04.2013, 16:44
Re: Y_INI question - by Anjh - 05.04.2013, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)