OnPlayerSpawn Timer not Ending problem - 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: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnPlayerSpawn Timer not Ending problem (
/showthread.php?tid=147265)
OnPlayerSpawn Timer not Ending problem -
MisterTickle - 11.05.2010
I'm trying to setup a injured/dying system, Basically I want it to when you reach between 1-10 HP you get injured, Than you die and you respawn where you we're and your health slowly decreases over 60 seconds until you spawn at a certian location, full health. It slightly works but the timer doesn't end, I don't understand
http://pastebin.com/ZHZMRKHz
Why isnt the timer being killed?
Re: OnPlayerSpawn Timer not Ending problem -
MisterTickle - 12.05.2010
I'm still dumbfounded.
Re: OnPlayerSpawn Timer not Ending problem -
DJDhan - 12.05.2010
How do you know that the timer is not being killed? Does it work in game or not?
Re: OnPlayerSpawn Timer not Ending problem -
MisterTickle - 12.05.2010
The timer works, Its supposed to check if your health is equal to 1 if its not it will continually decrase your health by 1, When it reaches 1 it does all the other things it does except kills the timer, It reaches 1 health, Spawns me and sets my onfloor to 3 but never ends the timer, So it just keeps decreasing my health.