Double Damage don't work
So, I have a weapons menu, and the player can choose the normal menu, gold menu and super menu
Gold menu weapons take double damage, and super take 3x damage PHP Code:
I use the same bools (AreGoldenAk and AreSuperAk) to change the skins and works! Can someone help me? |
Re: Double Damage don't work
Give us full code or explain better what you mean by not working, because it's not something wrong with the code you posted, just: is_user_connected(victim) || is_user_alive(victim) is should be &&
|
Re: Double Damage don't work
Quote:
&& and || have the same function I think, for me works fine using || |
Re: Double Damage don't work
Quote:
|| == or && == and so it's not the same |
Re: Double Damage don't work
oh I see you guys didn't notice he's returning HAM_HANDLED instead of HAM_SUPERCEDE and not overwriting the normal damage inflicted
gotta pay more attention next time |
Re: Double Damage don't work
Quote:
you don't have to check if user is connected when you use is_user_alive(), it already checks that. post how you are hooking ham_takedamage |
Re: Double Damage don't work
Quote:
Quote:
EDITED: I don't know what I've done, but know the plugin works! Thanks anyway |
Re: Double Damage don't work
Code:
#include <amxmodx> |
Re: Double Damage don't work
Quote:
|
Re: Double Damage don't work
Quote:
he still needs return HAM_OVERRIDE instead of supercede |
| All times are GMT -4. The time now is 17:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.