Color Text in print_chat
I've been going through a few different plugins that i'm working on, as well as reading source for a number of other plugins as an example and i just can't figure out how to print colored messages to clients via the chat box. I know using escape characters of ^x01 ^x03 and ^x04 for normal, team, and green, but i just can't seem to get it to work. :cry: I originally though it was because i wasn't importing the proper (header files?) -whatever #include imports- but none of them have worked. I'll put in my code to see if i did something wrong. PLEASE HELP! I've been trying for about 2 months now and i can't find it on the forums either. This is quite blowing my life, and i have a few mods that i'm holding off full release till i can get this functionality included.
mind you this is just a snippet of a much larger program (actually using file and string) but i tend to put a bit of vulgarity in my code,:twisted: so i deleted the rest to bring it down to G rating. But this is stand alone code. Code:
#include <amxmodx>winner will receive bacon. |
Re: Color Text in print_chat
|
Re: Color Text in print_chat
Much thanks for the quick response! I'll post a screenshot of what it currently displays at the execution of "colorchat"
Then i'll integrate ConnorMcLeod's ways and report back. Thumbs up suffice instead of bacon? As per the problem hasn't been solved YET.... :up: Its also peculiar that it has spaces where the special characters are. http://cloud.steampowered.com/ugc/59...9C8B921877632/ |
Re: Color Text in print_chat
VICTORY!! Using ConnorMcLeod's include file <colorchat> and compile locally i finally was able to get that color to work!! Many thankyou's Exolent. You and ConnorMcLeod have both earned bacon!
:bacon!: :bacon!: one each. |
| All times are GMT -4. The time now is 07:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.