Squirrel/Server/Functions/Players/Name

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m (Redirect issue fix)
m (Redirect issue fix)
Line 23: Line 23:
 
== Related Functions ==
 
== Related Functions ==
  
{{Squirrel/Functions/Players}}
+
{{Squirrel/Server/Functions/Players}}

Revision as of 18:26, 15 January 2012

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function returns player's name.

Syntax

  1. string player.Name

Example

This example will send a join message when a player joins the server.

  1.  
  2. function OnPlayerJoin( player )
  3. {
  4. Message( "*** " + player.Name + " has joined the server." );
  5. }
  6.  

Notes

The function Message and call OnPlayerJoin were used in in this example. More info about them in corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox