03.12.2015, 22:35
return 0 on the OnPlayerText, you can add your own stuff there. Direct example from wiki.
PHP код:
public OnPlayerText(playerid, text[])
{
new pText[144];
format(pText, sizeof (pText), "(%d) %s", playerid, text);
SendPlayerMessageToAll(playerid, pText);
return 0; // ignore the default text and send the custom one
}