28.09.2011, 19:58
Well I got a little problem, I want to add a really sexy animation to my auto crack command, but the problem is, before this animation I had a non moving anim so it was repeating at the same postition, now the animation is different and it does move the player away. Well the problem is, I want the animation to preform only once when the player reaches 30 % of hp and then he just lays without repeating the animation again, please help.
-thx
-thx
Код:
{
SetPlayerScore(playerid, GetPlayerMoney(playerid));
new Float:hp;
GetPlayerHealth(playerid, hp);
if (hp < 30.0)
{
ApplyAnimation(playerid, "MD_CHASE", "MD_BIKE_Lnd_Roll", 4.1,0,1,1,1,1);
}
return 1;
}

