Guest MFI Posted March 31, 2009 Report Share Posted March 31, 2009 Am facut acest tutorial pt cei care nu stiu cum sa spawneze masini apoi sa le salveze si ele sa nu dispara la urmatorul restart al serverului.E simplu, nici eu nu stiam inainte.Deci:1. Intri in server.2. Iti alegi masina care o vrei, sau o spawnezi cu /veh sau /vehicle depinde ce comanda aveti.3. O bagi in ce loc vrei tu sa ramina.4. Dai /save 5. Apoi iti apare:6. Veh Possition Save.7. Si tot asa cu mai multe masini.8. Iesi din server.9. Intri unde ai instalat GTA SA.10. Cauti " Saved possition.txt ".11. Va fi in format de document " txt ".12. Intri in el.13. Si scolo sint " AddStaticVehicle ".14. Le selectezi apoi le dai " copy ".15. Intri in GM.16. Cauti " OnGameModeInit ".17. Mai jos vor mai fi " AddStaticVehicle ".18. Dai pina jos unde se termina " AddStati..... "19. Si dam " paste ".20. Apoi dam " compile ".21. Si gata.22. Succes total. Nu uitati: Trebuie sa fiti intr-o masina cind dati /save ...Am facut acest tutorial pt ca am vreo 2 in lista care ma tot intreaba.Si mii cam greu sa le explic.Asa ca am facut acest tutorial.Sper sa va ajute.Pt cei care nu au, iata comanda (/veh) ...if(strcmp(cmd, "/veh", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] < 4) { SendClientMessage(playerid, 0xA8A8FFFF, " Ne pare rau , dar tu nu ai accesul la comanda aceasta !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Culoarea trebe sa fie intre 0 si 126 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new carid = CreateVehicle(car, X,Y +3,Z, 0.0, color1, color2, 60000); CreatedCars[CreatedCar] = carid; CreatedCar ++; format(string, sizeof(string), "Ai spawnat masina cu id %d ", carid); SendClientMessage(playerid, COLOR_GREY, string); } return 1; } Quote Link to comment Share on other sites More sharing options...
cmg4life Posted March 31, 2009 Report Share Posted March 31, 2009 bv... frumos tutorial Quote -Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index Link to comment Share on other sites More sharing options...
Stunter Posted March 31, 2009 Report Share Posted March 31, 2009 bv Doker!!! Quote E aici. Link to comment Share on other sites More sharing options...
Guest kent Posted March 31, 2009 Report Share Posted March 31, 2009 bravo Quote Link to comment Share on other sites More sharing options...
IcE. Posted March 31, 2009 Report Share Posted March 31, 2009 Bravo Ar trebui facut "sticky" Quote Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis! Link to comment Share on other sites More sharing options...
-=[Vyorel]=- Posted March 31, 2009 Report Share Posted March 31, 2009 Bravo Doker Ar trebui facut "sticky"Vezi cumva vreunu Stiky inafara de ala cu Godfather ? Quote ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez. Link to comment Share on other sites More sharing options...
IcE. Posted March 31, 2009 Report Share Posted March 31, 2009 =-" post="11039" timestamp="1238498243"]Bravo Doker Vezi cumva vreunu Stiky inafara de ala cu Godfather ?Am gresit nam vazut ca sa facut un topic cu turialeSi ce sari asa Quote Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis! Link to comment Share on other sites More sharing options...
-=[Vyorel]=- Posted March 31, 2009 Report Share Posted March 31, 2009 Si ce sari asa1.Nu am sarit, ca nu am unde. (mai e pana la vara cand am sa sar in apa ) )2.Te-am anuntat sa stii. Probleme? Quote ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez. Link to comment Share on other sites More sharing options...
cmg4life Posted March 31, 2009 Report Share Posted March 31, 2009 hai ciocu mic gradinita Quote -Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index Link to comment Share on other sites More sharing options...
NinjaCroko Posted April 2, 2009 Report Share Posted April 2, 2009 gg doker :D Quote Gamemodes [url=http://www.sa-mp.ro/f Link to comment Share on other sites More sharing options...
IstuntmanI Posted April 12, 2009 Report Share Posted April 12, 2009 da si tu un site sa downloadam comanda /veh ca eu nu stiu sa editez in pawno sau altele (gata...am invatat sa adaug comanda...dar e si pentru jucatori...iar daca ei spawneaza prea mult se face lag mult misto tutorial eu am in ladmin o comanda /car (nume masina)e bine si AddStaticVehicle, dar cand iei masina de acolo nu se mai spawneaza decat dupa ce restartezi serverul.Mie mai bun mi se pare AddStaticVehicleEx dau si un model:AddStaticVehicleEx(424,-444.4452,-2496.6731,117.5208,188.9996,18,93,15);(ultimul nr., adica 15 este din cate in cate secunde sa se spawneze,poti sa il schimbi cu ce numar vrei ) sper ca v-a ajutat si minitutorialu asta(pentru cine nu stia) Quote Link to comment Share on other sites More sharing options...
-=[Vyorel]=- Posted April 12, 2009 Report Share Posted April 12, 2009 da si tu un site sa downloadam comanda /veh ca eu nu stiu sa editez in pawno sau altele (O gasesti in FS-ul de Admin, sau in GM daca are admin in el, gen GF Quote ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez. Link to comment Share on other sites More sharing options...
matrixismyname Posted April 21, 2009 Report Share Posted April 21, 2009 Majoritatea care ati raspuns deja stiati asta... ciudat...Si ai specificat in primul topic sa dam scroll pana gasim alte addstaticvehicle... si daca n-avem? Si avem createvehicle ? Ca la cati noobi citesc asta pun pariu ca n-o sa se prinda ca tot masina e si aia doar ca nu se respawneaza decat daca e mutata si nu distrusa... Quote [url=http://forum.sa-mp.ro/filter-scripts-and-gamemode Link to comment Share on other sites More sharing options...
Guest 1Word Posted November 4, 2009 Report Share Posted November 4, 2009 Multumesc..Aveam nevoie :D Quote Link to comment Share on other sites More sharing options...
Guest cosmion Posted December 23, 2009 Report Share Posted December 23, 2009 imi da niste erori la linia if (PlayerInfo[playerid][pAdmin] < 4) : error 017: undefined symbol "PlayerInfo"warning 215: expression has no effecterror 001: expected token: ";", but found "]"error 029: invalid expression, assumed zerofatal error 107: too many error messages on one line......cand incerc sa compilez comanda ''/veh''stie cineva ce pot face?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? Quote Link to comment Share on other sites More sharing options...
Razvann Posted December 23, 2009 Report Share Posted December 23, 2009 Pune-o intr-un GameMode, de ex: Godfather (asta daca nu o ai) Quote Link to comment Share on other sites More sharing options...
Guest cosmion Posted December 24, 2009 Report Share Posted December 24, 2009 sunt cam incepator.....nu inteleg :-[ Quote Link to comment Share on other sites More sharing options...
Guest wDNick Posted December 25, 2009 Report Share Posted December 25, 2009 Cosmion nu te pot ajuta aici , dami add si iti bag eu comanda in gf . vezi id la profil , Cu placere! Quote Link to comment Share on other sites More sharing options...
Nokian73 Posted January 21, 2010 Report Share Posted January 21, 2010 nu merge /save :| si sunt intr-o masina ! trebuie cumva sa pun o comanda,cv la mod? Quote Link to comment Share on other sites More sharing options...
Jo!nt Posted January 21, 2010 Report Share Posted January 21, 2010 Daca nu merge /save desi nu prea cred ... adauga cu MTA masinile ... Quote Link to comment Share on other sites More sharing options...
Guest Christiano Posted January 23, 2010 Report Share Posted January 23, 2010 Multumesc Mult! Metoda simpla si eficienta! Quote Link to comment Share on other sites More sharing options...
Guest Fly Posted March 20, 2010 Report Share Posted March 20, 2010 E un ,totul merge k,insa tot este o problema,toate masinile pe acre le bag sunt de vanzare,si e cam amuzant am bagat 2 masini de politie in fata la lspd si sunt de vanzare,cum sa fac sa nu mai fie de vanzare? Quote Link to comment Share on other sites More sharing options...
Jo!nt Posted March 20, 2010 Report Share Posted March 20, 2010 Poi sunt puse aiurea id faci asa:1) Urci in fiecare masina de la fiecare factiune dai /oldcar aflii id si le scrii pe o foaie2) Cauti linia /rentcar si adaugi masinile care vor sa fie de inchiriat ... Quote Link to comment Share on other sites More sharing options...
SyNNN Posted August 21, 2010 Report Share Posted August 21, 2010 Am facut tot dupa tutorial dar cand vreau sa intru in masina nu ma lasa:| dau F sa intru in masina si nu ma lasa. Aveti idee?? Quote Link to comment Share on other sites More sharing options...
Ch1NeZu Posted August 21, 2010 Report Share Posted August 21, 2010 :))=))) syn verifica daca ai licenta de condus ) Quote Samp.OnlyPro.ro - RolePlay - Join Us ! 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.