Vehicle Check?
#1

Hi, I want to ask you to make a vehicle check. I mean: Every 1min, server automatically destroy all empty vehicles (vehicles without drivers and passengers).

I try to create it, but I could not :S
Reply
#2

You could set the respawn time for the vehicles in AddStaticVehicleEx/CreateVehicle to 60 seconds. Then at OnVehicleSpawn you destroy the vehicle. Since OnVehicleSpawn is only ever called when a vehicle re-spawns, this shouldn't be a problem.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
You could set the respawn time for the vehicles in AddStaticVehicleEx/CreateVehicle to 60 seconds. Then at OnVehicleSpawn you destroy the vehicle. Since OnVehicleSpawn is only ever called when a vehicle re-spawns, this shouldn't be a problem.
I didn't add vehicles. I have /Car script, which made vehicles.
Reply
#4

//Delete this,sorry.
Reply
#5

Like I said, set the respawn_delay in CreateVehicle to 60 seconds ...
native CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)