Anti Health Hack Help +REP!
#9

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?
Reply


Messages In This Thread
Anti Health Hack Help +REP! - by TheMightyEddy - 07.04.2012, 03:51
Re: Anti Health Hack Help +REP! - by Reklez - 07.04.2012, 03:55
Re: Anti Health Hack Help +REP! - by TheMightyEddy - 07.04.2012, 03:57
Re: Anti Health Hack Help +REP! - by Reklez - 07.04.2012, 03:59
Re: Anti Health Hack Help +REP! - by TheMightyEddy - 07.04.2012, 04:03
Re: Anti Health Hack Help +REP! - by Reklez - 07.04.2012, 04:03
Re: Anti Health Hack Help +REP! - by TheMightyEddy - 07.04.2012, 04:07
Re: Anti Health Hack Help +REP! - by Rob_Maate - 07.04.2012, 04:10
Re: Anti Health Hack Help +REP! - by TheMightyEddy - 07.04.2012, 04:15
Re: Anti Health Hack Help +REP! - by Rob_Maate - 07.04.2012, 04:29

Forum Jump:


Users browsing this thread: 3 Guest(s)