OnPlayerTakeDmg not caling animacion ?
#5

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;
}
Reply


Messages In This Thread
OnPlayerTakeDmg not caling animacion ? - by Azazelo - 08.12.2012, 08:40
Re: OnPlayerTakeDmg not caling animacion ? - by DaRk_RaiN - 08.12.2012, 08:45
Re: OnPlayerTakeDmg not caling animacion ? - by Azazelo - 08.12.2012, 09:06
Re: OnPlayerTakeDmg not caling animacion ? - by DaRk_RaiN - 08.12.2012, 09:14
Re: OnPlayerTakeDmg not caling animacion ? - by Lordzy - 08.12.2012, 09:16

Forum Jump:


Users browsing this thread: 2 Guest(s)