Scripting/Server/Events/onPlayerPart

The player left. reason is one of PARTREASON_DISCONNECTED, PARTREASON_TIMEOUT, PARTREASON_KICKED, PARTREASON_BANNED, PARTREASON_CRASHED. Free any per-player data here.

Syntax

onPlayerPart(player, reason)

Arguments

Example

function onPlayerPart( player, reason )
{
	Message( player.Name + " left the server" );
}

Section: Lifecycle and connection

Categories: Server events | Lifecycle and connection