SA-MP Forums Archive
How do I make it so if a vehicle isn't at it's spawn point it respawns - 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)
+--- Thread: How do I make it so if a vehicle isn't at it's spawn point it respawns (/showthread.php?tid=462954)



How do I make it so if a vehicle isn't at it's spawn point it respawns - ExtendedCarbon - 09.09.2013

I have vehicles mapped in at spawn, but if people ram them away they don't respawn unless I use a respawncars command.

How do I make it so that they respawn when they are not at the spawn location


Re: How do I make it so if a vehicle isn't at it's spawn point it respawns - Jstylezzz - 09.09.2013

Set a timer to check the car's position. If the position does not equal it's spawn position (which you can save in variables), make the vehicle respawn with the respawn function.


Re: How do I make it so if a vehicle isn't at it's spawn point it respawns - IstuntmanI - 09.09.2013

https://sampwiki.blast.hk/wiki/OnUnoccupiedVehicleUpdate