Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/04/17 in all areas

  1. He's true about elementData, it's not safe to use due to security issues. The data of the element is synched between the client side and serverside which makes it even easier to change things in the serverside of the scripts.I wouldn't use this if it's about something that will be saved on quit, more like something with no value to the server.
    2 points
  2. عندي , فكره لك هذا الكود انا مسويه : سرفر: function Download ( msg,color) local Data = getElementData ( source, "Download" ) if Data then outputChatBox('#666666(Downloading..) '.. getPlayerName(source) .. '#ffffff : '.. msg,root, r, g, b, true) return cancelEvent() end end addEventHandler ( "onPlayerChat",root, Download ) addEventHandler ( "onPlayerJoin", root, function ( ) setElementData ( source, "Download", true ) end ) addEventHandler ( "onPlayerLogin", root, function ( ) setElementData ( source, "Download", false ) end ) اذا الاعب دخل السرفر تعطيه تاق داونلود ولما يسجل الدخول يشيل منه التاق بالتوفيق .
    2 points
  3. Na verdade é bem simples por meio de código. Vc só precisa saber o ID do objeto e informar uma coordenada bem próxima ao objeto, não precisa ser exatamente no centro do objeto. Para descobrir o ID de um objeto que não é selecionável, dai é algo mais complexo que exige ferramentas externas. Para isso, vamos no site http://dev.prineside.com e clicamos no botão Model Search by Map Position. Após selecionada a posição no mapa (no seu caso eu fiz no X= 1941, Y= -1744), ele vai mostrar todos os objetos (selecionáveis e não selecionáveis) em um raio de 500 metros, em ordem dos mais próximos para os mais distantes. O objeto em questão é difícil de ser detectado, pois seu modelo é microscópico. Mas se procurar com cuidado, vai perceber que o que estamos procurando é o ID 5681. Descobrimos o ID do objeto, e agora? Agora já passou a parte mais difícil, o resto é programar um script básico de remoção de objetos por ID. Para isso vamos usar a função RemoveWorldModel. Essa função é bem simples de se usar, basta informar o ID do objeto a ser removido (5681), o raio cuja remoção será aplicada (15 metros já serve) e as coordenadas do ponto onde vai começar a remoção (no seu caso: 1911.3, -1776.25, 13.38) Não podemos nos esquecer de restaurar o objeto quando o mapa for desligado, para isso usamos RestoreWorldModel. Esqueci de mencionar que o script funciona tanto em server-side quanto em client-side, mas no seu caso faça apenas server-side. O script deve ficar assim: Esse script vc adiciona junto com o resource do seu mapa. Você pode optar por deixar isso em um script separado ou deixar junto com algum script que vc já tenha no seu mapa, server-side. Vlw, flw. Deixa um Rep+ ae.
    2 points
  4. Hello everyone! I want to present my little development - website template for servers, with information about your server online, embed statistic, and other Useful information. Based on PHP, bootstrap html/css framework, and seegaming servers API. Global update v1.1:- Now using API via JSON- New design- Easy to configure- Supporting API reviews- Support white, dark and blue themes- Parsing favicon, backgrounds, icons (if used default settings)- You can enable/disable players history graph / reviews page- Fast connect from browser to your server Demo page: Link Download: Link
    1 point
  5. السلام عليكم ورحمه الله وبركاته مجتمع العرب تعود وتحطم السوق . بخصومات شامله خلونا نشوف خطط اول وخطط اللحين من ناحيه السعر , اما المواصفات قريبه من بعض وافضل . الخطه الاولى : السعر القديم : 40 ريال السعر الجديد : 30 ريال المزايا : الخطه الثانيه : السعر القديم : 80 ريال السعر الجديد : 50 ريال المزايا : الخطه الثالثه : السعر القديم : 100 ريال السعر الجديد : 80 ريال المزايا : الخطه الرابعه : لم تكن مدرجه من الخطط ولكن تمت اضافتها حديثا السعر الجديد : 50 ريال المزايا : الخطه الخامسه : السعر القديم : 180 ريال السعر الجديد : 100 ريال المزايا : الخطه السادسه الحصريه لم تكن مدرجه من الخطط ولكن تمت اضافتها حديثا السعر الجديد : 150 ريال المزايا عطونا رايكم وش ازين الاوله ولا ذي مع تحيات طاقم مجتمع العرب رابط الموقع : http://arab-community.net/ رابط العروض : http://arab-community.net/cart.php?gid=1
    1 point
  6. السلآم عليكم ورحمة الله تعالى وبركاته, كيف حالكم ان شاء الله طيبيين , اليوم حبيت أنشر لوحة معلومات اللاعب دي آكس من صنعي طبعاً, وهذا السكربت اول سكربت أنشره في المنتدى !, صورة للمود : -- ملاحظة : داتا الوقت يمديك تعدله لأني ما شفرت المود للي يبي يستفيد, هو كذا : getElementData ( localPlayer , 'PlayTime' ) PlayTime : تغيرها لداتا الوقت حقك ! لما تضغط ع تاب تقدر تشوف وش داتا الوقت حقك طبعا لازم يكون مود توزيع الساعات موجود نجي لرابط التحميل : MR.StoRm - Information_Panel ! والسلام عليكم ورحمة الله تعالى وبركاته !
    1 point
  7. Here is a quick new video. A brand new way to load MTA. World premiere, using pefrmdllembed, the DLL to EXE injector. Not like it amounts to anything playable. You might enjoy this if you are a technological mind like me.
    1 point
  8. [CLIENT] -------------------------------------------------------------------------------- url = "http://91.121.157.114:8421/stream" -------------------------------------------------------------------------------- function playsound() local x,y,z = getElementPosition(localPlayer) sound = playSound3D(url,x,y,z) setSoundMaxDistance(sound,50) end addEvent("playsound",true) addEventHandler("playsound",root,playsound) function stopsound() stopSound(sound) end addEvent("stopsound",true) addEventHandler("stopsound",root,stopsound) [SERVER] function createSpeaker(player) if isPedInVehicle(player) then outputChatBox("#ff0000[SPEAKER] #ffffffYou can't create a speaker while you are in a vehicle.",player,255,255,255,true) return end if isElementInWater(player) then outputChatBox("#ff0000[SPEAKER] #ffffffYou can't create a speaker while you are in the water.",player,255,255,255,true) return end local x,y,z = getElementPosition(player) if not isElement(speaker) then speaker = createObject(2229,x,y,z-1) triggerClientEvent("playsound",root,x,y,z) outputChatBox("#ff0000[SPEAKER] #ffffffYou have succesfully created a speaker.",player,255,255,255,true) else local sx,sy,sz = getElementPosition(speaker) outputChatBox("#ff0000[SPEAKER] #ffffffYou have already created a speaker at ("..string.format("%.2f",sx).." "..string.format("%.2f",sy).." "..string.format("%.2f",sz)..")",player,255,255,255,true) end end addCommandHandler("cspeaker",createSpeaker) function destroySpeaker(player) if isElement(speaker) then destroyElement(speaker) outputChatBox("#ff0000[SPEAKER] #ffffffYou have succesfully destroyed the speaker.",player,255,255,255,true) triggerClientEvent("stopsound",root) else outputChatBox("#ff0000[SPEAKER] #ffffffYou haven't created a speaker.",player,255,255,255,true) end end addCommandHandler("dspeaker",destroySpeaker) function destroySpeakerOnQuit() if isElement(speaker) then destroyElement(speaker) triggerClientEvent("stopsound",root) end end addEventHandler("onPlayerQuit",root,destroySpeakerOnQuit) Please guys can someone try this script with a friend and see if it works or is there something wrong?
    1 point
  9. السلام عليكم ممكن حد يحطلي اللون احمر + مكان الكلام تحت باخر الشاشة بالنص +حجمه متوسط وشكرا function shout ( player, cmd, ... ) local accountname = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then local message = table.concat ( { ... }," " ) textDisplay = textCreateDisplay ( ) textItem = textCreateTextItem ( message, 0.5, 0.5, 2, 255, 0, 10, 255, 2, 1000, 500, 162, 35, false ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) end setTimer ( function ( ) textDestroyTextItem ( textItem ) textDestroyDisplay ( textDisplay ) end ,10000, 1 ) else outputChatBox ( "You cannot use this command!", player, 255, 12, 15 ) end end addCommandHandler ( "shoutall", shout )
    1 point
  10. You said it. Events. When you need the data, you request it. No reason to sync all possible data with all players on the server whenever it changes. Most data won't be needed clientside anyway. If you want to output it to the chat, you can do it serverside.
    1 point
  11. مب فاهم منكم اي شي ذذ .. صاحب الموضوع . لازم تتعلم البرمجة هذا رح يكون افضل لك
    1 point
  12. What does element data have to do with mysql? If you are talking about caching the information, then you should use a server-side table instead of element data. You load things like player stats etc. when they login, you save it when they quit.
    1 point
  13. I edited the post above, refresh it. Just linked an another forum post.
    1 point
  14. You'll have to get a screenshot of the GTASA map and calculate the world position refered to the clicked position. Just to give you an idea.
    1 point
  15. لو رحت الويكي كنت هتعمله لو مش بتعرف تدخل الويكي فقط اضغط على الكود اللي اي شخص يساعدك به ورح ينقلك للويكي وبتشوف اكثر من مثال
    1 point
  16. نوب ذذ لا تسوي اكواد جاهزة اتركه يجرب
    1 point
  17. showWindow = false function bindOpen() if (showWindow == false) then guiSetVisible(accept,true) guiSetVisible(Close,true) guiSetVisible(memo,true) showCursor(true) addEventHandler("onClientRender",root,DX) showWindow = true elseif (showWindow == true) then showWindow = false guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) removeEventHandler("onClientRender",root,DX) end end function LOMA () bindKey("H","down",bindOpen) outputChatBox("press H to open") end addEventHandler("onClientMarkerHit",Marker, LOMA ) addEventHandler("onClientMarkerHit",Marker1, LOMA ) addEventHandler("onClientMarkerHit",Marker2, LOMA ) addEventHandler("onClientMarkerHit",Marker3, LOMA ) addEventHandler("onClientMarkerHit",Marker4, LOMA ) addEventHandler("onClientMarkerHit",Marker5, LOMA ) addEventHandler("onClientMarkerHit",Marker6, LOMA ) addEventHandler("onClientMarkerHit",Marker7, LOMA ) addEventHandler("onClientMarkerHit",Marker8, LOMA ) function LOMA2 () unbindKey("H","down",bindOpen) end addEventHandler("onClientMarkerLeave",Marker, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker1, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker2, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker3, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker4, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker5, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker6, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker7, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker8, LOMA2 ) ------------------------------------------- addEventHandler("onClientGUIClick",root, function() if source == accept then lLocal = getLocalPlayer() if getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "Criminal" then outputChatBox ( " You are already in the team " ) else triggerServerEvent("Joinnnn", localPlayer, lLocal, 260 ) outputChatBox("Now you Are A Ceiminal",255,0,0) removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end elseif (source == Close) then removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end end )
    1 point
  18. Coucou les amis! J'ai, pour ceux qui ne le savent pas, une chaîne YouTube où j'expose mes créations et comment je me débrouille en développement sur MTA SA. J'ai sorti une vidéo il y a pas si longtemps sur mon nouveau système réalisé pour une commande. "Matos & Weapon Creation System" dont vous pouvez retrouver la vidéo ci-dessous: Pour suivre mes autres scripts, je vous invite à vous abonnez, en attendant vous pouvez consulter la liste de tout ces scripts via ma playlist que je met à jour régulièrement. Playlist: https://www.youtube.com/playlist?list=PLcX5XBPSkEU2dn2iLzzEuhQXlBQH2Tteg Ces scripts sont la pour que vous donnez votre avis afin que je puisse m'améliorer sur ma façon de développer. A la prochaine!
    1 point
  19. type upgrade all , then everything updating
    1 point
  20. It's useful to sync data with the server by setElementData for easier and faster access while the player is online. To actually answer your question perfectly, you'll have to give us more information about the environment in which your are trying to use setElementData/dbQuery.
    1 point
  21. I think MySQL is the best option, especially if you are working with large amounts of data. You might want to use setElementData for things which you only need to keep during a single session (data which doesn't have any need to be stored/recorded), and for data which you'd like to be synced across the server and all clients. Personally though I'd stick with MySQL and use events (triggerServerEvent/triggerClientEvent) to sync data between clients/server
    1 point
  22. exports.scoreboard:scoreboardAddColumn("Job") team = createTeam ("AssisSIN", 69, 0, 0) AssisSIN1 = createBlip (1613.04919, -1560.16187, 14.16809, 20 ,2 ) setBlipVisibleDistance(AssisSIN1 , 300) function AssisSIN(player) local team = getTeamFromName ("AssisSIN") setPlayerTeam (player,team) setElementModel (player, 28) getTeamColor ( AssisSIN ) setBlipColor (AssisSIN, 69,0,0) setTeamFriendlyFire ( team, true ) setElementData ( player, "Job", "Criminal" ) setPlayerNametagColor ( player, 69,0,0 ) end addEvent("Joint",true) addEventHandler("Joint",root,AssisSIN)
    1 point
  23. جرب .. انشاء كولمن جديد في السكور بورد بأي اسم تريده سوي لوب ميشان يجيب اللاعبين و سوي المنت داتا بإسم ذا الكولمن ويكون سترنج يعني بين هذي العلامة اللي في المثال "example" exports.scoreboard:addScoreboardColumn( 'example' ) for _, allPlayers in pairs( getElementsByType( "player" ) ) do killerProject = getPlayerName ( allPlayers ) setElementData( allPlayers, "example" , killerProject ) end
    1 point
  24. exports.scoreboard:addScoreboardColumn ^ الشرح https://wiki.multitheftauto.com/wiki/Resource:Dxscoreboard طريقة وضع قيمة للكولمن setElementData
    1 point
  25. اذا حاطط بوظائفك اللي يدخل الوظيفة يعطيه داتا سوي هيك call ( getResourceFromName ( "dxscoreboard" ), "scoreboardAddColumn", "Job" ) حط اسم الداتا الخاص بك مكان Job
    1 point
  26. اهلا وسهلا . شكرا لردك المتواضع وياك وجميع المسلمين شهاده نعتز فيها ي غالي
    1 point
  27. وش ذا الابداع ياولد وش ذا التصميم اللي كأنه سفينه مشكور ي بطل
    1 point
  28. مايونيز + كاشتب عليه + كل شئ ي مدير
    1 point
  29. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Welcome to the first Changelog after the forum wipe. As you already noticed we've changed our logo but that's not the reason i'm posting this. Yesterday was pretty chaotic and really a struggle to finish it. But now i'm proud to announce that our ingame chat has been connected with our discord chat. Ofcourse this is still in alpha stage, there aren't that much functions available yet but that may come later in future updates. Our team is planning to do an alpha test this weekend which is only for alpha testers. If the tests goes well i'll consider placing a release date on this topic but that's not sure yet. I know many of you expected this server earlier then this but i've encountered some bugs that I want to improve before releasing this to the public. Also i've got many suggestions on discord which will be added before the BETA release. So make sure you join our discord channel to keep yourself up to date. As Second i've added a fully working custom ranking system in the organisations.We are seriously leaving the mainstream RPG's with level based ranks. Now you can add ranks yourself with names and permissions. This is still in alpha stage so it's not the final concept we are using for this. Many changes will come within the next update. As third i've decided to release cars like Rockstar Games does within "Grand Theft Auto V". We start with 20 cars which isn't much, but i'm planning to do big thigns with the remaining cars. So stay tuned and wait till we announce the DLC release. Feel free to leave a like and maybe you'll get selected to be one of our "Special" Members. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    1 point
  30. Please explain: "when I click the link it automatically changes the URL in the text bar?" Which link and where? Are you talking about links that are rendered within the browser or any GUI/DX text link? The code provided by LopSided_ should work absolutely fine. local theBrowser = guiGetBrowser(browser) -- Function of the Browser addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source,"https://www.youtube.com") end ) function geturl(targetURL) guiSetText(addressBar, getBrowserURL(targetURL)) end addEventHandler("OnClientBrowserNavigate",resourceRoot, geturl)
    1 point
  31. JF and I are not on good terms. The owner of JF, John Flower himself, has shared his scripts with me. John Flower and I seem to be pretty chill however, the players at that server have absolutely no respect for me. Terms were I leave them alone and they leave me alone. I suppose even now you'll hear bad things about me. /radio is FlowerSounds. /attach is FlowerAttach, and /mcreate is Offedit (Flower Remade). Those I credit towards John Flowers scripting team. I hope to have a clean server, expect more great scripts to come. I am myself working on an advanced house system, You'll be able to see updates on that since I posted a thread in the scripting forum here.
    1 point
  32. You've got your publicity here, the one thing left to do is create a GitHub repo and set up some sort of QA for PR's. Also it's recommended to let more experienced (handpicked or yourself) scripters write the core of the gamemode (or the best initial commit PR), as it's vital for future integrations and everyone works based off it. I assure you anyone interested after reading this topic will come create PR's and contribute, if only they had a reference point where to start. I personally think this idea has potential, good luck.
    1 point
  33. سلام عليكم بدون مقدمات كلمت الاداري ادمن اللعبة ccw وقالي انه راح يخلي كل الملفات اللي تتركب ب gta3.img , gta_int.img راح تتحول اصلية مثل السكنات الكلام هذا راح يطبق ممكن بالاصدار هذا او الاصدار الجديد
    1 point
  34. ما احب اتعامل مع ملفات txd dff + تقصد حارس شخصي لكن مسويه كلب ضض #Edit: جديد \ ماركرات السيارات خذ سياراتك من الماركرات البيضاء حسب فريقك اذا كنت شرطياً اختر سيارات شرطة اذا كنت مسعفاً اختر سيارات اسعاف اذا كنت في تيم مخالف عن الاول او الثاني يمكنك الحصول على سيارات عادية
    1 point
  35. Razočaran sam. Iskreno sam se nadao da ćete napraviti nešto hvale vrijedno. Kao prvo, očiti znakovi Valhalle, što znači da gamemod ne radite from scratch. Community skripte, iako nije neka velika stvar, server koji bi potencijalno držao tisuće igrača u isto vrijeme ne bi si trebao dopustiti korištenje besplatnih javnih skripti. Ne znam u kojem trenutku ste pomislili da će korištenje Valhalle, oG, uG ili koji god derivat istog ste koristili, biti dobra ideja? Vama je očajno potreban kod visokih performansi s naglaskom na asinkronu logiku koja će biti neizbježna kod tolikog broja igrača, a Valhalla je sve samo ne visokih performansi. Vjerujem da imate i više nego dobar budžet kako biste ostvarili unikatnost i originalnost. Nadam se da vam taj profesionalni skripter ne maže oči pizdarijama i da zna što radi, a ako to nije slučaj, savjetujem potragu za novim. Bez ljutnje, nije hejt post, jednostavno nisam mogao vjerovati što vidim...
    1 point
×
×
  • Create New...