17.10.2011, 09:19
Quote:
The samp public function should be called OnPlayerCommandText not OnPlayerText.
I believe that's why your commands are not being recognized. |
pawn Код:
public OnPlayerText(playerid, text[])
{
new textv2[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
SendPlayerMessageToAll(playerid, textv2);
return 0; // ignore the default text and send the custom one
}