Squirrel/Server/Events/Player/onPlayerConnect
From Liberty Unleashed Wiki
(Difference between revisions)
(Someone copied n pasted onPlayerJoin and left in a duff description) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|onPlayerConnect}} | |
This is called when a player connects to the server. This is fired ''before'' files and data has been sent to the client. | This is called when a player connects to the server. This is fired ''before'' files and data has been sent to the client. | ||
Revision as of 09:49, 20 October 2010
This is called when a player connects to the server. This is fired before files and data has been sent to the client.
Syntax
function onPlayerConnect( Player player )
Parameters
- player - The pointer of the new player
Example
This will PM Welcome to the server when a player joins the server
function onPlayerConnect( player ) { MessagePlayer( "Welcome to the server", player, 255, 0, 0 ); }
Notes
The function MessagePlayer was used in in this example. More info about it in the corresponding page.
Related Functions
- onPlayerAction
- onPlayerArmourChange
- onPlayerCashChange
- onPlayerChat
- onPlayerCommand
- onPlayerConnect
- onPlayerDeath
- onPlayerFall
- onPlayerHealthChange
- onPlayerIslandChange
- onPlayerJoin
- onPlayerKeyStateChange
- onPlayerKill
- onPlayerPart
- onPlayerScoreChange
- onPlayerSkinChange
- onPlayerSpawn
- onPlayerUpdate
- onPlayerTeamChange
- onPlayerUseDetonator
- onPlayerVirtualWorldChange
- onPlayerWeaponChange