SendPrivMsg
Revision as of 17:16, 29 October 2024 by Habi (talk | contribs) (Created page with "{{v1_8_beta}} {{Welcome|desc=This function sends a private message to another player.| params=<source>(playerid, message)</source> <poem> ::playerid : The ID of the target player to whom private message is to be send. ::message : The message to send. </poem>| example=<source> function OnPlayerStreamIn(playerid) { SendPrivMsg(playerid, "Come near me"); } </source>| retvals=true on success, false on failure(invalid playerid)| relfuncs=*SendChat}}")
This function was added in v1.8 beta and will not work on previous versions.
Description:
This function sends a private message to another player.
Parameters:
(playerid, message)
playerid : The ID of the target player to whom private message is to be send.
message : The message to send.
Return Values:
true on success, false on failure(invalid playerid)
Example
function OnPlayerStreamIn(playerid) { SendPrivMsg(playerid, "Come near me"); }
Related Functions
The following functions may be helpful as they relate to this function in one way or another.