Admin status check
#6

Quote:
Originally Posted by Typhome
Посмотреть сообщение
pawn Код:
forward IsAdmin(playerid);

public IsAdmin(playerid)
{
    if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 3)
    {
        return 1;
    }
    return 0;
}
or what? :S
Would be a solution but I prefer a macro

pawn Код:
#define IsAdmin(%0) PlayerInfo[%0][pAdmin]
that would check if PlayerInfo[playerid][pAdmin] would be logically true (means != 0)
Reply


Messages In This Thread
Admin status check - by Typhome - 23.09.2010, 16:07
Re: Admin status check - by DeathOnaStick - 23.09.2010, 16:10
Re: Admin status check - by DarkPower - 23.09.2010, 16:21
Re: Admin status check - by Typhome - 23.09.2010, 16:27
Re: Admin status check - by DeathOnaStick - 23.09.2010, 16:31
AW: Re: Admin status check - by Nero_3D - 23.09.2010, 16:32
Re: Admin status check - by Typhome - 23.09.2010, 16:33
Re: Admin status check - by DeathOnaStick - 23.09.2010, 16:35

Forum Jump:


Users browsing this thread: 2 Guest(s)