Squirrel/Server/Functions/Players/ColouredName

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example 1. Returning)
(Example 1. Returning)
 
Line 21: Line 21:
 
     function OnPlayerJoin( player )
 
     function OnPlayerJoin( player )
 
     {
 
     {
         Message( "*** " + player.Colouredname + " has joined the server." );
+
         Message( "*** " + player.ColouredName + " has joined the server." );
 
     }
 
     }
 
      
 
      

Latest 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]).

[edit] Syntax

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

[edit] Arguments

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

[edit] 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.  

[edit] Notes

name with colour

[edit] 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.  

[edit] Notes

-- List of used functions and other notes here.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox