ClearAnimations
#2

The only reliable way would be to keep track of a bool for each player to see if he used an animation command or not, then if it's true, don't clear it.

pawn Код:
new bool:doingAnim[MAX_PLAYERS char];

CMD:piss(playerid, params[]) {
    //Piss animation, I don't remember it off the top of my head
    doingAnim{playerid} = true;
    return 1;
}

//When player hits the space bar
if (newkeys & KEY_SPRINT) {
    if (doingAnim{playerid}) {
        ClearAnimations(playerid);
        doingAnim{playerid} = false;
    }
}
Reply


Messages In This Thread
ClearAnimations - by RALL0 - 18.06.2013, 19:01
Re: ClearAnimations - by Alternative112 - 18.06.2013, 20:10
Re: ClearAnimations - by SwisherSweet - 18.06.2013, 20:13
Re: ClearAnimations - by Alternative112 - 18.06.2013, 20:23
Re: ClearAnimations - by SwisherSweet - 18.06.2013, 20:27
Re: ClearAnimations - by RALL0 - 18.06.2013, 21:36
Re: ClearAnimations - by Scenario - 18.06.2013, 21:41
Re: ClearAnimations - by SwisherSweet - 18.06.2013, 21:49

Forum Jump:


Users browsing this thread: 1 Guest(s)