Command without /
#4

Just treat OnPlayerText as if it was OnPlayerCommandText itself. You need to be reminded that you must return false after doing this, otherwise it would be ejected into global chat.

Here's a little example.

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(aPlayer[playerid][bAtComputer]) // Make your own variable here...
  {
    // Your code here
    return false;
  }

  return true;
}
Reply


Messages In This Thread
Command without / - by Abernethy - 11.07.2009, 10:17
Re: Command without / - by Anarkien - 11.07.2009, 10:19
Re: Command without / - by Abernethy - 11.07.2009, 10:28
Re: Command without / - by Westie - 11.07.2009, 10:32
Re: Command without / - by saiberfun - 11.07.2009, 10:34
Re: Command without / - by Abernethy - 11.07.2009, 10:40
Re: Command without / - by happyface - 11.07.2009, 10:45
Re: Command without / - by Abernethy - 11.07.2009, 10:50
Re: Command without / - by Westie - 11.07.2009, 10:55

Forum Jump:


Users browsing this thread: 1 Guest(s)