Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 14/06/19 in all areas

  1. سلام عليكم ورحمة الله آخخبااركم ان شاء الله طيبين ------------------------------------- في هذا الموضوع عندي مود نظام البنك ~~` افكاره ليست جديده مره ??? ولكن حاولت اجيب افكار عندك مثلا لما تودع فلوس او تسحب يشتغل صوت + يتحرك البيد اللي يشتتغل بالبنك هذا افضل وصف ض2 لمعرفة كل شي عن المود في هذا الرابط / الفيديو  وبالتـــوفييقء ~~  |~ الإهداءات ~| @!#DesTroyeR_,) @MrKAREEM @Mr.Falcon @DABL @KillerX @NX_CI @[AcM] - Major . @MR_Mahmoud @Ahmed Ly @MR.Mosa @N3xT @Abu-Solo @SuperX @#BrosS @iMr.WiFi..! @Mr.CnTroL @Abdul KariM @Hakan @!#NssoR_) @Simple. و جميع أعضاء المنتدى 
    2 points
  2. السلام عليكم الفكرة حلوة جدا، لكن كيف تجعلني أوثق فيك انو لما ادخل الفتب بالبرنامج ما يرسلك المعلومات حقت السيرفر و تنسرق المودات؟ شكرا
    2 points
  3. Yes, I meant the client. Now please try https://nightly.multitheftauto.com/mtasa-1.5.6-rc-18664-20190613.exe
    2 points
  4. Já mostrei o que você precisa, você não entendeu com clareza por que não entende nada de scripting. Se quiser código pronto com mais clareza está aqui:
    2 points
  5. بسم الله الرحمن الرحيم الصلاة والسلام على اشرف الانبياء والمرسلين نبينا محمد عليه افضل الصلاة واتم التسليم, اما بعد: أقدم لكم دورتي لـ تعلم لغة برمجة لوا.. ملاحظة: توجد مشكلة في الدرس الثاني الا وهي صغر الخط, وتم حلها ولن تتكرر في الدروس القادمة باذن الله تعالى MTA الدورة لا تتوجه لـلعبة ولكنها تتكلم عن البرمجة بشكل عام بالاضافة لتعليم وتدريس في لغة لوا اذا كان فيه نوع من الاقبال والتفاعل سأتخصص بـ برمجة ام تي ايه بالاضافة لبرمجة الديسكورد وشرح بعض اللغات الاخرى دمتم سالمين في أمان الله..
    1 point
  6. [TUT] Scaling DX The reason why I am creating this topic, is because there are a lot of people asking this question: And to be honest there is no best practice for. But here you have my recommendation as guidance for display them the ~s~a~m~e~ for all screen formats. There are two important factors while dealing with screen formats 1. Pixel density Indication: PPI(Pixels Per Inch) and some also use the term DPI(Dots Per Inch) They do not have to be the same while talking about printing stuff. This indication tells us about how many pixels are used per inch. Which more or less tells us how sharp/smooth things like text can be looking. PPI doesn't really play a big role, but to display something nicely you need enough pixels to display it. Else it will be either too small or too crispy. So be careful to not scale things (especially text) too small. 2. Display aspect ratio Wiki The difference between resolution X and resolution Y as a ratio. A list of common ratios: 4:3 5:4 3:2 16:10 16:9 So for example if we take: fHD: 1920x1080 Which has the ratio 16:9 that is calculated like this: 1920 / 16 = 120 120 * 9 = 1080 Scaling without ratio Before I am going to explain any of this, I am going to ask you an important question: Like this: (vertical) ▮ Or horizontal? ▅ I assume most people would agree to play MTA horizontal, else you are probably reading a book or document. p.s If you play MTA on a vertical screen, then we developers do not like you at all, sorry. So what does this tell us? You can assume that the X-resolution is never going to be smaller than the Y-resolution. Useful? You will figure it out. Doing the scaling Note: This part is ABOUT SCALING and not positioning. So what we are going to do is: Calculating a scale which can display the same DX on multiple screen formats > without messing with the ratio. Example: A computer runs MTA at a resolution of 1920 x 1080. Lets define that! local devScreenX = 1920 local devScreenY = 1080 If this code is used by a different pc, we also need to know on which resolution it is running: local screenX, screenY = guiGetScreenSize() For the next step we have to look at this screenshot: I have cut out of the wide-screen format a square. Squares have the ratio 1:1, which means that we have removed our ratio difference from this screen resolution. It is very easy to do, as our Y * Y resolution makes exactly that beautiful square! The next thing we have to do is creating our scaling value. This value is required for adjust our resolution values so that they match to every screen format. So to use our ratio 1:1, we use the Y resolution to achieve that: local scaleValue = screenY / devScreenY And as last we can create a rectangle shape that is displayed at the center of every screen format, perfectly! local devScreenX = 1920 local devScreenY = 1080 local screenX, screenY = guiGetScreenSize() local scaleValue = screenY / devScreenY addEventHandler("onClientRender", root, function () -- create a scaled size local sizeX = scaleValue * 300 -- 300px local sizeY = scaleValue * 50 -- 50px -- get the center of the screen local centerX = screenX / 2 local centerY = screenY / 2 -- calculate the starting point of the rectangle local startRectangleX = centerX - (sizeX / 2) local startRectangleY = centerY - (sizeY / 2) dxDrawRectangle ( startRectangleX, startRectangleY, sizeX, sizeY, tocolor ( 255, 255, 255, 255 ) ) end) Lower limit What if we have a resolution of 800x600? And the text is getting too small? Making sure that the pixel density is OK, is very important. So to counter that we have to make sure that the text is not getting too small. Our development Y resolution is 1080 pixels. And we are dealing with an Y resolution 600 pixels. The first thing we are going to look at, is what the scale is going to be at that point. 600 / 1080 = 0.55555555555555555555555555555556 It is not very nice to have your text scaled to 55.5% of the original size, when having low resolution already. But without scaling, the DX stuff might fill up the entire screen and that is just as bad. So what we now need is a limit, in this case a lower limit. scaleValue = math.max(scaleValue, 0.65) The math.max function returns the highest value of all the arguments you put in to it. In this case it contains the: scaleValue: 0.555 And the lower limit of: 0.65 This will make sure that the DX stuff is not getting smaller than 65%. This might make text read able for a 800x600 resolution. Positioning Do you want to place your dx-effects at a specific place on your screen? See the following useful function: https://wiki.multitheftauto.com/wiki/GetScreenStartPositionFromBox
    1 point
  7. bengines provides custom engine sounds for vehicles. The resource is not focused to be ultra realistic, it is designed to use for casual servers. Not useful for me anymore so sharing with community. Used on old project. Sounds are copyrighted content not owned by me. Features: ready to use, chooses the best engine for vehicle depending on handling! easy to customize & expand for Lua programmers 30 soundpacks for vehicles (buses, bikes, sport cars etc.) stable code with quite high performance used on server with 600 players ALS effect (exhaust flames) Turbo (satisfying whistle and blow-off sounds) Videos: https://streamable.com/n7k40 https://streamable.com/lp14t https://streamable.com/q5e9g Download: Github: https://github.com/brzys/bengines (feel free to send pull requests) Community: to-do For programmers: --[[ Element datas used by resource [array] vehicle:engine - stores basic info about engine type, sound pack etc. (synced) [string] vehicle:type - used for engine calculation, useful for servers. Available: Bus, Truck, Sport, Casual, Muscle, Plane, Boat, Motorbike (synced) [string] vehicle:fuel_type - customized for each engine. Useful for servers. Available: "diesel", "petrol" (synced) You can use setElementData(vehicle, "vehicle:upgrades", {turbo=true, als=true}) to add turbo or ALS. --]] --[[ Exported functions --]] exports.bengines:getVehicleRPM(vehicle) -- returns RPM of given vehicle exports.bengines:getVehicleGear(vehicle) -- returns current gear of given vehicle exports.bengines:toggleEngines(bool) -- true / false, restore GTA engine sounds
    1 point
  8. سلام عليكم ورحمة الله آخخبااركم ان شاء الله طيبين وعيد سعيد عليكم وينعاد عليكم بالصحه والفرح --------------‐----------------------- في هذا الموضوع عندي مود لوحة الانتقال الجديده ~~` افكارها قد تكون جديده الله اعلم ??? لمعرفة كل شي عن المود في هذا الرابط / الفيديو  وبالتـــوفييقء ~~  |~ الإهداءات ~| @!#DesTroyeR_,) @MrKAREEM @Mr.Falcon @DABL @KillerX @NX_CI @[AcM] - Major . @MR_Mahmoud @Ahmed Ly @MR.Mosa @N3xT @Abu-Solo @SuperX @#BrosS @iMr.WiFi..! @Mr.CnTroL @Abdul KariM @Hakan @!#NssoR_) و جميع أعضاء المنتدى 
    1 point
  9. Como você disse + de 2x no tópico ele é nativo, por tanto não tem como remove-lo, você pode alterar, mostre o sistema de chat que você esta fazendo.
    1 point
  10. I believe that's happening because timer is going all the time, removing event handler doesn't make that timer will be destroyed. Timer is set for 1 ms interval, and unlimited times to execute. https://wiki.multitheftauto.com/wiki/SetTimer Try to assign timer to variable, and kill it after removing event handler, with: https://wiki.multitheftauto.com/wiki/KillTimer
    1 point
  11. oi, primeiramente Boa tarde, seguinte baixe o recurso https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540 para fixar o objeto ao player. agora para criar o objeto no player: m1 = createMarker (...) function Criarobjeto() local px, py, pz = getElementPosition ( getLocalPlayer ()) createObject(id, px, py, pz) end addEventHandler ( "onMarkerHit", m1, Criarobjeto ) exemplo de como pode criar objeto no player e o recurso sugerido serve pra fixar o objeto ao corpo do player, fazendo com q o objeto grude no player obs: id é o id do objeto que deseja criar
    1 point
  12. بسم الله الرحمن الرحيم اقدم لكم سيرفر حياة واقعية بفكره جديده وعالم جديد وقوانين جديده لانه كل السيرفرات صارت تتكر بنفس الطابع التصميمي والقوانين والخ..... اليوم جبتلكم سيرفر ان شاء الله قريب بيفتح بقوانين جديد باكامل عدد القوانين لا يقل عن 30 قانون جديده كولين ولا في اي قانون يشبه قوانين الورل بلاي المعروفه مختلف بشكل كامل وطبعا طبعا مافي شي اسمه ابي رتبه ولا طلب رتبه ولا تقديم على رتبه تم الغاء الرتبه في السيرفر والغاء الطيران والغاء الشارات والادمنيه ورح يكون الادمنيه من المواطنين ومارح تميزهم عن غيرهم و تم الغاء الريبورت في حال كانت عندك شكوى على شخص او مشكله توجه الى الموقع سوف تم توظيف اشخاص متخصصين لدعم الفني وسوف يساعدونك فورا دسكور: اضغط هنا اضغط هنا :(الموقع (تحت التطوير وفي صوت مع الفلشر
    1 point
  13. No you can't do that. In 99% of cases it will be used for illegal actions (servers abuse, faking online, etc). So mta doesn't provide such APIs and we probably shouldn't discuss here the ways to do that thing.
    1 point
  14. Lá na última linha tá destroyElement, troque por DestroyMarker (confundi quando reescrevi o trecho)
    1 point
  15. في عندك خطأ بالكود ي سورس .. + انا ابغاه بإيديت واحد . بس شكراً انك حاولت تساعدني .. @+Source|> تقريباً هو ذا الي ابغاه , بس ماقدرت افهم الكود او كيف استخدمه عندك شرح له؟ @Hakan
    1 point
  16. use function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end addEventHandler ( "onClientClick", root, function ( button, state ) if ( button == "left" and state == "down" ) then if ( isMouseInPosition ( the postion of the button ) ) then -- code end end end )
    1 point
  17. ســلام عليكم ورحمة الله إييشءء حالكم موضوع اليوم عن مود الايموشنات ~ طـبعـا المود مو حصري لأنه موجود في ونناسه ~ بس انا مسويه بشكل جديد فقط كل شيء عن المود موجود في هذا الرابط \ الفيديو بالتوفيق |~ |~ الإهداءات ~| #BrosS NX_CI iMr.WiFi..! N3xT Abdul KariM KillerX !#DesTroyeR_,) و جميع أعضاء المنتدى
    1 point
  18. ســلام عليكم ورحمة الله أخبـآركم - عسساكـمء بخير موضوع اليوم عن لوحة الإهداءات ~ طـبعـا انا لا احتاج احد يجيني في التعليقات يقولي أن اللوحه تبع لسيرفر طاره ~ | gift | كلمة فتح اللوحه من اف 8 هي لتغيير الكلمة , من ملف اسمه sittingCG كل شيء عن المود موجود في هذا الرابط \ الفيديو وبالتـــوفييقء ~~ |~ الإهداءات ~| @!#DesTroyeR_,) @MrKAREEM @Mr.Falcon @DABL @KillerX @NX_CI @[AcM] - Major . @MR_Mahmoud @Ahmed Ly @MR.Mosa @N3xT @Abu-Solo @SuperX @#BrosS @iMr.WiFi..! @Mr.CnTroL @Abdul KariM و جميع أعضاء المنتدى
    1 point
  19. ســلام عليكم ورحمة الله كيف الأحــوال ّء موضوع اليوم عن لوحة أدمن ~ طـبعـا اللوحه ليست لوحة الأدمن الأصليه حقت اي سيرفر ~ >>| هذي لوحة مساعده للأدامن اللي في السيرفر اللوحه تفتح لرتب معينه وبكلمه من اف 8 |<< لتعديل كل هذا من ملف اسمه sittingS كل شيء عن المود موجود في هذا الرابط \ الفيديو |~ الإهداءات ~| @!#DesTroyeR_,) @MrKAREEM @Mr.Falcon @DABL @KillerX @NX_CI @[AcM] - Major . @MR_Mahmoud @Ahmed Ly @MR.Mosa @N3xT @Abu-Solo @SuperX @#BrosS @iMr.WiFi..! @Mr.CnTroL @Abdul KariM و جميع أعضاء المنتدى
    1 point
  20. السلام عليكم ورحمة الله وبركاته كيف حالكم رجعتلكم بمود جديد بدون مقدمات كل شي عن هذا المود تلقونه في هذا المقطع
    1 point
  21. السلام عليكم ورحمة الله وبركاته كيف حالكم رجعتلكم بمود حصري جديد ما اتوقع احد جابه قبل كذا بدون كلام كثير كل شي عن هذا المود في هذا الرابط تلقونه ولا احد يجي يقولي وين الصور ض22 قلتلكم في الرابط هذا https://www.youtube.com/watch?v=kMOYsG_RTh8&t=15s بالتوفيق للجميع
    1 point
×
×
  • Create New...