14.08.2010, 23:10
hey people, i'm now posting to know how can i stop the animation after it is activated?
i created a timer to call this function, but the problem is that i don't know how to stop playing it. If i do with clear animation function, the timer will call it all the time anyway, so walking, entering cars, swiming, jumping animations, aiming, firing animations won't show up :S what can i do? thanks for help
i created a timer to call this function, but the problem is that i don't know how to stop playing it. If i do with clear animation function, the timer will call it all the time anyway, so walking, entering cars, swiming, jumping animations, aiming, firing animations won't show up :S what can i do? thanks for help
Код:
public drunk(playerid) { if(GetPlayerDrunkLevel(playerid) > 1000) { ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1); } else if(GetPlayerDrunkLevel(playerid) > 500) { // what to do here? :S } return 1; }