Freeze player in death anim while vulnerable
#3

Still looping the anim, my code:

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerSkin(playerid, UserStats[playerid][Skin]);
    if(PIsDead[playerid])
    {
        SetTimerEx("DeathAnim", 500, false, "i", playerid);
       
    }
    return 1;
}
public DeathAnim(playerid)
{
    TogglePlayerControllable(playerid, 0);
    ClearAnimations(playerid);
    ApplyAnimation(playerid, "PED", "KO_shot_front", 4.1, 0, 1, 1, 0, 300000, 1);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)