AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [Need help] Color Chat on CS:GO (https://forums.alliedmods.net/showthread.php?t=210322)

wwzw 03-09-2013 07:34

[Need help] Color Chat on CS:GO
 
I would like to ask, how to use the color information in CS:GO?
If this is not possible, please tell me!
Thanks!

Dr. McKay 03-09-2013 17:11

[Need help] Color Chat on CS:GO
 
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.

wwzw 03-10-2013 04:34

Re: [Need help] Color Chat on CS:GO
 
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?

Wilczek 03-10-2013 06:05

Re: [Need help] Color Chat on CS:GO
 
You need to put blank space with default color (\x01)at start.

PrintToChatAll("\x01 \x04This is the test \x03msg");

wwzw 03-10-2013 06:57

Re: [Need help] Color Chat on CS:GO
 
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 ?

Wilczek 03-10-2013 07:17

Re: [Need help] Color Chat on CS:GO
 
There are only a few colors in CSGO.

https://forums.alliedmods.net/showpo...5&postcount=17

wwzw 03-10-2013 08:27

Re: [Need help] Color Chat on CS:GO
 
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?

ecca 03-10-2013 09:19

Re: [Need help] Color Chat on CS:GO
 
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

http://i.imgur.com/KUx6xr0.png

Dr. McKay 03-10-2013 09:22

[Need help] Color Chat on CS:GO
 
You'll want to use colors.inc for translation file coloring.

moriss 06-17-2013 10:35

Re: [Need help] Color Chat on CS:GO
 
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:




All times are GMT -4. The time now is 23:57.

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