SA-MP Forums Archive
Vehicle re-spawning.. - 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: Vehicle re-spawning.. (/showthread.php?tid=292215)



Vehicle re-spawning.. - Cr4zyR0d - 23.10.2011

How can I turn off the Vehicle Re-spawning time?
In my script every car will re-spawn again every ten minutes, if you aren't inside them..

Example:

I'm going to LSPD with my car and I've been ten minutes out of the vehicle, it will re-spawn where it was before I took it.

I want to remove that re-spawning script..

I will appreciate your help, thanks.


Re: Vehicle re-spawning.. - PowerPC603 - 23.10.2011

Just set the respawn-delay ridicuously high like:
CreateVehicle(562, 10.0, 100.0, 5.0, 0.0, -1, -1, 1000000000)

This means it's only respawned after 1 billion seconds = 31 years.
I don't think your server will run that long without a restart.


Re: Vehicle re-spawning.. - Killa[DGZ] - 23.10.2011

Yeah i probably wouldn't set it to that long, i would suggest using something like "604800" which is 7 days.
pawn Код:
CreateVehicle(vehicle, X,Y,Z, 0.0, color1, color2, 604800);



Re: Vehicle re-spawning.. - dr.pepper - 23.10.2011

-1 sets it to never respawn.

pawn Код:
CreateVehicle(vehicle, X,Y,Z, 0.0, color1, color2, -1);



Respuesta: Vehicle re-spawning.. - Cr4zyR0d - 23.10.2011

pawn Код:
AddStaticVehicleEx(400,2510.1841,-1466.2791,24.1169,271.4377,126,126,1000000000); // Des cars
Like this? ^


Re: Vehicle re-spawning.. - |_ⒾⓇⓄN_ⒹⓄG_| - 23.10.2011

sometimes the cars in my server respawn with "-1" lol
idk if that's a bug.
well
put lots of seconds there x)