.: Description :.
Colorchat native that can be used by any plugin.
Pro : Instead of using colorchat include that duplicate code in every single plugin in which you use it, use a single plugin to handle colorchat.
Con : Should be a little slower than include, but as you don't plain to send it 1000 times per second, it's not a big deal.
Note : supports ML.
.: Natives :.
client_print_color(index, sender, const fmt[], any:...)
register_dictionary_colored(const filename[])
Same as register_dictionary, but transform !g, !t and !n into colors code
so you can use same ML Keys in normal chat or hudmessage or whereever you want
.: How to use ? :.
You have to start each text with ^4 or ^3 or ^2 or ^1 (or !t, !g, !n in ML files).
In .sma, use ^4 to display green, ^1 to display normal color (yellow by default), and ^3 to display the specified color (2nd arg).
In multilanguage files, use !g to set following text to green, !n to set following text to normal player chat color (yellow by default), and !t to set following text to the color passed in second argument.
Colors for second arg are : a_player_index (use the specified player team color), Red, Blue and Grey.
Those color are applied by ^3 or !t tag.
I've added support for ColorChat stock, all you have to do is to replace at the top of .sma the line :
Code:
with#include <colorchat>
Code:
#include <chatcolor>
.: Credits :.
Quim, Reymon, Stupok.
get plugin