Raised This Month: $51 Target: $400
 12% 

[CS:GO] Fixing Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kingo
New Member
Join Date: Jun 2011
Old 08-18-2012 , 10:41   [CS:GO] Fixing Chat Colors
Reply With Quote #1

Code:
PrintToChatAll("\x01\x0B\x04Colors!");
Output: Colors!

What did we do?
CS:GO will not set chat color unless there is a character after the first color. This means
Code:
PrintToChatAll("\x04Colors!");
Output: Colors!
Code:
PrintToChatAll("\x01\x04Colors!");
Output: Colors!
What we done is set the color of an invisible character then used a color code to change the color of "Colors!"
Without using the invisible character you could use
Code:
PrintToChatAll("\x01*\x04Colors!");
Output: *Colors!

Not sure if you can understand the thread explanation since I can't explain it that well. Basically just start your colors off with "\x01\x0B"
Code:
PrintToChatAll("\x01\x0B\x01 1,\x02 2,\x03 3,\x04 4,\x05 5,\x06 6,\x07 7");
Kingo is offline
BoBzY
AlliedModders Donor
Join Date: Aug 2010
Location: Bruxelles
Old 08-25-2012 , 03:14   Re: [CS:GO] Fixing Chat Colors
Reply With Quote #2

Thanks
BoBzY is offline
Hunter S. Thompson
Senior Member
Join Date: Jun 2012
Old 08-25-2012 , 08:25   Re: [CS:GO] Fixing Chat Colors
Reply With Quote #3

Out of curiosity, does that still apply to the colour codes?
Hunter S. Thompson is offline
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Old 11-16-2012 , 19:54   Re: [CS:GO] Fixing Chat Colors
Reply With Quote #4

Wow, this has been driving me NUTS. When I finally figured out that the reason the colors don't work is because there needs to be a character at the beginning of the chat string before colors are invoked, I realized I needed to find an "invisible" character, and here it is. Thanks a lot!!
__________________

Last edited by Sheepdude; 11-16-2012 at 19:55.
Sheepdude is offline
wolf414
Member
Join Date: Aug 2005
Location: WI
Old 02-11-2013 , 06:40   Re: [CS:GO] Fixing Chat Colors
Reply With Quote #5

Thank you! works great!!!
wolf414 is offline
Send a message via MSN to wolf414
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 02-11-2013 , 19:58   Re: [CS:GO] Fixing Chat Colors
Reply With Quote #6

wow; thanks for the info
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
ilga80
Senior Member
Join Date: Nov 2012
Old 02-12-2013 , 06:22   Re: [CS:GO] Fixing Chat Colors
Reply With Quote #7

thx. how to add more colors(for example: yellow, black, etc..)?
ilga80 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 02-12-2013 , 09:37   [CS:GO] Fixing Chat Colors
Reply With Quote #8

Quote:
Originally Posted by ilga80 View Post
thx. how to add more colors(for example: yellow, black, etc..)?
You can't.
__________________
Dr. McKay is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 02-19-2013 , 10:46   Re: [CS:GO] Fixing Chat Colors
Reply With Quote #9

very nice
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
zENK
Member
Join Date: Aug 2011
Old 03-27-2013 , 18:24   Re: [CS:GO] Fixing Chat Colors
Reply With Quote #10

How do i install this? Modify the csgo_english.txt?

Explain for a newb pls D:
zENK is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode