OnPlayerTakeDamage problem
#8

Animation isn't applied because of the TogglePlayerControllable.
Try this code;

Код:
	if((weaponid >= 22 && weaponid <= 34) && (bodypart == 7 || bodypart == 8))
	{
        	ApplyAnimation(playerid, "PED", "KO_skid_front", 4.1, 0, 0, 1, 0, 1);
		SendClientMessage(playerid, COLOR_RED, "You were shot in the legs, you cant walk properly");
		SetTimerEx("damagedlegs", 5000, false, "i", playerid);
		return 1;
	}
Код:
forward damagedlegs(playerid);
public damagedlegs(playerid)
{
	ClearAnimations(playerid);
	return 1;
}
Reply


Messages In This Thread
OnPlayerTakeDamage problem - by Reignbow - 17.12.2016, 06:50
Re: OnPlayerTakeDamage problem - by Logic_ - 17.12.2016, 06:58
Re: OnPlayerTakeDamage problem - by Reignbow - 17.12.2016, 07:10
Re: OnPlayerTakeDamage problem - by Logic_ - 17.12.2016, 07:22
Re: OnPlayerTakeDamage problem - by Reignbow - 17.12.2016, 07:51
Re: OnPlayerTakeDamage problem - by Logic_ - 17.12.2016, 07:54
Re: OnPlayerTakeDamage problem - by Reignbow - 17.12.2016, 07:59
Re: OnPlayerTakeDamage problem - by Logic_ - 17.12.2016, 08:14
Re: OnPlayerTakeDamage problem - by Reignbow - 17.12.2016, 08:27
Re: OnPlayerTakeDamage problem - by Logic_ - 17.12.2016, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)