Hellp, here I have a quaesion about coloring text (print_chat), using ^x03. I haven't found no manual about that. How shoult I use it?
Code:
#include <amxmodx>
#define MAX_WORDS 64
#define MESSAGES 1
new g_wordList[] = "addons/amxmodx/configs/badwords.ini"
new g_swears[MAX_WORDS][32]
new g_swearsNum
public plugin_init()
{
register_plugin("Censorship","1.1","Evaldas")
register_clcmd("say","swearFilter")
register_clcmd("say_team","swearFilter")
if (file_exists(g_wordList))
{
new len, i = 0
while( read_file(g_wordList,i++,g_swears[g_swearsNum],31,len) )
if (len) ++g_swearsNum
}
}
public swearFilter(id)
{
new said[128]
read_args(said,127)
for (new i=0; i<g_swearsNum; ++i)
{
if ( containi(said,g_swears[i]) != -1 )
{
client_print(id,print_chat, "Prasome laikytis cenzuros ir nevartoti draudziamu issireiskimu!" ) <-- I believe, I should put the ^x03 somewhere here!
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}
__________________