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
- Player player
- string reason –
reasonis one ofPARTREASON_DISCONNECTED,PARTREASON_TIMEOUT,PARTREASON_KICKED,PARTREASON_BANNED,PARTREASON_CRASHED.
Example
function onPlayerPart( player, reason )
{
Message( player.Name + " left the server" );
}Related pages
Section: Lifecycle and connection
Categories: Server events | Lifecycle and connection