17.12.2016, 08:14
Animation isn't applied because of the TogglePlayerControllable.
Try this code;
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;
}
