| closedColors in print_chat Script |
| Started by WARDOG on 05-21-2007, 06:43 AM |
Threads: 14
Joined: Jan 2006
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.")
Threads: 54
Joined: May 2005
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...
Threads: 103
Joined: May 2005
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
Threads: 54
Joined: May 2005
ni would suggest downloading some of the color chat plugins off the amxx site and see how its done in themn 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...
Threads: 14
Joined: Jan 2006
Got it done , thanks.
Threads: 2
Joined: Oct 2006
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:(
