Hi everybody, i got an menu like:
awp mode
knife mode
vampire mode
bullet mode
when u turn on a mode like Vampire mode, you get +5hp for kill and +10hp for headshot. but when i turn to awp mode, anyways vampire mode is applied to me, and still im getting +5/+10hp.
PHP Code:
public hook_death(id)
{
// Killer id
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)
// Updating Killer HP
if(get_user_flags(nKiller) & ADMIN_LEVEL_H && vampiremode[id] == 1)
nKiller_hp = get_user_health(nKiller)
nKiller_hp += nHp_add
// Maximum HP check
if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
set_user_health(nKiller, nKiller_hp)
}
same thing is with Bullet mode, when its on i see Bullet_damage and when i switch it to another mode i still see damage.