So i have this extra item on my server,m4a1 dark knight. But it has bugs. If the attacker have vip,especially flag D (damage reward) everytime he shoots humans he gets ammo packs,which is annoying.
This bug is only for vips,the others doesn't have problems.
This is the part from zm vip which cause problems on this plugin.(i tested it already so this is the cause)
Code:
#if MODE & (1<<0)
if(g_user_privileges[attacker] & FLAG_D) {
#else
if(get_user_flags(attacker) & VIPACCES) {
#endif
if(get_pcvar_num(g_damage_reward) > 0) {
g_damage[attacker]+=damage
if(g_damage[attacker] > get_pcvar_float(g_damage_reward)) {
zp_set_user_ammo_packs(attacker, zp_get_user_ammo_packs(attacker)+1)
g_damage[attacker] -= get_pcvar_float(g_damage_reward)
}
}
}
return HAM_IGNORED
}
If you can help me i would be so thankful. I attached both sma, m4a1 and zm vip.