Squirrel/Server/Functions/Server/SetServerName

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m

Revision as of 04:18, 14 November 2009

Changes the name of the server.

Syntax

  1. bool SetServerName( string name )

Arguments

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

Example

This example will change the name of the server when someone types '/changename Liberty Unleashed Server'

  1.  
  2. function OnPlayerCommand( id, cmd, text )
  3. {
  4. if ( cmd == "changename" )
  5. {
  6. SetServerName( text );
  7. }
  8. }
  9.  

Notes

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

Related Functions

Template:Squirrel/Functions/Server

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox