Scripting/Server/Functions/SetPassword
Sets the join password. An empty string or "none" clears it.
Syntax
SetPassword(string)Arguments
- string value
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "setpassword" )
{
SetPassword( true );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- SetServerName
- SetServerRule
- RemoveBuildingForPlayer
- SyncPlayerSkins
- ReloadScripts
- LoadScript
- UnloadScript
- GetScripts
- ToggleRagdollPhysics
- ToggleVehicleDents
- LoadModule
- GetTickCount
Section: Server information and administration
Categories: Server functions | Server information and administration