02.01.2012, 14:39
You mean ro respawn all unused cars?
Code:
if(strcmp(cmd, "/respawncars", true) == 0) { if(IsPlayerConnected(playerid)) { new vehcount = 0; for(new i = 0; i < sizeof(Cars); i++) { if(CreatedCars[i] != INVALID_VEHICLE_ID) { vehcount++; gDestroyVehicles[Cars[i]] = 1; SetVehiclesToRespawn(Cars[i]); Cars[i] = INVALID_VEHICLE_ID; } } return 1; } return 1; }