How to make /crack when hp is 20
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

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

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

Note: Put this under a timer.
Reply
#5

Thanx
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)