Scripting/Client/Functions/Message

Adds a local chat line (nobody else sees it). Colours are 0-255; pass all three or none. Inline [#RRGGBB] tags work.

Syntax

Message(text [, r, g, b])

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "hello" )
		Message( "Hello from " + player.Name );      // everybody sees it
}

Section: Messages and chat

Categories: Client functions | Messages and chat