SA-MP Forums Archive
How to make /crack when hp is 20 - 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: How to make /crack when hp is 20 (/showthread.php?tid=143174)



How to make /crack when hp is 20 - hardstop - 21.04.2010

i want that if player hp is 20 or lower then player will get crack animation

I got the crack animation already but i need help with the code


Re: How to make /crack when hp is 20 - 0ne - 21.04.2010

I guess set a timer to check his hp onplayerspawn, or use the [inc] by seif that can detect body part , so when he's hit just check his hp and do the animation i guess


Re: How to make /crack when hp is 20 - hardstop - 21.04.2010

nah this is bad idea theres something with onplayerUpdate but i dont remember

somehow can check hp by onplayerupdate but i dont remember anymore
if somebody does write here


Re: How to make /crack when hp is 20 - RyDeR` - 21.04.2010

pawn Код:
new
    Float: HealthAmount
;
GetPlayerHealth(playerid, HealthAmount);

if(HealthAmount <= 20)
{
    // Crack Animation.
}

Note: Put this under a timer.


Re: How to make /crack when hp is 20 - hardstop - 21.04.2010

Thanx


Re: How to make /crack when hp is 20 - ruckfules99 - 21.04.2010

http://forum.sa-mp.com/index.php?topic=116783.0