Squirrel/Server/Functions/Server/SetMapName
From Liberty Unleashed Wiki
(Difference between revisions)
m (→Notes: Fixed broken link to onPlayerCommand) |
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 map name of the server.
[edit] Syntax
bool SetMapName( string name )
[edit] Arguments
- name - The name you want to change it to
[edit] Example
This example will change the mapname of the server when someone types '/changename Liberty City'
function OnPlayerCommand( id, cmd, text ) { if ( cmd == "changename" ) { SetMapName( text ); } }
[edit] Notes
The call onPlayerCommand was also used in the example. More info about this in the corresponding page.