Jump to content

Leaderboard

Popular Content

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

  1. Thank you all the same. But listen bro, I am just want to make some contributions to MTA. I don't accept any donation materially. Instead, you use it and give me the response to your feeling. This is the best donation to me.
    3 points
  2. لو تبي اللي كتب الامر - ضغط على الزر اللي هو , ماينطرد سوه كذا for i,v in ipairs (getElementsByType("player")) do if ( v ~= source ) then kickPlayer( v, source, "السبب لما يطرد" ) end end لكن لو تبيه ينطرد ايضا سوه كذا for i,v in ipairs (getElementsByType("player")) do kickPlayer( v, source, "السبب لما يطرد" ) end
    1 point
  3. Why are you checking if the localPlayer is the localPlayer ._. localPlayer can only be localPlayer ._______. Are you getting any errors in the debug when you restart the script? /debugscript 3
    1 point
  4. local screenW,screenH = guiGetScreenSize( ) -- get the player's screen resolution local INVopen function inventarioV() local ammo = tostring(getPedTotalAmmo(localPlayer) - getPedAmmoInClip(localPlayer)) local ammoinclip = tostring(getPedAmmoInClip(localPlayer)) local id = tostring(getPedWeapon( localPlayer )) local id2 = getPedWeapon( localPlayer ) local im = getWeaponNameFromID(getPedWeapon(localPlayer)) -- Imagenes dxDrawImage(screenW * 0.8779, screenH * 0.1380, screenW * 0.0029, screenH * 0.0169, ":Inventario/images/bullet.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.4081, screenH * 0.1094, screenW * 0.1838, screenH * 0.7813, ":Inventario/images/character.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.6963, screenH * 0.1719, screenW * 0.2110, screenH * 0.1055, ":Inventario/Inventory/"..id..".png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.0000, screenH * 0.0000, screenW * 1.0000, screenH * 1.0000, tocolor(0, 0, 0, 165), false) dxDrawText(":Onacio", screenW * 0.4015, screenH * 0.0260, screenW * 0.5985, screenH * 0.0612, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(932 - 1, 102 - 1, 932 - 1, 122, tocolor(238, 237, 237, 111), 1, false) dxDrawLine(952, 102 - 1, 932 - 1, 102 - 1, tocolor(238, 237, 237, 111), 1, false) dxDrawLine(932 - 1, 122, 952, 122, tocolor(238, 237, 237, 111), 1, false) dxDrawLine(952, 122, 952, 102 - 1, tocolor(238, 237, 237, 111), 1, false) dxDrawRectangle(932, 102, 20, 20, tocolor(0, 0, 0, 117), false) dxDrawLine((screenW * 0.6096) - 1, (screenH * 0.1250) - 1, (screenW * 0.6096) - 1, screenH * 0.1771, tocolor(251, 251, 251, 117), 1, false) dxDrawLine(screenW * 0.6390, (screenH * 0.1250) - 1, (screenW * 0.6096) - 1, (screenH * 0.1250) - 1, tocolor(251, 251, 251, 117), 1, false) dxDrawLine((screenW * 0.6096) - 1, screenH * 0.1771, screenW * 0.6390, screenH * 0.1771, tocolor(251, 251, 251, 117), 1, false) dxDrawLine(screenW * 0.6390, screenH * 0.1771, screenW * 0.6390, (screenH * 0.1250) - 1, tocolor(251, 251, 251, 117), 1, false) dxDrawRectangle(screenW * 0.6096, screenH * 0.1250, screenW * 0.0294, screenH * 0.0521, tocolor(0, 0, 0, 117), false) dxDrawLine((screenW * 0.6096) - 1, (screenH * 0.1901) - 1, (screenW * 0.6096) - 1, screenH * 0.2422, tocolor(251, 251, 251, 117), 1, false) dxDrawLine(screenW * 0.6390, (screenH * 0.1901) - 1, (screenW * 0.6096) - 1, (screenH * 0.1901) - 1, tocolor(251, 251, 251, 117), 1, false) dxDrawLine((screenW * 0.6096) - 1, screenH * 0.2422, screenW * 0.6390, screenH * 0.2422, tocolor(251, 251, 251, 117), 1, false) dxDrawLine(screenW * 0.6390, screenH * 0.2422, screenW * 0.6390, (screenH * 0.1901) - 1, tocolor(251, 251, 251, 117), 1, false) dxDrawRectangle(screenW * 0.6096, screenH * 0.1901, screenW * 0.0294, screenH * 0.0521, tocolor(0, 0, 0, 117), false) dxDrawText(""..im, screenW * 0.7037, screenH * 0.1328, screenW * 0.8279, screenH * 0.1589, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "bottom", false, false, false, false, false) dxDrawText(""..ammoinclip, screenW * 0.8529, screenH * 0.1328, screenW * 0.8765, screenH * 0.1589, tocolor(255, 255, 255, 255), 1.20, "clear", "right", "bottom", false, false, false, false, false) dxDrawText(""..ammo, screenW * 0.8824, screenH * 0.1315, screenW * 0.9044, screenH * 0.1576, tocolor(255, 255, 255, 255), 1.00, "clear", "left", "bottom", false, false, false, false, false) dxDrawLine(screenW * 0.6831, screenH * 0.3073, screenW * 0.9316, screenH * 0.3073, tocolor(255, 255, 255, 255), 1, false) dxDrawText("1", 932, 102, 952, 122, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.6096) - 1, (screenH * 0.3451) - 1, (screenW * 0.6096) - 1, screenH * 0.3971, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, (screenH * 0.3451) - 1, (screenW * 0.6096) - 1, (screenH * 0.3451) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawLine((screenW * 0.6096) - 1, screenH * 0.3971, screenW * 0.6390, screenH * 0.3971, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, screenH * 0.3971, screenW * 0.6390, (screenH * 0.3451) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawRectangle(screenW * 0.6096, screenH * 0.3451, screenW * 0.0294, screenH * 0.0521, tocolor(0, 0, 0, 117), false) dxDrawLine((screenW * 0.6096) - 1, (screenH * 0.4102) - 1, (screenW * 0.6096) - 1, screenH * 0.4622, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, (screenH * 0.4102) - 1, (screenW * 0.6096) - 1, (screenH * 0.4102) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawLine((screenW * 0.6096) - 1, screenH * 0.4622, screenW * 0.6390, screenH * 0.4622, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, screenH * 0.4622, screenW * 0.6390, (screenH * 0.4102) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawRectangle(screenW * 0.6096, screenH * 0.4102, screenW * 0.0294, screenH * 0.0521, tocolor(0, 0, 0, 117), false) dxDrawLine((screenW * 0.6096) - 1, (screenH * 0.4753) - 1, (screenW * 0.6096) - 1, screenH * 0.5273, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, (screenH * 0.4753) - 1, (screenW * 0.6096) - 1, (screenH * 0.4753) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawLine((screenW * 0.6096) - 1, screenH * 0.5273, screenW * 0.6390, screenH * 0.5273, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, screenH * 0.5273, screenW * 0.6390, (screenH * 0.4753) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawRectangle(screenW * 0.6096, screenH * 0.4753, screenW * 0.0294, screenH * 0.0521, tocolor(0, 0, 0, 117), false) dxDrawLine((screenW * 0.6096) - 1, (screenH * 0.6302) - 1, (screenW * 0.6096) - 1, screenH * 0.6823, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, (screenH * 0.6302) - 1, (screenW * 0.6096) - 1, (screenH * 0.6302) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawLine((screenW * 0.6096) - 1, screenH * 0.6823, screenW * 0.6390, screenH * 0.6823, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, screenH * 0.6823, screenW * 0.6390, (screenH * 0.6302) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawRectangle(screenW * 0.6096, screenH * 0.6302, screenW * 0.0294, screenH * 0.0521, tocolor(0, 0, 0, 117), false) dxDrawLine((screenW * 0.6096) - 1, (screenH * 0.6953) - 1, (screenW * 0.6096) - 1, screenH * 0.7474, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, (screenH * 0.6953) - 1, (screenW * 0.6096) - 1, (screenH * 0.6953) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawLine((screenW * 0.6096) - 1, screenH * 0.7474, screenW * 0.6390, screenH * 0.7474, tocolor(254, 254, 254, 140), 1, false) dxDrawLine(screenW * 0.6390, screenH * 0.7474, screenW * 0.6390, (screenH * 0.6953) - 1, tocolor(254, 254, 254, 140), 1, false) dxDrawRectangle(screenW * 0.6096, screenH * 0.6953, screenW * 0.0294, screenH * 0.0521, tocolor(0, 0, 0, 140), false) end bindKey ("TAB", "down", function( ) if not INVopen then -- check if the window is open addEventHandler( "onClientRender", root, inventarioV ) -- open the window if it is not showing by adding the render event to the function. else removeEventHandler( "onClientRender", root, inventarioV ) -- close the window if it is showing by removing the render event from the function. end INVopen = not INVopen -- Toggle the variable that declares if the window is open or not switching it to true/false end)
    1 point
  5. 1 point
  6. First thing first, onMarkerHit needs marker element instead of root element as second argument if you want to start the function only in certain marker, check it there: https://wiki.multitheftauto.com/wiki/OnMarkerHit And about the code, this should work, i haven't tested it, but you can see how it could be done: local marker1 = createMarker(2063.5, -1831.1999511719, 13, "cylinder",6,225,225,255,20) function repairVehicle ( thePlayer, matchingDimension) setTimer ( function() if thePlayer ~= localPlayer then return end local theVehicle = getPedOccupiedVehicle( thePlayer ) if not theVehicle then return outputChatBox( "You're not in a vehicle!", thePlayer, 200, 0, 0 ) end local vehHealth = getElementHealth( theVehicle ) if vehHealth >= 999 then return outputChatBox( "Your vehicle isn't damaged!", thePlayer, 200, 0, 0 ) end local money = getPlayerMoney( thePlayer ) if money >= 200 then local fixVeh = fixVehicle( theVehicle ) if fixVeh then takePlayerMoney( thePlayer, 200 ) return outputChatBox ("Your vehicle is restored.", thePlayer, 0, 200, 0 ) else return outputChatBox ( "Failed to fix your vehicle.", thePlayer) end end end, 5000, 1) end addEventHandler("onMarkerHit", marker1, repairVehicle)
    1 point
  7. dxDraw functions have to be in the onClientRender or PreRender event. addEventHandler("onClientRender", getRootElement(), function() -- dxDraw functions end ) To make it visible/unvisible you have to make an if check in that local dxVisible = false addEventHandler("onClientRender", getRootElement(), function() if (dxVisible == true) then -- dxDraw functions end end ) -- Make a function here that changes the "dxVisible" variant's value.
    1 point
  8. فيه 3 انواع النوع الاول - جعلك منزل صورة سوداء يكتب لك اشكر وكفو وانشهد وعز النوع الثاني - يعلق على المحتوى < انسان عاقل النوع الثالث - يتمشكل ويدقق على الحروف اذ فيه خطأ ويحاول يكون الصح واذ احد يخالفه يسبه وبس مضمون وشغال , بسس امن حسابك بالرقم والايميل الاحتياط واجب ! واذ كان جوالك جلكسي جميل وحلو حمل برنامج اسمه +RF يعطيك 500متابع كل 45دقيقة انا زمان كنت بشتري ذا @v8 كان يبيه ب200سوا الحين زرفه اجنبي وباعه ب15الف
    1 point
  9. وعليكم السلام ورحمة الله اخي يمكنك الذهاب لقوقل وكتابة: 1 day in milliseconds = 86400000 او 2 day in milliseconds = 172800000 و يمكنك إستخدام ذلك للساعات او الدقائق 55 minutes in milliseconds = 3300000 وهكذا ...
    1 point
  10. @MR.StoRm اخي رجاء في حال واجهتك مشكلة يرجي طرحها في موضوع جديد لأن هذا الموضوع للإستفسارات البسيطه ولا نود ان نزيد هذا الموضوع صفحتين او ثلاث متعلقه في مشكلتك انت فقط !! #Edit: تمت إزالة تعليق مستر جراند لأنه في المكان الغلط , ويجب عليك إنشاء موضوع يختص بإستفسارك @MR.GRAND وبالتوفيق
    1 point
  11. Hi Guys this is a simple FreeRoam server made by me and my friend Amazing Casino. To be honest most of the resources are from the community but we can assure to 100% Freeroam gaming experience though. Any help in any manner in making our server a Hit will be deeply regarded.We have cool skins and much more.Even though we didn't script many of those we did our best in combining these scripts and made the best out of it.(Staffs will be given to players by considering thier contribution and dedication to our server ) -Thank you Wicked ScreenShots = https://imgur.com/a/Mx77B Our Facebook group = https://m.facebook.com/groups/925164594305600?multi_permalinks=925795144242545&notif_t=like&notif_id=1506724738023746&ref=m_notif Our Website (Soon) ☠_Current Staffs_☠ [ADMINS] ♛ AmazingCasino ♛ Wicked ♛ TheMOG [SuperModerators] ☢ Nil [Moderators] ☣ Nil
    1 point
  12. السلام عليكم ورحمة الله وبركاتة لقد تم إضافة خاصية حماية الحساب قبل فتره بسيطة وتم إنشاء هذا الموضوع لمن لم يلاحظ وجود هذه الخاصية او لمن لايعرف طريقة إستخدامها حتي ! اولأ طريقة تفعيل هذه الحماية عن طريق إتباع الخطوات التالية : Account Settings الذهاب الي ومن ثم كما موضح في الصورة ومن ثم سيطلب منك إدخال الباسورد الحالي لحسابك ومن ثم سيفتح لك هذه النافذه والان اصبح لديك 3 خيارات وسأقوم بشرح كل واحده منهم Authy: تقوم بإرسال كود سري لهاتفك ومن ثم سيطلب المنتدي منك إدخال هذا الكود السري في المنتدي لتتمكن من فتح حسابك Google Authenticator: يجب عليك تحميله علي هاتفك ومن ثم سيعطيك كود سري وسيطلب منك المنتدي هذا الكود السري لتتمكن من فتح حسابك Security Questions: اسئلة الامان ( لاداعي لشرحها لأنها معروفة ) ملاحظة مهمة : عند تفعيل اي واحده منهم سيسألك المنتدي عن الكود السري من وقت لأخر وهذا لا يعني ان هناك شخص قد قام بإختراق حسابك , هذا فقط للتأكد من انك انت صاحب الحساب الاصلي وحتي في حال تم إختراق حسابك من اي عضو اخر لاتقلق لأن حسابك سيكون بأمان ولن يستطيع فعل اي شي الا بعد ان يقوم بإدخال الكود السري الذي يتم إرساله لك تم تثبيت الموضوع لفترة مؤقتة واتمني لكم التوفيق
    1 point
  13. function forbeed( _,aMyWeapon ) if ( aMyWeapon == 38 ) then toggleControl( source,'fire',false ) outputChatBox ("#FF0000You Cannot Use This Weapon!",source, 255, 255, 255, true ) else toggleControl( source,'fire',true ) end end addEventHandler( "onPlayerWeaponSwitch",root,forbeed) Try This . We Don't give ready scripts !! you should post a script and we edit it ...
    1 point
  14. Please read the first sentence of the dx function page: https://wiki.multitheftauto.com/wiki/DxDrawLine
    0 points
×
×
  • Create New...