Deathbug discussion? - 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)
+---- Forum: Discussion (
https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Deathbug discussion? (
/showthread.php?tid=356817)
Re: Respuesta: Deathbug discussion? -
ReneG - 06.07.2012
Quote:
Originally Posted by CyNiC
Ok, change the player health for 1.0 and he will die.
|
Nein.
Re: Deathbug discussion? -
Tee - 06.07.2012
I set their health to a value above 0.0 and it works. Under my OnPlayerDeath callback I have SetPlayerHealth(playerid, 100.0);.
Respuesta: Deathbug discussion? -
Chris1337 - 06.07.2012
i will add another solution
when the wasted anim is applied you set a variable to the player (set it to 1) , onplayerspawn you set it to 0 then you can just set a timer to check if the variable is 1 and in that case you can print the player is bugged and set his health to 1