SendPlayerMessageToAll
From SA-MP Wiki
SendPlayerMessageToAll
This function can be used to send a message from a player to everyone else player. The line will start with the sender's name in his color, followed by the message in white.
(senderid, const message[])
| senderid | The sender's ID. If invalid, the message will not be sent. |
| const message[] | The string of text you would like to send. |
This function does not return a specific value.
SendPlayerMessageToAll(sender, "Hello there!");
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SendPlayerMessageToPlayer: Force a player to send text for one player.
- SendClientMessageToAll: Send a message to all players.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerText: Called when a player sends a message via the chat.
