Quote:
Originally Posted by varthshenon
pawn Код:
for(new i=1;i<=MAX_VEHICLES;i++) { new count = 0; for(new a=0;a<MAX_PLAYERS;a++) { if(IsPlayerConnected(a) && IsPlayerInAnyVehicle(a)) { if(GetPlayerVehicleID(a) == i) count++; } } if(count > 0) { DestroyVehicle(i); } }
|
This destory only a occupied vehicle, i don't want to destroy a occupied vehicle and to destroy unoccupied vehicle.