Posts: 101
Threads: 34
Joined: Feb 2011
Reputation:
0
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
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.
Posts: 3,351
Threads: 780
Joined: Jan 2010
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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);