SetMapName

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

Changes the map name of the server.

Syntax

  1. 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'

  1.  
  2. function OnPlayerCommand( id, cmd, text )
  3. {
  4. if ( cmd == "changename" )
  5. {
  6. SetMapName( 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