21.04.2011, 10:22
(
Последний раз редактировалось pi22031990; 22.04.2011 в 02:27.
)
Fix /v park ( if you use my attach)
find :
public OnGameModeInit()
find : scratchcarcp = CreateDynamicCP(2587.5195,-1543.7015,11.2107,7.0);find :
public OnGameModeInit()
Код:
for(new h = 1; h < sizeof(CarInfo); h++) { format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h); if(fexist(string2)) { if(CarInfo[h][cOwned] == 0) { ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],-1336.6174,-203.8509,5.7055+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); } else //add this { ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000); } if(CarInfo[h][cPaintjob] != 999) { ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]); } SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]); SetVehicleModifications(h); } }
Код:
delete it for(new h = 0; h < sizeof(ownedcar); h++) { if(IsAnOwnableCar(h) && CarInfo[h][cOwned] == 0) { DestroyVehicle(h); } }
Код:
SafeRemovePlayerFromVehicle(playerid); CarInfo[ownvehkey][cOwned] = 0; CarInfo[ownvehkey][cLock] = 1; // add this DestroyVehicle(ownvehkey);
Or download it.( Listen don't use it if you don't want fix all bug again).
If you don't use /v park , you may not need fix it, because player can use /v park to fix vehicles , mechanic lost job.