Help Making Admin Command
#6

Use this inside of the strcmp:

pawn Код:
if (strcmp())
{
  if (!IsPlayerAdmin(playerid)) { return // message here }
}
The strcmp being your /weapon and if not RCON admin you just return SendClientMessage() that they are not RCON admin and it will exit the function so no more processing is done, hence why it is only one line.
Reply


Messages In This Thread
Help Making Admin Command - by Warren - 10.10.2011, 00:57
Re: Help Making Admin Command - by TheLazySloth - 10.10.2011, 01:03
Re: Help Making Admin Command - by Warren - 10.10.2011, 01:10
Re: Help Making Admin Command - by TheLazySloth - 10.10.2011, 01:11
Re: Help Making Admin Command - by Warren - 10.10.2011, 01:43
Re: Help Making Admin Command - by GrimR - 10.10.2011, 02:01
Re: Help Making Admin Command - by [HiC]TheKiller - 10.10.2011, 02:05
Re: Help Making Admin Command - by GrimR - 10.10.2011, 02:30
Re: Help Making Admin Command - by grand.Theft.Otto - 10.10.2011, 02:48
Re: Help Making Admin Command - by TheLazySloth - 10.10.2011, 02:58

Forum Jump:


Users browsing this thread: 3 Guest(s)