SendPlayerMessageToPlayer
From SA-MP Wiki
This function can be used to send a message from a player to a certain player. The line will start with the sender's name in his color, followed by the message in white.
(playerid, senderid, const message[])
| playerid | The playerid you would like to send it to. |
| senderid | The sender's ID. If invalid, the message will not be sent. |
| const message[] | The string of text you would like to send. |
| Returns | This function doesn't return a specific value |
SendPlayerMessageToPlayer(recipient, sender, "Hello there!");
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SendPlayerMessageToAll: Force a player to send text for all players.
- SendClientMessage: Send a message to a certain player.
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.
