car respawn time - 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: car respawn time (
/showthread.php?tid=126727)
car respawn time -
ruckfules99 - 09.02.2010
How do i make a car re spawn time? Say a car is not driven for like 5 minutes, it re spawns to its originally spot. I've seen this done in many servers.
Re: car respawn time -
NewYorkRP - 09.02.2010
instead of AddStaticVehicle
Change it to AddStaticVehicleEx
And on the end of the 2 color codes, add a "," then the seconds amount.
Example:
Код:
AddStaticVehicleEx(599,2779.3843,-2434.2644,13.3568,88.5203, 86, 86, 900); // Army rancher 1 with 900 second respawn
Re: car respawn time -
ruckfules99 - 09.02.2010
so this will make the army rancher respawn 900 seconds after a player has left it?
So if someone drove it off from it's original spawn place and left it for 900 seconds it will respawn?
Re: car respawn time -
mansonh - 09.02.2010
https://sampwiki.blast.hk/wiki/CreateVehicle
the respawn delay in the basic createvehicle says:
respawn_delay The delay until the car is respawned
without a driver in seconds.
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
However for addstaticvehicle says:
respawn_delay Time until the vehicle respawns
when it is destroyed in seconds
Not sure if its the same or not.
So to be sure use CreateVehicle