Squirrel/Server/Functions/Players/ColouredName

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|Player.ColouredName}} {{ScriptingChangesIn0.1.0.9}} This Player class member variable sets or returns the players coloured name. You can use the colour formattin…')
 
(Example 1. Returning)
Line 18: Line 18:
  
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
   
 +
    function OnPlayerJoin( player )
 +
    {
 +
        Message( "*** " + player.Colouredname + " has joined the server." );
 +
    }
 +
   
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- List of used functions and other notes here.
+
name with colour
  
 
== Example 2. Setting ==
 
== Example 2. Setting ==

Revision as of 04:54, 23 May 2015

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

This Player class member variable sets or returns the players coloured name. You can use the colour formatting tags with this function ([#RRGGBB] [#d]).

Syntax

  1. string Player.ColouredName
  1. Player.ColouredName = string new_name

Arguments

  • new_name - Player's new name with colour tags.

Example 1. Returning

Some explanation here

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
  1.  
  2. function OnPlayerJoin( player )
  3. {
  4. Message( "*** " + player.Colouredname + " has joined the server." );
  5. }
  6.  

Notes

name with colour

Example 2. Setting

Some explanation here

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
  1.  
  2. -- todo
  3.  

Notes

-- List of used functions and other notes here.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox