27.05.2017, 15:33
Hello bro ,based on what you said i found this :
Quote:
public OnVehicleDeath(vehicleid, killerid) { if(IsShopVehicle[vehicleid] != -1) { new v = IsShopVehicle[vehicleid]; DestroyNeons(vehicleid); DestroyVehicle(vehicleid); new newveh = CreateVehicle(VehicleInfo[v][vModel], VehicleInfo[v][vPosX], VehicleInfo[v][vPosY], VehicleInfo[v][vPosZ], VehicleInfo[v][vPosA], VehicleInfo[v][vColor1], VehicleInfo[v][vColor2], 500000); SetVehicleNumberPlate(newveh, VehicleInfo[v][vPlate]); IsShopVehicle[newveh] = v; SetVehicleHealth(newveh, 1000.0); VehicleInfo[v][vHealth] = 1000.0; VehicleInfo[v][vFuel] = 75 + random(25); for(new m = 0; m < 12; m++) { if(GetVehicleMods[v][m] > 0) { AddVehicleComponent(newveh, GetVehicleMods[v][m]); } } |