SA-MP Forums Archive
Health No Decrease - 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: Health No Decrease (/showthread.php?tid=402907)



Health No Decrease - GoldZoroGrab - 28.12.2012

This Is A Big Problem In My Server

Health Isn't Decreasing when someone shoot someone No One iS using hacks or god mod any help guys??

player health is 100.0 as its written in the player information

100.0

and when someone shoot anyone it stays as it is 100.0 no decrease

same to armour

i thing if player fall it decrease
and in explostions

http://www.youtube.com/watch?v=uMRJ0...ature=*********


Re: Health No Decrease - Konstantinos - 28.12.2012

OnPlayerTakeDamage
OnPlayerGiveDamage


Re: Health No Decrease - GoldZoroGrab - 28.12.2012

huh??
u don't this is the solution


Re: Health No Decrease - Konstantinos - 28.12.2012

These callback are called when a player take/give damage. However, these callbacks are not called with player use health hacks etc. Debug it and see if it gives/takes damage on player's health.


Re: Health No Decrease - GoldZoroGrab - 28.12.2012

i can't get you


Re: Health No Decrease - Konstantinos - 28.12.2012

Just add these callbacks to your gamemode and add printf with the parameters in it. Then go in-game, shoot someone and then exit. Show us the server_log.txt with the debugged message.


Re: Health No Decrease - GoldZoroGrab - 28.12.2012

i've sent you a pm see it


Re: Health No Decrease - GoldZoroGrab - 28.12.2012

guys player lose health only if he fall from up
but by shooting no

any HELP?

some people can increase people health
and some cant

for example i shot someone he didn't lose health
other person shot him he died

it isn't lagging
sure 100%

because upto 5 ppl testing ths bug with me


Re : Health No Decrease - [HRD]Mar1 - 28.12.2012

Yes ! your problem in OnPlayerTakeDamege and OnPlayerGiveDamege


Re : Health No Decrease - DaRk_RaiN - 28.12.2012

If the players are team mates, they won't give damage to each other, make sure that you didn't use SetPlayerTeam(playerid,1); to all players.