Vehicle re-spawning..
#1

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.
Reply
#2

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.
Reply
#3

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);
Reply
#4

-1 sets it to never respawn.

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)