Squirrel/Server/Functions/Server/SetGamemodeName
From Liberty Unleashed Wiki
(Difference between revisions)
(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
Changes the name of the gamemode.
[edit] Syntax
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'
function onPlayerCommand( id, cmd, text ) { if ( cmd == "changename" ) { SetGamemodeName( text ); } }
[edit] Notes
The call onPlayerCommand was also used in the example. More info about this in the corresponding page.