Disable / enable a command
#4

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
Thats for blocking all commands.
No it's not, it's for a single command. Blocking all commands would be like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  return 0;
  if(!strcmp(cmdtext, "/cmd1", true)
  {
    //.......
    return 1;
  }
   if(!strcmp(cmdtext, "/cmd2", true)
  {
    //.......
    return 1;
  }
  if(!strcmp(cmdtext, "/cmd3", true)
  {
    //.......
    return 1;
  }
}

Reply


Messages In This Thread
Disable / enable a command - by rellyboy105 - 05.06.2010, 23:26
Re: Disable / enable a command - by [HiC]TheKiller - 06.06.2010, 01:51
Re: Disable / enable a command - by Antonio [G-RP] - 06.06.2010, 01:55
Re: Disable / enable a command - by [HiC]TheKiller - 06.06.2010, 01:58
Re: Disable / enable a command - by rellyboy105 - 06.06.2010, 02:53
Re: Disable / enable a command - by Scenario - 06.06.2010, 02:57
Re: Disable / enable a command - by Antonio [G-RP] - 06.06.2010, 02:58
Re: Disable / enable a command - by rellyboy105 - 06.06.2010, 02:59
Re: Disable / enable a command - by [HiC]TheKiller - 06.06.2010, 03:05
Re: Disable / enable a command - by rellyboy105 - 06.06.2010, 03:09

Forum Jump:


Users browsing this thread: 1 Guest(s)