ApplyAnimation
#4

Sure.

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID) {
   
        switch(weaponid) {
       
            case 3: //Police baton!
            {
                ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); //Apply it twice!
                TogglePlayerControllable(playerid, 0);
                SetTimerEx("ClearAnims", 20*1000, 0, "i", playerid);
            }
        }
   
    }
    return 1;
}

forward ClearAnims(playerid);
public ClearAnims(playerid) { return ClearAnimations(playerid), TogglePlayerControllable(playerid, 1); }
Something like that.
Reply


Messages In This Thread
ApplyAnimation - by Gooday - 19.01.2012, 19:04
Re: ApplyAnimation - by 2KY - 19.01.2012, 19:10
Re: ApplyAnimation - by Gooday - 19.01.2012, 19:16
Re: ApplyAnimation - by 2KY - 19.01.2012, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)