Squirrel/Server/Functions/Server/SetServerName
From Liberty Unleashed Wiki
(Difference between revisions)
m (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:32, 15 January 2012
Changes the name of the server.
[edit] Syntax
bool SetServerName( string name )
[edit] Arguments
- name - The name you want to change the server to
[edit] 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 ); } }
[edit] Notes
The call onPlayerCommand was also used in the example. More info about this in the corresponding page.