View Single Post
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 05-22-2015 , 17:22   Re: [INC] More Colors (1.9.1)
Reply With Quote #459

Quote:
Originally Posted by nikooo777 View Post
So,
I couldn't find a CSGO version of this due to the fact that CSGO only supports some colors.
I did some research and found that colors from x01 to x10 work, therefore i edited the colors.inc to make it work for csgo with those new colors.

There is a little problem, I am colorblind so I can't really figure out what some colors are, nor am I sure for some of those I wrote. I'd appreciate if somebody had a look at them and fixes the tags and eventually the other Print functions.

I know this is not a clean include at all, however it's better than nothing and i use it in advertisements.smx for printing in chat.

here is what i came up with.
Credits to


BTW, don't use it for any other game other than CSGO... you don't want to break them.

Code:
enum Colors
{
	Color_Default = 0,
	Color_Darkred,
	Color_Pink,
	Color_Green,
	Color_Lightgreen,
	Color_Lime,
	Color_Red,
	Color_Grey,
	Color_Olive,
	Color_A,
	Color_Lightblue,
	Color_Blue,
	Color_D,
	Color_Purple,
	Color_Darkrange,
	Color_Orange
}
Code:
CPrintToChatAll("{default}test{darkred}test{pink}test{green}test{lightgreen}test{lime}test{red}test{grey}test{olive}test{a}test{lightblue}test{blue}test{d}test{purple}test{darkorange}test{orange}test");


use this as reference to the HEX codes:
I love you.
__________________
SourcePawn Coding Level: Novice
DJ Data is offline