Another problem. I tried to make the native colorchat working in the default statsx plugin by adding the line #include <chatcolor> on top of the plugin and edited the below part of the code.
PHP Code:
// Display user stats.
public cmdMe(id)
{
if (!SayMe)
{
client_print(id, print_chat, "%L", id, "DISABLED_MSG")
return PLUGIN_HANDLED
}
format_kill_vinfo(id, 0, g_sBuffer)
//client_print(id, print_chat, "* %s", g_sBuffer) //old
client_print_color(id, print_chat, "* %s", g_sBuffer)
return PLUGIN_CONTINUE
}
In the statsx.txt file i replaced
PHP Code:
LAST_RES = Last result: %d hit(s), %d damage
with
PHP Code:
LAST_RES = Last !gresult!n: %d hit(s), %d damage
Compilling went fine but ingame i see this