Leg broken anim
#1

I am trying to play an anim if you get hit in the leg but the anim is not working, why?

Код:
if(issuerid != INVALID_PLAYER_ID && weaponid >= 22 && weaponid <= 38 && (bodypart == 7 || bodypart == 8))
	{
		if(pLegBroken[playerid] == false)
		{
			pLegBroken[playerid] = true;
			ApplyAnimation(playerid, "PED", "CLIMB_jump2fall", 4.1, 0, 1, 1, 0, 1000, 1);
			SetTimerEx("LegShot", 12000, true, "i", playerid);
			SCM(playerid, COLOR_LIGHTRED, "-> Ai fost impuscat in picior, nu vei mai putea alerga sau sari.");
		}
	}
You only get the message and get stuck for like a second but the anim is not playing..
Reply
#2

Anyone?
Reply
#3

Код:
ApplyAnimation(playerid, "PED", "FALL_COLLAPSE", 4.0, 0, 1, 1, 1, 1, 1);
Reply
#4

SA:MP Animations: https://sampwiki.blast.hk/wiki/Animations
SA:MP Howto Applying Animations: https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#5

Thanks guys!
Reply
#6

ApplyAnimation(playerid, "PED", "FALL_COLLAPSE", 4.0, 0, 1, 1, 1, 1, 1);


It freeze the player for like a second at the end of the anim.

If I do this, the anim won't work:
ApplyAnimation(playerid, "PED", "FALL_COLLAPSE", 4.0, 0, 1, 1, 0, 1, 1);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)