18.06.2013, 20:10
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;
}
}

