Squirrel/Server/Events/Player/onPlayerJoin

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search

Revision as of 06:25, 13 December 2009

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 )

Parameters

  • player - 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!", id );
  5. }
  6.  

Notes

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

Related Functions

Template:Squirrel/Events/Player

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox