Squirrel/Server/Functions/Players/Name
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function returns player's name. == Syntax == <code>string player.Name</code> == Example == This example will send a join message when a player joins the server. <code l...) |
m (Squirrel/Functions/Players/Name moved to Squirrel/Server/Functions/Players/Name: Separating the server-side functions from client-side ones) |
Revision as of 08:47, 2 November 2009
This function returns player's name.
Syntax
string player.Name
Example
This example will send a join message when a player joins the server.
function OnPlayerJoin( player ) { Message( "*** " + player.Name + " has joined the server." ); }
Notes
The function Message and call OnPlayerJoin were used in in this example. More info about them in corresponding pages.