Quick Question
#2

pawn Код:
if(PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
{
   // do something
}
This will do a check like, if the player typing the command is level 1 or bigger, do something.
If you wanted a specific level, change it to this:

pawn Код:
if(PlayerInfo[playerid][pHelper] == 1 || PlayerInfo[playerid][pAdmin] == 1)
{
   // do something
}
Notice the >= is now ==.
Reply


Messages In This Thread
Quick Question - by TKZ227 - 31.05.2010, 18:20
Re: Quick Question - by Lewwy - 31.05.2010, 18:21
Re: Quick Question - by DJDhan - 31.05.2010, 18:23
Re: Quick Question - by TKZ227 - 31.05.2010, 18:39
Re: Quick Question - by TKZ227 - 31.05.2010, 19:27
Re: Quick Question - by azzerking - 31.05.2010, 19:40

Forum Jump:


Users browsing this thread: 1 Guest(s)