Need help on despawning a car.
#5

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:
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 ] );
Reply


Messages In This Thread
Need help on despawning a car. - by DavidLuango - 11.10.2013, 15:49
Re: Need help on despawning a car. - by xVIP3Rx - 11.10.2013, 15:54
Re: Need help on despawning a car. - by Konstantinos - 11.10.2013, 15:55
Re: Need help on despawning a car. - by DavidLuango - 11.10.2013, 15:57
Re: Need help on despawning a car. - by Konstantinos - 11.10.2013, 16:01
Re: Need help on despawning a car. - by xVIP3Rx - 11.10.2013, 16:05
Re: Need help on despawning a car. - by DavidLuango - 11.10.2013, 16:11

Forum Jump:


Users browsing this thread: 1 Guest(s)