SA-MP Forums Archive
Damage Taking bug? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Damage Taking bug? (/showthread.php?tid=483179)



Damage Taking bug? - lMontez - 24.12.2013

When a players health/armor is damaged it seems to regenerate again.


Re: Damage Taking bug? - lMontez - 24.12.2013

Excuse the double post however I'd be willing to pay a small amount for someone to take an in-depth look at the said bug as it's hold the server opening up. Thanks.


Re: Damage Taking bug? - TheOriginal1337 - 24.12.2013

I don't really understand what you are trying to explain here.
So a player receive damage and it regenerates his health right away?


Re: Damage Taking bug? - Tayab - 24.12.2013

Check and post OnPlayerTakeDamage public.


Re: Damage Taking bug? - lMontez - 24.12.2013

That is correct. Suppose I shoot his player. It either A. does not take down the health or B. will regenerate within a second.

@TheOriginal - I'm unable to locate that within the script.


Re: Damage Taking bug? - BizzyD - 24.12.2013

Post your OnPlayerTakeDamage code so we can help you...


Re: Damage Taking bug? - lMontez - 24.12.2013

I cannot locate "OnPlayerTakeDamage" within the script..


Re: Damage Taking bug? - SilentSoul - 24.12.2013

Quote:
Originally Posted by lMontez
View Post
I cannot locate "OnPlayerTakeDamage" within the script..
Press 'Control+F' It will open Search box enter inside it OnPlayerTakeDamage , show that for us.


Re: Damage Taking bug? - TheOriginal1337 - 24.12.2013

It could be something with a timer or something. Are you tracking their health with a timer or something?
Or maybe a bug in your anti cheat system if you have this..

I cannot fix this unless I get to see the script.


Re: Damage Taking bug? - lMontez - 24.12.2013

Quote:
Originally Posted by SilentSoul
View Post
Press 'Control+F' It will open Search box enter inside it OnPlayerTakeDamage , show that for us.
Thanks but I'm not that slow lol. I'm unable to locate that line when I search that. Perhaps someone would be willing to TeamViewer with me? Thanks.