Scripting/Squirrel/Functions/cRGB: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
Line 12: Line 12:


== Example ==
== Example ==
 
<source>
MessagePlayer("[#CE0C77] Hello this is a coloured message!",player);
function onPlayerJoin( player )
 
{
MessagePlayer("[#CE0C77] Hello, welcome to the server",player);
}
</source>
=== Notes ===
=== Notes ===



Revision as of 16:45, 8 February 2015


This page needs a description, or needs a better one. Please help us complete the wiki by writing one.


Syntax

RGB( R, G, B )

Arguments

  • int R - Red
  • int G - Green
  • int B - Blue

Example

function onPlayerJoin( player )
{
MessagePlayer("[#CE0C77] Hello, welcome to the server",player);
}

Notes

Related Functions