22.04.2010, 20:58
Quote:
Originally Posted by Mастерминд
Quote:
![]() This is more efficient than the one I posted before. It destroys all vehicles after id 348 and stops after first non-existing vehicle: pawn Код:
gets destroyed and there are still vehicles with higher id than the destroyed vehicle, so you may wanna loop through all vehicles.. EDIT: Quote:
![]() pawn Код:
|
Quote:
Originally Posted by Joe Staff
And DestroyVehicle has a check in it to see if the vehicle exists or not, so you can just delete vehicle 349 to 2000 without concern.
|
pawn Код:
for(new carid = 348; DestroyVehicle(carid++); ) {}