12.08.2014, 20:47
so basically what i am doing is a /rac (respawn all cars) and i want some vehicles to be destroyed and others to SetVehicleToRespawn. Admins can create cars and the id of that car is pInfo[playerid][AdminCar] - i want do destroy thoose vehicles and just respawn the others.
EDIT: this is my old /rac command:
EDIT: this is my old /rac command:
Код:
new bool:vehicleused[MAX_VEHICLES]; for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i)) { vehicleused[GetPlayerVehicleID(i)] = true; } } for(new i=1; i < MAX_VEHICLES; i++) { if(!vehicleused[i]) { SetVehicleToRespawn(i); } }