GetServerName
From Liberty Unleashed Wiki
This returns the name of the server.
Syntax
string GetServerName()
Arguments
- None
Example
This example will return the server name when a player types '/server'.
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "server" ) { MessagePlayer( "You are playing on: " + GetServerName(), plr ); } return 1; }
Notes
The function MessagePlayer and call onPlayerCommand were used in this example. More info about them can be found in corresponding pages.