Admin Message Command
#10

Quote:
Originally Posted by Drago987
Посмотреть сообщение
Here is the whole command with Defines
pawn Код:
stock IsAdmin( playerid )
{
    if(PlayerInfo[playerid][pAdmin]<=2) return 1;
    return 0;
}
It should be >=, because you want if the player's admin level is greater or equal to 2, return true (that he's indeed an admin), else if it's level 0 or 1 (that he's not an admin).
Reply


Messages In This Thread
Admin Message Command - by Drago987 - 14.09.2013, 21:45
Re: Admin Message Command - by EiresJason - 14.09.2013, 23:21
Re: Admin Message Command - by Drago987 - 15.09.2013, 11:50
Re: Admin Message Command - by EiresJason - 15.09.2013, 12:54
Re: Admin Message Command - by Drago987 - 15.09.2013, 13:13
Re: Admin Message Command - by Drago987 - 15.09.2013, 13:15
Re: Admin Message Command - by EiresJason - 15.09.2013, 14:07
Re: Admin Message Command - by Drago987 - 15.09.2013, 14:24
Re: Admin Message Command - by EiresJason - 15.09.2013, 15:24
Re: Admin Message Command - by Konstantinos - 15.09.2013, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)