for(new i=0; i<MAX_VEHICLES; i++) { new vehs; foreach(Player, x) { if(GetPlayerVehicleID(x) == i) { vehs = 1; } } if(!vehs) { SetVehicleToRespawn(i); } vehs = 0; }