Xwad Posted September 22, 2015 Share Posted September 22, 2015 HI i want to stop the animation with the timer but the ds3 is always saying: Bad argumentum:( function tazershootserverside ( ) setPedAnimation ( source, "RIFLE", "RIFLE_load") toggleControl (source, "fire", false) setTimer(toggleControl, 5000, 1, source, "fire", true) setTimer( stopAnim, 2000, 1 ) end addEvent ( "ontazershoot", true ) addEventHandler ( "ontazershoot", root, tazershootserverside ) function stopAnim (source) setPedAnimation (source) end Link to comment
KariiiM Posted September 22, 2015 Share Posted September 22, 2015 function tazershootserverside ( ) toggleControl (source, "fire", false) setTimer(toggleControl, 5000, 1, source, "fire", true) setPedAnimation ( source, "RIFLE", "RIFLE_load") setTimer(setPedAnimation, 2000, 1, source, false) end addEvent ( "ontazershoot", true ) addEventHandler ( "ontazershoot", root, tazershootserverside ) Link to comment
Xwad Posted September 23, 2015 Author Share Posted September 23, 2015 Working!! Thanks a lot!!<3 Link to comment
Xwad Posted September 23, 2015 Author Share Posted September 23, 2015 One more question! How can i make the rocket faster when im shooting with rpg? Link to comment
KariiiM Posted September 23, 2015 Share Posted September 23, 2015 Working!! Thanks a lot!!<3 You're welcome, Use this function to do that setWeaponProperty Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now