PHP Code:
public hook_death()
{
if(get_user_team(nKiller) == CS_TEAM_CT)
{
nKiller = read_data(1)
if ( (read_data(3) == 1) && (read_data(5) == 0) )
{
nHp_add = get_pcvar_num (health_hs_add)
}
else
nHp_add = get_pcvar_num (health_add)
nHp_max = get_pcvar_num (health_max)
if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))
return;
nKiller_hp = get_user_health(nKiller)
nKiller_hp += nHp_add
set_hudmessage(0, 0, 255, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)
show_hudmessage(nKiller, "+%d HP.", nHp_add)
if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
set_user_health(nKiller, nKiller_hp)
}
else if (get_user_team(id) == CS_TEAM_T)
{
client_print(nKiller, print_center, "Zombies don't get health for kills.");
}
}
it shows me the client print, no matter if im ct or t, why?
__________________