Admin cmd
#9

Quote:
Originally Posted by Grim_
Then you need to make some to hold the admin level of the players. For example:
pawn Код:
new AdminLevel[MAX_PLAYERS];

// then in the command
if(AdminLevel[playerid] >= 1)
{
  // do the command action
}
Etc, etc.
i tried what u told me new AdminLevel[MAX_PLAYERS]; is already defined...

and i have this
pawn Код:
if(strcmp(cmd, "/ago", true)==0 && PlayerInfo[playerid][AdminLevel] >= 5)
    {
    MoveDynamicObject(Agate, 2298.9436035156, 604.76196289063, 12.568704605103,5);
    return 1;
    }
It compiles perfect...but doesnt work....
Reply


Messages In This Thread
Admin cmd - by ColdXX - 28.05.2010, 22:33
Re: Admin cmd - by (SF)Noobanatior - 28.05.2010, 22:35
Re: Admin cmd - by Grim_ - 28.05.2010, 22:36
Re: Admin cmd - by ColdXX - 28.05.2010, 22:37
Re: Admin cmd - by Grim_ - 28.05.2010, 22:38
Re: Admin cmd - by (SF)Noobanatior - 28.05.2010, 22:39
Re: Admin cmd - by ColdXX - 28.05.2010, 22:43
Re: Admin cmd - by Grim_ - 28.05.2010, 22:47
Re: Admin cmd - by ColdXX - 28.05.2010, 22:49
Re: Admin cmd - by Antonio [G-RP] - 28.05.2010, 23:06

Forum Jump:


Users browsing this thread: 1 Guest(s)