Squirrel/Server/Functions/Players/Name
From Liberty Unleashed Wiki
(Difference between revisions)
m (Redirect issue fix) |
|||
Line 19: | Line 19: | ||
=== Notes === | === Notes === | ||
− | The function [[Squirrel/Functions/Misc/Message|Message]] and call [[Squirrel/Events/Player/ | + | The function [[Squirrel/Functions/Misc/Message|Message]] and call [[Squirrel/Server/Events/Player/onPlayerJoin|OnPlayerJoin]] were used in in this example. More info about them in corresponding pages. |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Functions/Players}} | {{Squirrel/Functions/Players}} |
Revision as of 18:16, 15 January 2012
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.