22.04.2010, 20:49
Quote:
Originally Posted by Joe Staff
IsVehicleConnected is stupid.
|
![afro](images/smilies/mrgreen.gif)
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 Код:
new Float:x, Float:y, Float:z, carid = 348;
while(GetVehiclePos(++carid, x, y, z)) DestroyVehicle(carid);
gets destroyed and there are still vehicles with higher id than the destroyed vehicle, so you may wanna loop through all vehicles..
EDIT:
Quote:
Originally Posted by Joe Staff
just use GetVehicleModel.
|
pawn Код:
new carid = 348;
while(GetVehicleModel(++carid)) DestroyVehicle(carid);