View Single Post
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 01-28-2019 , 22:03   Re: Novice needing sourcepawn help
Reply With Quote #10

The color codes Max used above (yellow = \x09) are specific to CS:GO. For CS:S, some colors can be done using \x03, \x04, etc., but most are achieved using hex color codes. Everywhere you want to change color, put \x07 followed by the 6-digit color code. e.g. Red = \x07FF0000

Hex color codes can be found on many websites such as this or this. Basically, just google search "hex color codes". Hope that helps.

Note: Using the above for formatting colors, you do not need any includes. If you wish to use the More Colors include, you would use its functions (e.g. CPrintToChat or CPrintToChatAll) in combo with the color names in brackets that the plugin creates. However, that is just a wrapper for doing the above hex color codes.
__________________

Last edited by ThatOneGuy; 01-28-2019 at 22:10.
ThatOneGuy is offline