Squirrel/Server/Functions/Server/SetMapName
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|SetMapName}} Changes the map name of the server. == Syntax == <code>bool SetMapName( string name )</code> == Arguments == * '''name''' - The name you want to…') |
Revision as of 01:26, 17 August 2011
Changes the map name of the server.
Syntax
bool SetMapName( string name )
Arguments
- name - The name you want to change it to
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 ); } }
Notes
The call OnPlayerCommand was also used in the example. More info about this in the corresponding page.