Posts: 303
Threads: 71
Joined: Mar 2011
Quote:
Originally Posted by Rob_Maate
What... No.
Create a function
pawn Код:
stock Admin(playerid, level) { if(AccInfo[playerid][Level] >= level) return true; return false; }
In your code, use the function as follows
pawn Код:
CMD:retard(playerid, params[]) { if(Admin(playerid, 2)) { //Party } }
To check if the player is NOT an admin of that level
if(!Admin(playerid, 3))
|
Hmm I don't get it. I don't think it will work. Any other ways? I just need it so that I can replace "#define Admin YourAdminScript" YourAdminScript with mine but what do I put there for Lux Admin?