Squirrel/Server/Events/Player/onPlayerPart
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This is called when a player joins the server. This is fired ''after'' files and data has been sent to the client == Syntax == <code>function OnPlayerJoin( player, reason )</co...) |
Revision as of 20:42, 31 March 2009
This is called when a player joins the server. This is fired after files and data has been sent to the client
Syntax
function OnPlayerJoin( player, reason )
Parameters
- player The pointer of the new player
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.