Jump to content

G-Stefan

Members
  • Posts

    205
  • Joined

  • Last visited

Everything posted by G-Stefan

  1. Mulțumesc mult de răspuns, @Tekken,însă am o mică rugăminte:explică-mi te rog ce face fiecare chestie din fișierul '.fx' deoarece vreau să învăț să le fac singur.
  2. teleports = { ["lv"] = {x,y,z,int,dim},--x,y,z,int și dim trebuie completate de către tine ["ls"] = {x,y,z,int,dim} --etc,aici mai poți adăuga câte vrei tu } function teleportThePlayer(playerSource,command,location) if location then if teleports[location] then setElementPosition(playerSource,teleports[location][1],teleports[location][2],teleports[location][3]) else outputChatBox("[!]Locația introdusă nu este validă",playerSource,255,0,0,true) end else outputChatBox("[!]Sintaxa corectă este:/goto [Locație]",playerSource,255,0,0,true) end end addCommandHandler("goto",teleportThePlayer) --Script-ul nu este testat și s-ar putea să nu meargă --Dacă nu funcționează postează aici erorile din debugscript
  3. Nu vă înțeleg de ce spuneți câcaturi despre servere... Nu îți place, nu te juca! Spunând chestiile astea despre un server arată mediocritatea ta. Dacă nu îți place un server fă tu unul mai fain și atunci eu tac din gură. Să faci un server nu este așa simplu, mai ales să îl ții deschis ani (precum dany a făcut)
  4. Serverul va fi amânat ceva timp deoarece clasa a 10-a nu îmi permite să lucrez la ceva atât de complex M-am decis să fac un gm unic în România (nu rp) care să nu necesite atât de mult timp și care să atragă jucători (+ că acest gm o să mă ajute să mai învăț câte ceva până reușesc să mă apuc de rp) Am observat că deja sunt servere de rp în abundență așa că am ales să pun gm-ul unic în prim-plan Cine dorește să contribuie să mă contacteze pe Skype (galea.stefan) (îmi cer scuze pentru double-post)
  5. https://cit2.net/index.php?topic=141928.0 Citește aici, s-ar putea să te ajute
  6. Bine ai venit, Darius. Acest forum este dedicat comunității române de mtasa. Ne cerem scuze dar pentru această problemă va trebui să te duci pe forumul serverului pe care te joci
  7. dany.alex37 Salut dany,cum mai merge cu serverul?(Nota:Pe dany l-am intrebat asa ca nu i fa tu public ala)
  8. Dany poti sa-mi dai Skype-ul tau te rog? Vreau sa vorbesc ceva cu tine
  9. Mai imi aduc aminte cand Conquer si-a deschis TDL-ul (asa cred ca se numea, era race) si toti ne chinuiam sa facem harta sidez v1 sin nimeni nu reausea =))))
  10. Eu inca nu pot intelege cum faceti din orice post o cearta...Asa vreti sa ne ajutam unu pe altu,certandu-ne?
  11. Hello guys,Galea here After readig comments 'round here and i saw that most of you say that this section doesnt need a moderator because it is not active This section isnt active because there is nothing here to attract players to join the forum.Here is full of non-sense,unseful,mean,unhelpful topics & posts.How do you think a section like this will attract members? This section must be remade from scratch:topics should be deleted -new subforums (like Tutorials,Scripting,Community etc...) -the section rules must be updated -new,intresting,helpful and nice posts must be created After accomplishing these four processes ,with some help from the romanian servers owners,we shoud advertise the forum everywhere and belive me,new people will join I managed to get 2-3 new members for this section,alone!
  12. Salut,as fi bucuros sa te ajut cu serverul numai cu o mica conditie:Sa stii putin lua acolo cat sa poti edita si tu un script Daca esti interesat galea.stefan (skype)
  13. Asta e doar un exemplu, nu e un script, citeste care sunt întrebările
  14. I'm running a local server and i use G&T custom town I have some little problems with the custom objects 1.Every player except me can collide with every object. I can enter in some structure but other players cant 2.Sometimes invisible objects seems to appear and bugs starts to appear Things that might cause this bug 1.The town is far from gta-sa map I can delete sa map and move the town 2.Collisions doesnt work for me I can delete the map from downloaded resources folder 3.Map or custom obects doesn-t load as fast as needed I can set a timer to have a brake of 10 secs between Useful script? : addEventHandler("onClientResourceStart",root, function () for i, v in pairs (getElementsByType("object")) do setElementCollidableWith(localPlayer,v,true) setElementCollisionsEnabled(v,true) end ) Please give me some advices
  15. Am niste mici intrebari legate de lua & sqlite 1.Deci am baza asta de date: local conn = dbConect("sqlite","...") dbExec(conn,"CREATE TABE IF NOT EXISTS tableName (id INTEGER PRIMARY KEY AUTOINCREMENT,ceva TEXT)") Cand vreu sa fac asta ce pun la id sa se puna singur,nil? dbExec(conn,"INSERT INTO tableName (id,ceva) VALUES (?,?)",theId,something) 2.Cand fac asta local query =dbQuery(conn,"SELECT * FROM tableName") local result = dbPoll(query,-1) Result va fi o masa care va arata asa: result = {id1 = ceva1 ... } ceva1 este egal cu result.id1 , result[id1] sau amandoua?
  16. Idea: Save all the phones numbers in a database then,when the resource starts,store all the numbers in a table like this: phoneNumbers[accountName]= thePhone number --The database's format should be accName TEXT,phoneNum TEXT/NUMBER After this,when a player uses the command /sms [number] [message] (Server) trigger a client event witch stores the message in a table sendedSms={ } --When the event is triggered table.insert(sendedSms,sendedSms[phNumber][#sendedSms[phNumber] + 1],message)--not sure if works --the table would look like this: sendedSms = { phNum1 = {sms1,sms2,...,smsN} } And when you want to make a gridlist with sms just cycle thru the messages
  17. Ba oamenilor ce va certati asa,fara sens si fara sa realizati nimic? Fiecare jucator are serverul lui si fiecare are echipa lui si nu cred ca pe tine te intereseaza ce face el atat timp cat el are o gramada de jucatori iar tu nici capabil sa faci un script nu esti,asa ca terminati cu certurile astea fara sens ca nu ajungeti nicaieri
  18. Ma gandesc sa fac o intreaga comunitate dar intai incep cu serverul asta.Daca trezeste interese o sa apara mai multe servere
  19. Cam asa a fost si prima mea experienta cu map editor-ul =)
  20. Va rog frumos nu incepeti o cearta pe tema asta...Staff-ul MTA decide daca sa aleaga moderatori sau nu,nu noi si topic-ul asta nu are nici o legatura cu mod-ul,totul se discuta pe Section Moderators
  21. Mersi de ajutor,ma duc sa schimb toate elementData-urile =)
  22. G-Stefan

    Phone System

    Try this one: addEventHandler("onClientRender",root,function() for _,phone in ipairs(getElementsByType("Object")) do if (getObjectModel(phone) == 1216) or (getObjectModel(phone) == 1363) then local x,y,z = getElementPosition(getLocalPlayer()) local vx,vy,vz = getElementPosition(phone) if (getDistanceBetweenPoints3D(x,y,z,vx,vy,vz) <= 4) then dxDrawLine(18 - 1, 536, 286, 536, tocolor(0, 0, 0, 254), 1, false) dxDrawLine(286, 536, 286, 479 - 1, tocolor(0, 0, 0, 254), 1, false) dxDrawRectangle(18, 479, 268, 57, tocolor(0, 0, 16, 238), false) dxDrawImage(28, 487, 44, 39, "images/phone.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Press E to use the phone.", 78, 487, 276, 526, tocolor(236, 233, 0, 254), 0.45, "bankgothic", "center", "center", false, false, false, false, false) end end end end end) Make sure that the phones are added by script or .map file
  23. local vehicleHaveTintedWindow = getElementData(vehicle, "tuning.tintedWindow") or 0 then if vehicleHaveTintedWindow then outputChatBox("perfect") end i do this and there is nothing in chatbox Try this: local windowData = getElementData(vehicle, "tuning.tintedWindow") if windowData then outputChatBox("The data exists") else outputChatBox("Unable to get the data") end
  24. Haide sa lasam treaba cu modul pentru sectiunea moderatorilor si sa ne bucuram de amintirile frumoase EDIT:Numele topicului a fost actualizat
×
×
  • Create New...