31.07.2013, 15:02
I need to set a timer for clearing animation, any idea on how to do this?.
Thank you in advance.
Thank you in advance.
defer yourTimer(playerid);//starting the timer //somewhere outside of any public, like a function: timer yourTimer[2000](playerid)//2000 is the time in ms and playerid is the param passed down to the timer { ClearAnimations(playerid); return 1; }
SetTimerEx("yourTimer",2000,false,"i",playerid);//starting it //somewhere outside forward yourTimer(playerid); public yourTimer(playerid) { ClearAnimations(playerid); return 1; }