Scripting/Server/Functions/MessagePlayer

Sends a chat line to one player. The optional colour is a Colour(r,g,b) instance or an integer 0xRRGGBB; the default is white. Note the order: text first, then the player.

Syntax

MessagePlayer(text, player [, colour])

Arguments

Example

function onPlayerJoin( player )
{
	MessagePlayer( "Welcome to my server!", player, Colour( 0, 255, 128 ) );
}

Section: Messages and chat

Categories: Server functions | Messages and chat