SendPlayerMessageToPlayer

From SA-MP Wiki

Jump to: navigation, search


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.


Parameters:
(playerid, senderid, const message[])
playeridThe playerid you would like to send it to.
senderidThe sender's ID. If invalid, the message will not be sent.
const message[]The string of text you would like to send.


ReturnsThis 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.


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.
Personal tools