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
- string text
- float r (optional)
- float g (optional)
- float b (optional)
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "hello" )
Message( "Hello from " + player.Name ); // everybody sees it
}Related pages
Section: Messages and chat
Categories: Client functions | Messages and chat