Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const iTime = 10000;
- function onScriptLoad() {
- NewTimer( "ReSpawnVehicles", iTime, 0 );
- }
- function ReSpawnVehicles() {
- local vehs = GetVehicleCount(), i, veh;
- for (i = 1; i < vehs; i++) {
- veh = FindVehicle(i);
- if ( veh && veh.Driver == null ) { //Check if vehicle exists and it has no driver
- veh.Respawn();
- }
- }
- }
Add Comment
Please, Sign In to add comment