View Full Version : Colors in print_chat Script
WARDOG
05-21-2007, 07:43 AM
What code would I need to add, to get this to show as green txt, like in tsay.
Anyone? Thanks.
client_print(0,print_chat,"Say xxxxx to turn on, or off xxxxx.")
=|[76AD]|= TatsuSaisei
05-21-2007, 11:32 AM
What code would I need to add, to get this to show as green txt, like in tsay.
Anyone? Thanks.
client_print(0,print_chat,"Say xxxxx to turn on, or off xxxxx.")
set_hudmessage (http://www.amxmodx.org/funcwiki.php?go=func&id=28) to assign colors and position....
show_hudmessage (http://www.amxmodx.org/funcwiki.php?go=func&id=29) to then show the message you want...
tsay is just a hudmessage with a specific position...
diamond-optic
05-21-2007, 12:01 PM
i think he knows that.. just he wants to be able to use colors in chat text...
pretty sure you cant pass colors thru print_chat.. i think you have to send it thru a message..
i would suggest downloading some of the color chat plugins off the amxx site and see how its done in them
=|[76AD]|= TatsuSaisei
05-21-2007, 12:18 PM
i would suggest downloading some of the color chat plugins off the amxx site and see how its done in them
none of those chat coloring plugins work for DoD, trust me I spent hours trying to color the actual chat.... and I STILL want to...
but 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
05-21-2007, 04:41 PM
Got it done , thanks.
xxavalanchexx
06-23-2007, 12:03 AM
DoD appears to have a much stricter coloring method than CS.
The 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.
For example:
message_begin(MSG_ALL,get_user_msgid("SayText"));
write_byte(id);
write_string("^x02THIS IS COLOR-CODED Avalanche NO LONGER COLOR-CODED");
message_end();
If 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.
:(
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.