SA-MP Forums Archive
Loosing HP every 10-15sec - 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: Loosing HP every 10-15sec (/showthread.php?tid=128736)



Loosing HP every 10-15sec - Julian2574 - 19.02.2010

It's me again .. As the topic says how can I make that people looses HP every 10-15 sec if they're infected?
I'm using a timer at most but the problem is if the player got 50HP and in timer 1 it sets his health to 90 then timer 2 86 and the bug is if you got Low HP it refills any idea?


Re: Loosing HP every 10-15sec - Onyx09 - 19.02.2010

you should use something like
if playerhealth (you know if infected? or if hp its a certain number or lesss <=50

then use the timer to -10 or 15 hp you know what im sayin?


Re: Loosing HP every 10-15sec - Julian2574 - 19.02.2010

Fixed it. Used Timer & FLOAT .


Re: Loosing HP every 10-15sec - Onyx09 - 19.02.2010

Gratz