Squirrel/Server/Events/Player/onPlayerJoin

From Liberty Unleashed Wiki
Revision as of 06:29, 13 December 2009 by Juppi (Talk | contribs)

Jump to: navigation, search

This is called when a player joins the server. This is fired after files and data has been sent to the client

Syntax

  1. function onPlayerJoin( Player plr )

Parameters

  • plr - The pointer of the new player

Example

This will say Hello to the player when they join the server

  1.  
  2. function onPlayerJoin( player )
  3. {
  4. MessagePlayer( "Welcome " + player.Name + " to the server!", player );
  5. }
  6.  

Notes

The function MessagePlayer was used in in this example. More info about it in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox