Scripting/Server/Functions/SetPassword

Sets the join password. An empty string or "none" clears it.

Syntax

SetPassword(string)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setpassword" )
	{
		SetPassword( true );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Server information and administration

Categories: Server functions | Server information and administration