Drixevel-Archive / Chat-Processor

A Sourcemod plugin which allows other plugins to add and manage chat related features.
GNU General Public License v3.0
58 stars 28 forks source link

Custom Chat Colors Hex Color Codes Bug #40

Open Cruze03 opened 6 years ago

Cruze03 commented 6 years ago

When you add hex color in "namecolor" (didn't check if it shows like this in other fields also), it shows like this ~>http://prntscr.com/kcpx2s Here is my config: http://prntscr.com/kcpvsb

Otherwise, perfect chat processor. Good job and thanks for making it.

Hexer10 commented 6 years ago

If the game is csgo you can't use hexcolors

Cruze03 commented 6 years ago

Oh, so how many colors do csgo has? Can you please mention? Thanks for the reply ^.^

Hexer10 commented 6 years ago

~iirc they use the colorvariables colors so: https://gist.github.com/Hexer10/57d76f26fe3a0bb35b57b3f32649a24c~

I was wrong so you can either try to use https://github.com/PremyslTalich/ColorVariables/blob/master/addons/sourcemod/scripting/includes/colorvariables.inc#L966-L983

the code "\xNN" where N is the number you can find in that file, im not sure if it'll work or you can use a plugin of mine

Drixevel-Archive commented 6 years ago

CSGO only has access to basic colors and not color codes. It should allow you to use regular hex codes as well, there isn't anything stopping that unless you have remove colors enabled.