SA-MP Forums Archive
Help with auto crack - 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)
+--- Thread: Help with auto crack (/showthread.php?tid=286432)



Help with auto crack - Compton - 28.09.2011

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

Код:
{
	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;
}



Re: Help with auto crack - [BD]SHANU[NR] - 28.09.2011

Try This One Lol
Код:
{
	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;
}



Re: Help with auto crack - Compton - 28.09.2011

You are a funny guy you know... if you aint got something usefull to post dont post at all.