Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › Help › Scripting Help › Colors in print_chat Script
6 posts, 4 people · 1,552 views Thread Rating: ★★★★★
closedColors in print_chat Script
Started by WARDOG on 05-21-2007, 06:43 AM
WARDOG
started this thread
Posts: 141
Threads: 14
Joined: Jan 2006
05-21-2007, 06:43 AM #1

What code would I need to add, to get this to show as green txt, like in tsay. rnrnAnyone? Thanks.rnrnclient_print(0,print_chat,"Say xxxxx to turn on, or off xxxxx.")

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
05-21-2007, 10:32 AM #2
What code would I need to add, to get this to show as green txt, like in tsay. n nAnyone? Thanks.n nclient_print(0,print_chat,"Say xxxxx to turn on, or off xxxxx.")
n nset_hudmessage to assign colors and position....n nshow_hudmessage to then show the message you want... n ntsay is just a hudmessage with a specific position...

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
05-21-2007, 11:01 AM #3

i think he knows that.. just he wants to be able to use colors in chat text...nnpretty sure you cant pass colors thru print_chat.. i think you have to send it thru a message..nni would suggest downloading some of the color chat plugins off the amxx site and see how its done in them

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
05-21-2007, 11:18 AM #4
ni would suggest downloading some of the color chat plugins off the amxx site and see how its done in them
n nnone of those chat coloring plugins work for DoD, trust me I spent hours trying to color the actual chat.... and I STILL want to...n nbut for what he wants, and until an actual method to color text in chat comes about, then the hudmessage is going to be the only route for colored text...

WARDOG
started this thread
Posts: 141
Threads: 14
Joined: Jan 2006
05-21-2007, 03:41 PM #5

Got it done , thanks.

xxavalanchexx
posted here
Posts: 13
Threads: 2
Joined: Oct 2006
06-22-2007, 11:03 PM #6

DoD appears to have a much stricter coloring method than CS.nnThe only color marker that I have found to work with DoD is ^x02, which creates the team-color-coded name. It must to be the first character of the SayText message, and the exact name of the player id given with SayText must be included in the message. The color-coding will start at the ^x02 and end at the end of the player's name.nnFor example:n

message_begin(MSG_ALL,get_user_msgid("SayText"));nwrite_byte(id);nwrite_string("^x02THIS IS COLOR-CODED Avalanche NO LONGER COLOR-CODED");nmessage_end();
nnIf the ^x02 character is not at the beginning, or the player name matching the id passed is not in the string, then there will be no color-coding. If you use an id of 0, you can't get any color-coding still.nn:(

Archive › Old Forum Threads › Help › Scripting Help › Colors in print_chat Script
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC