Raised This Month: $51 Target: $400
 12% 

M4a1 dark knight bug zm vip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
inlovecs
Member
Join Date: Dec 2012
Old 09-02-2017 , 09:12   M4a1 dark knight bug zm vip
Reply With Quote #1

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 &amp; (1<<0)
	if(g_user_privileges[attacker] &amp; FLAG_D) {
#else
	if(get_user_flags(attacker) &amp; 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.
Attached Files
File Type: sma Get Plugin or Get Source (cso_buffm4_fix_zp_extra.sma - 601 views - 32.7 KB)
File Type: sma Get Plugin or Get Source (zm_vip.sma - 574 views - 31.4 KB)
__________________

inlovecs is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode