11.10.2013, 16:01
Vehicle IDs are managed by the server; therebefore you cannot be sure about what the vehicleid is going to be.
I'd use arrays. Like:
I'd use arrays. Like:
pawn Код:
new
cop_veh[ 10 ]
;
// It can hold 10 vehicle IDs for cop vehicles (0-9). When you create the car, assign the id to the array and then:
// in your command:
for( new c; c != sizeof( cop_veh ); c++ ) DestroyVehicle( cop_veh[ c ] );

