Gireada Posted September 7, 2013 Report Share Posted September 7, 2013 Buna m-am gandit sa fac un tutorial cum sa pui vehicule in ShowRoom fara sa se schimbe id-urileAtentie! Atentie! Sistemul meu e cam vechi dar e la bun. Daca aveti voi ceva in plus nu stergeti. Faceti ce va zic eu.Incepem1.Adaugam masinile in cars.cfg.Vehiculele trebuie sa fie in genul asta: 411, 2386.2446, 559.4359, 7.6070, 90.0000, 1, 1,Dealership,Infernus,520000,,0,0451, 2353.5449, 572.8694, 7.3122, 90.0000, -1, -1,Dealership,Turismo,492000,,0,0Ce inseamna fiecare:411, 2386.2446, 559.4359, 7.6070, 90.0000, 1, 1,Dealership,Infernus,520000,0,0,0411 -ID Vehiculului (infernus)2386.2446, 559.4359, 7.6070, 90.0000- Coordonatele Vehiculului1, 1 - Culoarea VehicululuiDealership - Daca e de vanzare (puteti scrie nume acolo Ex:Gireda_Iulian)Infernus - Aceasta e descrierea ce fel de vehicul este520000 - Pretul Vehiculului,,0 -Daca este cumparat (0-nu 1-da),0 - Daca vehiculul este inchis(1)/deschis(0)(Vam atasat un Exemplu de Cars.cfg e de LV)http://wiki.sa-mp.com/wiki/Color_ID <<<<<< Culori vehiculehttp://wiki.sa-mp.com/wiki/Vehicle_Model_ID_List <<<<<<<<<< ID vehiculeAm rezolvat cu toate astea2.Daca sau pus vehicule noi in trebuie sa face in PWN(GameMode) cateva schimbaro.[pawn]AddStaticVehicleEx(487, 1291.5544, -787.3508, 97.5544, 0.0000, 0, 0, 30000);// LCN 232[/pawn]Aceasta este ultima mea masina din GameMode.Are Id 232.3.Cautam(CTRL+F) [pawn]public IsAnOwnableCar[/pawn]iar la linia punem astfel[pawn]if(carid >= 233 && carid <= X)[/pawn](233-nr masinilor din GM+1 X-{cate vehicule ai in Cars.cfg}+{nr. vehiculelor din GM}Exemplu:Am 100 vehicule in Cars.cfg:if(carid >= 233 && carid <= 333) 4.Cautam(CTRL+F) [pawn]public OnPlayerConnect[/pawn]mai jos gasim for(new h = 233; h < sizeof(CarInfo); h++)//unde 233 este id masinilor din GM+1 { SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]); }5.Cautam(CTRL+F) [pawn]public LoadCar()[/pawn]mai jos gasimnew idx = 233;//unde 233 este id vehiculelor din GM+16.Cautam(CTRL+F) [pawn]public SaveCarCoords()[/pawn]mai jos gasim if(idx == 233)//unde 233 este id vehiculelor din GM+1 { file2 = fopen("cars.cfg", io_write); }7.Cautam(CTRL+F) [pawn]public OnGameModeInit()[/pawn]mai jos gasimfor(new h = 233; h < sizeof(CarInfo); h++)//la fel unde 233 este nr masinilor din GM+1 {8.Cautam(CTRL+F) [pawn]public OnPropUpdate()[/pawn]mai jos gasimidx = 233;//unde 233 este nr masinilor din GM+1 while (idx < sizeof(CarInfo))9.Tot la OnPropUdate() mai jos gasimif(idx == 233)//unde 233 este nr masinilor din GM+1 { file2 = fopen("cars.cfg", io_write); }10.Ultimul Pas.Cautam (CTRL+F) [pawn]new CarInfo[/pawn]Si gasim:[pawn]new CarInfo[x][cInfo];[/pawn]X-Acesta fiind ultimul id (X-{cate vehicule ai in Cars.cfg}+{nr. vehiculelor din GM})Daca nu ati inteles coment sau apare cevaAtentie folositi acest Tutorial daca aveti acest sistem .Daca il folositi pe a lui IM_Bank aveti comanda de /acreatecar acolo aveti si de salvare a tuningului. si e complet diferit la 411, 2386.2446, 559.4359, 7.6070, 90.0000, 1, 1,Dealership,Infernus,520000,,0,0Update facut azi 21.01.2013 ora 18:23 1 Quote Link to comment Share on other sites More sharing options...
Stefan112 Posted September 7, 2013 Report Share Posted September 7, 2013 Frumos Quote Scripting for $$ .CONTACT: [email protected] . Link to comment Share on other sites More sharing options...
theogritzi Posted October 6, 2013 Report Share Posted October 6, 2013 Gireada , 5/5 Quote Link to comment Share on other sites More sharing options...
AnNdryS. Posted October 26, 2013 Report Share Posted October 26, 2013 Folositor , bravo Quote Link to comment Share on other sites More sharing options...
hTTpftw Posted November 15, 2013 Report Share Posted November 15, 2013 Bravo 5/5 Quote Fara reclama in semnatura! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.