Scripting/Squirrel/Functions/SetGameModeText

From Vice City Multiplayer
Revision as of 09:11, 9 March 2016 by Xmair (talk | contribs)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function will set the gamemode text to be shown in the client browser.

Syntax

SetGameModeName( gamemodetext )

Arguments

  • string gamemodetext - The game mode name to be set

Example

function onPlayerCommand ( player , cmd , text )
{
 if ( cmd == "gamemodename" )
 {
 if ( !text ) MessagePlayer("/gamemodename [ Gamemode name ]" , player)
 else SetGameModeName( text.tostring( ) ), MessagePlayer( "You changed the gamemode's name to " +text + "!" , player);
 }

- Xmair.

Notes

Call onPlayerCommand was used in this example.


Related Functions