CapY Posted July 27, 2011 Posted July 27, 2011 So i have freeroam server. So when some player blow up vehicle it stays there , like some trash. How can i set timer to destroy blowed vehicle ?
mjau Posted July 27, 2011 Posted July 27, 2011 with my freeraom experinece it gets removed automaticly and for the timer use setTimer
BabY Posted July 28, 2011 Posted July 28, 2011 Maybe identify all cars (BLAH = getElementsByType ("vehicle")) then use (if BLA = getElementHealth(BLAH) and (BLA) == < 80 then) and set a timer to delete the element which is the vehicle. Thanks dzek for bearing my stupid questions as a noob. You helped me become a better programmer. Now I understand how important it is to help those who SUCK at programming.
Jaysds1 Posted July 28, 2011 Posted July 28, 2011 Here: function respawnExplodedVehicle() setTimer(respawnVehicle, 5000, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) I got it from Wiki My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
JR10 Posted July 28, 2011 Posted July 28, 2011 It should be server side, and it should work. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Jaysds1 Posted July 28, 2011 Posted July 28, 2011 ok, I know wiki isn't wrong. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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