/laseron for Admins
#4

Then here's an example how to make it for RCON admins so see

pawn Код:
CMD:laseron(playerid, params[])
{
      //the code is here blah blah
      return 1;
}
To make this Command only for admins add this : if(IsPlayerAdmin(playerid))

It should look like this:

pawn Код:
CMD:laseron(playerid, params[])
{
     if(IsPlayerAdmin(playerid))
     {
            // The code is here blah blah
     }
     return 1;  
}
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[])
{
     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;  
}
Reply


Messages In This Thread
/laseron for Admins - by Blackazur - 24.09.2012, 19:55
Re: /laseron for Admins - by MarTaTa - 24.09.2012, 20:02
AW: /laseron for Admins - by Blackazur - 24.09.2012, 20:04
Re: /laseron for Admins - by MarTaTa - 24.09.2012, 20:16
Re: /laseron for Admins - by necrobg3 - 24.09.2012, 20:19
AW: /laseron for Admins - by Blackazur - 24.09.2012, 20:36
Re: AW: /laseron for Admins - by jueix - 24.09.2012, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)