OnPlayerText
From SA-MP
[edit]
OnPlayerText
This callback is called when a player types some chat text (any text not starting with /).
(playerid, text)
| playerid | ID of the player who typed the text. |
| text[] | The text the player entered. |
| Returns | 0 - Don't display the text the player typed. |
| Returns | 1 - Display the text the player typed. |
[edit]
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SendPlayerMessageToPlayer: sends a Message that looks like a chat message to a player.
- SendPlayerMessageToAll: sends a Message that looks like a chat message to all.
