DarkByte Posted October 14, 2015 Posted October 14, 2015 Can someone help me to make a missile timer. When a player shoot a missle from hydra and then he will able to shoot after 5 seconds, how is this possible? When I hear someone saying Mac is better than PC. w0t?w0t? w0t? Great minds discuss ideas, average minds discuss events and small minds discuss people.
LoOs Posted October 14, 2015 Posted October 14, 2015 Can someone help me to make a missile timer. When a player shoot a missle from hydra and then he will able to shoot after 5 seconds, how is this possible? addEventHandler 'onVehicleWeaponFire' cancelEvent setTimer removeEventHandler' Discord: LoOs#1111 _____________________________
DarkByte Posted October 14, 2015 Author Posted October 14, 2015 With a script please When I hear someone saying Mac is better than PC. w0t?w0t? w0t? Great minds discuss ideas, average minds discuss events and small minds discuss people.
LoOs Posted October 14, 2015 Posted October 14, 2015 With a script please test :# addEventHandler('onVehicleWeaponFire',root, function () addEventHandler('onVehicleWeaponFire',root,cancelEvent) setTimer(function () removeEventHandler('onVehicleWeaponFire',root,cancelEvent) end ,5000,1) end ) Discord: LoOs#1111 _____________________________
Wumbaloo Posted October 14, 2015 Posted October 14, 2015 You forgot if getPedOccupiedVehicle == "Hydra" then Computer science student at { EPITECH }
TAPL Posted October 14, 2015 Posted October 14, 2015 onVehicleWeaponFire isn't mta native event, it's from useful function and this event cannot be cancelled. @Wumbaloo, getPedOccupiedVehicle return vehicle element, not string with vehicle name. @-Lemonade-, you will need toggleControl to disable the controls vehicle_fire and vehicle_secondary_fire when a player shoot from hydra and re-enable them after 5 secs.
DarkByte Posted October 14, 2015 Author Posted October 14, 2015 Give me a script im not so advanced When I hear someone saying Mac is better than PC. w0t?w0t? w0t? Great minds discuss ideas, average minds discuss events and small minds discuss people.
Noki Posted October 15, 2015 Posted October 15, 2015 Give me a script im not so advanced viewtopic.php?f=91&t=47897 NOTE: Please remember that this is not a forum for requests. We can help you with your code or question but we will not script for you.
DarkByte Posted October 15, 2015 Author Posted October 15, 2015 I cant make it When I hear someone saying Mac is better than PC. w0t?w0t? w0t? Great minds discuss ideas, average minds discuss events and small minds discuss people.
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