Updated Colors
I added the Tags "
{darkred}", "
{lime}" and "
{lightred}" for
Counter-Strike: Global Offensive
These tags are
standalone tags, so they
can be used with teamcolors!
You can use:
PHP Code:
CPrintToChatAll("{blue}Blue Part and {darkred}Darkred Part {lime}and Lime")
but not:
PHP Code:
CPrintToChatAll("{blue}Blue Part and {red}Red Part")
Also i added a stock, which checks, whether a tag is supported by the game or not
PHP Code:
stock CColorAllowed(Colors:color)
And a stock, which can replace a color with another one (to replace non supported colors)
PHP Code:
stock CReplaceColor(Colors:color, Colors:newColor)
Example:
PHP Code:
if (!CColorAllowed(Color_Lightgreen) && CColorAllowed(Color_Lime))
CReplaceColor(Color_Lightgreen, Color_Lime);
For the
Colors:color parameters use:
PHP Code:
Color_Default
Color_Darkred
Color_Green
Color_Lightgreen
Color_Red
Color_Blue
Color_Olive
Color_Lime
Color_Lightred