Squirrel/Server/Functions/Server/SetGamemodeName

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|SetGamemodeName}} Changes the name of the gamemode. == Syntax == <code>bool SetGamemodeName( string name )</code> == Arguments == * '''name''' - The name you…')
 
m (Redirect issue fix)
 
Line 30: Line 30:
 
== Related Functions ==
 
== Related Functions ==
  
{{Squirrel/Functions/Server}}
+
{{Squirrel/Server/Functions/Server}}

Latest revision as of 18:34, 15 January 2012

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

Changes the name of the gamemode.

[edit] Syntax

  1. bool SetGamemodeName( string name )

[edit] Arguments

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

[edit] 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.  

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox