Difference between revisions of "LUA:SendMessage"
(Created page with "This function will send a message to a player in their chatbox. The last parameter is optional, leaving it blank defaults to white, you may also use "yellow" or "red". ==== Synt...") |
(No difference)
|
Latest revision as of 18:54, 9 May 2013
This function will send a message to a player in their chatbox. The last parameter is optional, leaving it blank defaults to white, you may also use "yellow" or "red".
Syntax
SendMessage(target, "message string", ["color name string"])
Usage
function Example(Player) SendMessage(Player, "You must be between the two torches along the barricade line on Pilgrims' Landing to use this.", "yellow") end
When Example() is called the player involved will be sent a message "You must be between the two torches along the barricade line on Pilgrims' Landing to use this." in their chatbox with a color of yellow.