24.09.2012, 20:16
Then here's an example how to make it for RCON admins so see
To make this Command only for admins add this : if(IsPlayerAdmin(playerid))
It should look like this:
I don't know how you defined the admin level in your Game Mode, so I can't help much.
Example : I've defined the admin level as "PlayerInfo[playerid][AdminLevel]"
And the CMD will look like this :
pawn Код:
CMD:laseron(playerid, params[])
{
//the code is here blah blah
return 1;
}
It should look like this:
pawn Код:
CMD:laseron(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
// The code is here blah blah
}
return 1;
}
Example : I've defined the admin level as "PlayerInfo[playerid][AdminLevel]"
And the CMD will look like this :
pawn Код:
CMD:laseron(playerid, params[])
{
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][AdminLevel] >= 1) // If the player is RCON admin or lvl 1 + Admin
{
// The code is here blah blah
}
return 1;
}

