Help with anims
#3

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

//Under your animation cmd
doingAnim{playerid} = true;

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_FIRE)
    {
    if (doingAnim{playerid})
    {
        ClearAnimations(playerid);
        doingAnim{playerid} = false;
    }
    }
return 1;
}
EDIT:
If you want it to be RMB, just simply replace KEY_FIRE with KEY_AIM
Reply


Messages In This Thread
Help with anims - by eemalekorraks - 03.09.2013, 12:11
Re: Help with anims - by eemalekorraks - 03.09.2013, 18:28
Re: Help with anims - by TonyII - 03.09.2013, 18:32
Re: Help with anims - by eemalekorraks - 04.09.2013, 13:06

Forum Jump:


Users browsing this thread: 1 Guest(s)