08.12.2012, 09:16
While taking damage, the player's animation might get destroyed. Try running a timer like this:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
SetTimerEx("Applyanim_OPTD", 500, false, "d", playerid);
}
return 1;
}
forward Applyanim_OPTD(playerid);
public Applyanim_OPTD(playerid)
{
ApplyAnimation(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0); // Sit
return 1;
}