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

[Need help] Color Chat on CS:GO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wwzw
Member
Join Date: Feb 2009
Old 03-09-2013 , 07:34   [Need help] Color Chat on CS:GO
Reply With Quote #1

I would like to ask, how to use the color information in CS:GO?
If this is not possible, please tell me!
Thanks!
wwzw is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-09-2013 , 17:11   [Need help] Color Chat on CS:GO
Reply With Quote #2

If you want to give specific players chat colors, use Custom Chat Colors (link in my signature). On CS:GO, only olive, team color, and green work.
__________________
Dr. McKay is offline
wwzw
Member
Join Date: Feb 2009
Old 03-10-2013 , 04:34   Re: [Need help] Color Chat on CS:GO
Reply With Quote #3

Thank you for your help, but I still can not write code.
I want to achieve their goals: like this:

PrintToChat (client, "\ x04This is test \ x03msg ...");
PrintToChatAll ("\ x04This is test \ x03msg ...");

You taught me how to write the code?
wwzw is offline
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 03-10-2013 , 06:05   Re: [Need help] Color Chat on CS:GO
Reply With Quote #4

You need to put blank space with default color (\x01)at start.

PrintToChatAll("\x01 \x04This is the test \x03msg");
Wilczek is offline
wwzw
Member
Join Date: Feb 2009
Old 03-10-2013 , 06:57   Re: [Need help] Color Chat on CS:GO
Reply With Quote #5

PrintToChatAll("\x01This is\x04 the test \x03msg");

I only can see Green and White : \x04 is Green, \x01 or \x03 are White .

How can I see other color in CS:GO? red and blue or other ?
wwzw is offline
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Old 03-10-2013 , 07:17   Re: [Need help] Color Chat on CS:GO
Reply With Quote #6

There are only a few colors in CSGO.

https://forums.alliedmods.net/showpo...5&postcount=17
Wilczek is offline
wwzw
Member
Join Date: Feb 2009
Old 03-10-2013 , 08:27   Re: [Need help] Color Chat on CS:GO
Reply With Quote #7

Thank you very much! now, I can use:
\x01 = White
\x02 = Dark Red
\x03 = White
\x04 = Dark Green
\x05 = Moss Gre en
\x06 = Lime Green
\x07 = Light Red
In PrintToChat.
But how to use in translations files?

"Phrases"
{
"test msg1"
{
"en" "\x02this\x03 is\x04 a\x05 test \x06msg\x07..."
}

decl String:msg[256];
Format(msg, sizeof(msg), "%T", "test msg1", id);
PrintToChat(client, "\x01 \x07Show:%s", msg);

isn't work?
wwzw is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 03-10-2013 , 09:19   Re: [Need help] Color Chat on CS:GO
Reply With Quote #8

I use this to get my colors working correctly

PHP Code:
PrintToChatAll("\x01\x0B\x01 1,\x02 2,\x03 3,\x04 4,\x05 5,\x06 6,\x07 7"); 
output

__________________
ecca is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-10-2013 , 09:22   [Need help] Color Chat on CS:GO
Reply With Quote #9

You'll want to use colors.inc for translation file coloring.
__________________
Dr. McKay is offline
moriss
Junior Member
Join Date: Dec 2011
Location: Hungary
Old 06-17-2013 , 10:35   Re: [Need help] Color Chat on CS:GO
Reply With Quote #10

In translation files you have to use ascii characters like this:
Code:
"Phrases"
{
"test msg1"
{
"en" "this is a test msg..."
}
Ascii characters (from \x01 to \x07)
Code:

moriss 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 11:34.


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