27.02.2014, 19:02
Use This Its Working
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_FIRE) { if(sit[playerid] == 1) { sit[playerid] =0; ApplyAnimation(playerid,"FIGHT_C","FightC_M",5,0,0,0,0,0); } } if(oldkeys == KEY_FIRE) { if(sit[playerid] == 0) { sit[playerid] =1; ClearAnimations(playerid); } } return 1; }