onPlayerJoin
From Liberty Unleashed Wiki
This is called when a player joins the server. This is fired after files and data have been sent to the client
Syntax
function onPlayerJoin( Player plr )
Arguments
- plr - The pointer of the player who joined
Returns
This event does not handle return values.
Example
This will say welcome to the player when they join the server.
function onPlayerJoin( player ) { MessagePlayer( "Welcome " + player.Name + " to the server!", player ); return 1; }
Notes
The functions MessagePlayer and Player.Name were used in this example. More info about them can be found in the corresponding pages.
Related Functions
- onPlayerAction
- onPlayerArmourChange
- onPlayerCashChange
- onPlayerChat
- onPlayerCommand
- onPlayerConnect
- onPlayerDeath
- onPlayerFall
- onPlayerHealthChange
- onPlayerIslandChange
- onPlayerJoin
- onPlayerKeyStateChange
- onPlayerKill
- onPlayerPart
- onPlayerScoreChange
- onPlayerSkinChange
- onPlayerSpawn
- onPlayerUpdate
- onPlayerTeamChange
- onPlayerUseDetonator
- onPlayerVirtualWorldChange
- onPlayerWeaponChange