Squirrel/Server/Functions/Server/SetServerName
From Liberty Unleashed Wiki
(Difference between revisions)
m |
m (Squirrel/Functions/Server/SetServerName moved to Squirrel/Server/Functions/Server/SetServerName: Separating from clientside scripts) |
Revision as of 04:18, 14 November 2009
Changes the name of the server.
Syntax
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'
function OnPlayerCommand( id, cmd, text ) { if ( cmd == "changename" ) { SetServerName( text ); } }
Notes
The call OnPlayerCommand was also used in the example. More info about this in the corresponding page.