SA-MP Forums Archive
[HELP] How to Respawn a car if it not is used for 45 seconds.?..?!!? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] How to Respawn a car if it not is used for 45 seconds.?..?!!? (/showthread.php?tid=88243)



[HELP] How to Respawn a car if it not is used for 45 seconds.?..?!!? - RyDeR` - 25.07.2009

I've created a mini game mode but I want that the cars when they not used (45 seconds) or it exploded directly respawn on the original place? Anybody an idea??


Re: [HELP] How to Respawn a car if it not is used for 45 seconds.?..?!!? - Geekzor - 25.07.2009

Код:
AddStaticVehicleEx



Re: [HELP] How to Respawn a car if it not is used for 45 seconds.?..?!!? - Anarkien - 25.07.2009

You'll have to make a timer which will count to 45.
When it reach 45, it will destroy the vehicle in order to make it go back to its original place.
What you'll also have to consider is the fact that it will also explode after 45 sec. even though it's at the spawn place.
If you don't know how to script it, and you don't want to learn how to script it yourself, go here and ask: http://forum.sa-mp.com/index.php?topic=94387.0


Re: [HELP] How to Respawn a car if it not is used for 45 seconds.?..?!!? - RyDeR` - 25.07.2009

Thank you all.


Re: [HELP] How to Respawn a car if it not is used for 45 seconds.?..?!!? - yezizhu - 25.07.2009

Use timer?
NO.
CreateVehicle

Wiki is your friend.