Scripting/Server/Events/onPlayerJoin

The player finished loading and joined. Spawn classes are available from this point. It is also fired just before a script-forced player.Spawn() so that join logic always runs first.

Syntax

onPlayerJoin(player)

Arguments

Example

function onPlayerJoin( player )
{
	Message( player.Name + " joined the server" );
	MessagePlayer( "Welcome! Type /help for the commands.", player, Colour( 255, 220, 0 ) );
}

Section: Lifecycle and connection

Categories: Server events | Lifecycle and connection