SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=495453)



Help - Heater - 17.02.2014

Hi all, i wonder how i can get player health, when he has 600 or higher hp?


Re: Help - CuervO - 17.02.2014

On a timer or OnPlayerUpdate, depends what you want the check for.

Timer gets called every time you call it and you control the time, OnPlayerUpdate on the other hand gets called around 25 times per second to every player.

https://sampwiki.blast.hk/wiki/SetTimerEx
https://sampwiki.blast.hk/wiki/SetTimer
https://sampwiki.blast.hk/wiki/OnPlayerUpdate