I'm currently making a menu and I've bumped into a problem where ColorChat isn't sending a message. I'm pretty sure I've used the CVAR functions incorrectly. Any pointers?
No compiling errors are given.
Includes:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
PHP Code:
case 1:
{
if(get_cvar_num("mp_friendlyfire") & 1)
{
new name[32]
get_user_name(id, name, 31)
ColorChat(0, GREEN, "^x04%s ^x01 has turned friendlyfire ^x04ON", name)
set_cvar_num("mp_friendlyfire",1)
}
else if(get_cvar_num("mp_friendlyfire") & 1)
{
new name[32]
get_user_name(id, name, 31)
ColorChat(0, GREEN, "^x04%s ^x01 has turned friendlyfire ^x04OFF", name)
set_cvar_num("mp_friendlyfire",0)
}