Scripting/Server/Functions/SetServerName
Name shown in the server browser.
Syntax
SetServerName(name)GetServerName()Arguments
- string name
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "setservername" )
{
SetServerName( "Example" );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- SetPassword
- SetServerRule
- RemoveBuildingForPlayer
- SyncPlayerSkins
- ReloadScripts
- LoadScript
- UnloadScript
- GetScripts
- ToggleRagdollPhysics
- ToggleVehicleDents
- LoadModule
- GetTickCount
Section: Server information and administration
Categories: Server functions | Server information and administration