SetGamemodeName

From Liberty Unleashed Wiki
Revision as of 18:34, 15 January 2012 by SugarD (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

Changes the name of the gamemode.

Syntax

  1. bool SetGamemodeName( string name )

Arguments

  • name - The name you want to change the gamemode to

Example

This example will change the name of the gamemode when someone types '/changename Liberty Unleashed Server'

  1.  
  2. function onPlayerCommand( id, cmd, text )
  3. {
  4. if ( cmd == "changename" )
  5. {
  6. SetGamemodeName( text );
  7. }
  8. }
  9.  

Notes

The call onPlayerCommand was also used in the example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox