Doesnt works too
Edit:
Maybe because iam not really doing as i showed before:
PHP Code:
#define Get_BitVar(%1,%2) (%1 & (1 << (%2 & 31)))
#define Set_BitVar(%1,%2) %1 |= (1 << (%2 & 31))
#define UnSet_BitVar(%1,%2) %1 &= ~(1 << (%2 & 31))
public plugin_init()
{
register_clcmd("say", "Hook_Say");
register_clcmd("say_team", "Hook_Say");
}
public Hook_Say(id)
{
static said[190];
read_args(said, charsmax(said));
remove_quotes(said);
if(!said[0] || containi(said, "%s%s") != 1)
return PLUGIN_HANDLED;
new name[32];
get_user_name(id, name, charsmax(name));
client_print_color(0, Get_BitVar(g_IsZombie, id) ? Red : Blue, "%s^4[%s] ^3%s^1: %s",
is_user_alive(id) ? "" : "^1*DEAD* ",
Get_BitVar(g_IsZombie, id) ? "ZOMBIE" : Get_BitVar(g_BecomeHero, id) ? "HERO" : "HUMAN",
name,
said);
return PLUGIN_HANDLED_MAIN; // so chat cmds gonna work.
}
__________________