SendPrivMsg

From NPC for VCMP 0.4 Servers
Revision as of 17:17, 29 October 2024 by Habi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.