Posts: 303
Threads: 71
Joined: Mar 2011
So I'm trying to follow this tutorial:
https://sampforum.blast.hk/showthread.php?tid=303695
And when it says
Код:
#define Admin IsPlayerAdmin
what should I put to replace IsPlayerAdmin? I don't want all rcon admins. I'm want to use the Lux Admin system instead of the rcon admin system which the lux admin script is located here:
https://sampforum.blast.hk/showthread.php?tid=120724
Please help?
Posts: 303
Threads: 71
Joined: Mar 2011
No not combining. Lux Admin is a seperate filterscript. I want it so that I can put the anti-health hack in my GM script and when an admin health hacks or uses admin commands to add health or put god mode on, then he/she won't get banned.
Posts: 303
Threads: 71
Joined: Mar 2011
Quote:
Originally Posted by Reklez
pawn Код:
#define AccInfo[playerid][Level]
|
Do I fill in the playerid and the level?
Posts: 559
Threads: 50
Joined: Mar 2012
Reputation:
0
yes but i don't know if it works. but give it a try
Posts: 303
Threads: 71
Joined: Mar 2011
Okay I will thanks but before I do that, what do I fill the playerid and the level in with?
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?
Posts: 434
Threads: 19
Joined: Aug 2011
Reputation:
0
IsPlayerAdmin is the RCON administrator check correct?
My function simply returns if the player is a script admin of said level.