13.08.2010, 00:20
Ok im trying to do if player holds walk button he walks if he lets go of the button he stops
someone help? P.S everything is already defined
someone help? P.S everything is already defined
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (HOLDING(KEY_WALK)) { if(UsesWalk[playerid] == 1) { ApplyAnimation(playerid,"ped","WALK_gang1",4.1,1,1,1,1,1); } else if (RELEASED(KEY_WALK)) { //Stops Walking } } return 1; }