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
- Player player
- string text
- int timeMs (optional) –
timeMsdefaults to 5000,typeto 0. - int type (optional) –
timeMsdefaults to 5000,typeto 0.
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.
Related pages
- Message
- MessagePlayer
- MessageAllExcept
- SendPlayerMessage
- BigMessage
- HelpMessage
- PagerMessage
- ClearMessages
- PlayFrontEndSound
- PlaySuspectLastSeen
Section: Messages and chat
Categories: Server functions | Messages and chat