Squirrel/Server/Events/Player/onPlayerPart
From Liberty Unleashed Wiki
This is called when a player joins the server. This is fired after files and data has been sent to the client
Syntax
function OnPlayerPart( player, reason )
Parameters
- player - The pointer of the new player
- reason - The reason ID for the part
Example
This will say <name> left the server when a player leaves the server
function OnPlayerPart( player, reason ) { Message( player.Name + " left the server" ); }
Notes
The function MessagePlayer was used in in this example. More info about it in the corresponding page.