onPlayerJoin

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

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

Syntax

  1. 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.

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

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

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox