11.07.2009, 10:32
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.
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;
}

