SA-MP Forums Archive
In animation at low HP - 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: In animation at low HP (/showthread.php?tid=271695)



In animation at low HP - Supercop - 25.07.2011

This is waht I need:

When you reach a low HP, like below 30, you should get forced into a certain animation, you're unable to get out of it, but you can get shot. Animation doesn't matter, I got the good one already, but how to make this?


Re: In animation at low HP - =WoR=Varth - 26.07.2011

Which one you prefer.
https://sampwiki.blast.hk/wiki/SetTimerEx
or
https://sampwiki.blast.hk/wiki/OnPlayerUpdate


Re: In animation at low HP - linuxthefish - 26.07.2011

pawn Код:
if(GetPlayerHealth(playerid) < 30) ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync);
Chuck that in OnPlayerUpdate/Timer, or a callback where they loose health.