Squirrel/Server/Functions/Players/Name

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m (Squirrel/Functions/Players/Name moved to Squirrel/Server/Functions/Players/Name: Separating the server-side functions from client-side ones)
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|Player.Name}}
 
This function returns player's name.
 
This function returns player's name.
  

Revision as of 10:29, 11 October 2010

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

Template:Squirrel/Functions/Players

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox