Scripting/Server/Functions/SmallMessage

Shows a small game message at the bottom of that player's screen. timeMs defaults to 5000, type to 0.

Syntax

SmallMessage(player, text [, timeMs [, type]])

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "smallmessage" )
	{
		SmallMessage( player, "Hello world" );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Messages and chat

Categories: Server functions | Messages and chat