Install:
• Throw the .SMX in the plugins folder.
• Read below!
CONFIG:
•Edit sm_textcolors.cfg to your liking, there is already an example of what it should look like in the file.
(Make sure it has the & and the * tags.) & is a shortcut to \x07
* is a shortcut to \x08
All codes must be in hex.
•place sm_textcolors.cfg into your config folder.
should look like:
By default if only one color is in the text it wont choose a random color, duh.
But i added a cvar just cause.
CVARS:
Code:
// Uses random colors that you defined. 1- random 0-Default
// -
// Default: "1"
sm_textcol_random "1"
READ BEFORE POSTING:
I currently am aware that this is a bad way to replace text in sourcemod, but i think it might come in handy if a server owner wants some more color in his server.
Change Log:
Spoiler
June 14, 2012: Release, basic codec no config
June 15: Config added! Yay!
June 16: Removed the console chat bug my making it print as a SayText2, and fixed the limit on the message.
March 22 (13): Fixed a potential bug generated.
Spoiler
March 23 (13): Fixed a compile error (thanks toBacardi)