If low health, goes to anim? - 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: If low health, goes to anim? (
/showthread.php?tid=104985)
If low health, goes to anim? -
acade - 27.10.2009
Hello,
I was wondering how do I get it so if a player has say less than 5 or 10 health that they do the crack animation?
Thanks alot
Re: If low health, goes to anim? -
daalz - 27.10.2009
Make a timer and then use the following to check the users health and if it's below 10, apply the 'crckdeth1' animation.
Код:
new Float: curHealth;
if(GetPlayerHealth(playerid,curHealth) < 10)
ApplyAnimation(playerid,"CRACK","crckdeth1",4.1,1,1,1,1,1);
Re: If low health, goes to anim? -
Redgie - 27.10.2009
Use
https://sampwiki.blast.hk/wiki/OnPlayerUpdate