06.01.2014, 16:34
Quote:
Код:
new bool:VehiclesByVCommand[2000]; // In your /v command use: VehiclesByVCommand[vehicleid] = true; Just loop through all vehicles (from 1 to 1999) and check if the VehicleByVCommand is set to "true". If it's "true", destroy the vehicle and set this variable back to "false" (to prevent trying to destroy the vehicle again if the command is used again afterwards). If it's false, do nothing. |
pawn Код:
// In your /v command use:
VehiclesByVCommand[vehicleid - 1] = true;