Respawn cars delay.
#1

Hello everyone,

Well as the tittle says im having a problem with the vehicles respawn time, this is an example of the lines that im currently using:

pawn Код:
AddStaticVehicleEx(596,-1381.9910,457.0832,6.9837,0.1452, 44, 86, 900);
Well i wanted to respawn this car in 15 minutes but when i droped it to the sea it automatically respawns without any delay time.

If someone could help would be nice Thanx.
Reply
#2

The respawn delay kicks in when a driver leaves the car. X seconds with no driver then it respawns.

When the car goes into the water its like blowing it up, it gets destroyed so it respawns because the car was destroyed.
Reply
#3

So how do i do to make the car respawn in 20 minutes after getting destroyed? i saw this on a RP server.
Reply
#4

Timer when you live your vehicle ? respawn your last veh
Reply
#5

Im using a GF edit and i want owneable cars to respawn in 15 minutes after being destroyed not automatically, if someone knows how i would appreciate it so much.

Thanks
Reply
#6

the delay time is in milliseconds isn't it?
Reply
#7

Im not using that function.
Reply
#8

Well, set usual 900 seconds [ 15 mins ]

after car is blowed up, there cant be driver in it
Reply
#9

I used to think respawn time was in miliseconds, but now I am pretty sure its in seconds ( this is also what it says on the wiki )

An easy way to delay vehicle spawn after OnVehicleDeath is to change the vehicles virtual world, add the extra respawn time you want to gettime, put it in a global variable that is unique to each vehicle, and then check the variable periodically to reset its virtual world.
Reply
#10

Hmm well i will try changin the vworld of the vehicles but i thought it doesnt had to do it by that way...Thanks for the help.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)