Jump to content

iMr.WiFi..!

Members
  • Posts

    2,382
  • Joined

  • Last visited

  • Days Won

    57

Everything posted by iMr.WiFi..!

  1. خبير بالدي اكس, وليس بالشادرز
  2. صراحة شيء ابداعي وجميل .. اتمنى لو تشمل اغلب الاشياء راح يكون شيء اسطوري بالتوفيق لك !
  3. You have problem with line 4, because no function called like this. Try this: function enter (thePlayer, dim) if getElementType(thePlayer) == "player" then if not isPedInVehicle(thePlayer) and dim then if (getPlayerMoney(thePlayer)>= 100) then takePlayerMoney(thePlayer, 100) setElementInterior(thePlayer, 3, 834.66796875, 7.431640625, 1004.1870117188) else outputChatBox("#ff0000You Don't Have Enough Money!",thePlayer,255,255,255,true) end end end end addEventHandler("onMarkerHit",markerJoin,enter)
  4. تشكر على الملاحظات, شكلي بديت انسى كثير function getTwoRandom(Data) local player1, player2 = nil,nil; if( #getElementsByType('player') == 0 ) return end repeat player1, player2 = getElementsByType('player')[math.random(1,#getElementsByType('player'))], getElementsByType('player')[math.random(1,#getElementsByType('player'))] until getElementData( player1, Data ) and getElementData( player2, Data ) and player2 ~= player1 return player1, player2; end الله يسلمك بالتوفيق لك
  5. نسيت /: local p1, p2 = getTwoRandom() outputChatBox("Player 1 : "..getPlayerName(p1)..", Player 2: ".. getPlayerName(p2),root,255,0,0,true)
  6. function getTwoRandom(Data, Key) local player1, player2 = nil,nil; repeat player1 = getElementsByType('player')[math.random(1,#getElementsByType('player'))] player2 = getElementsByType('player')[math.random(1,#getElementsByType('player'))] until getElementData( player1, Data ) == Key and getElementData( player2, Data ) == Key and player2 ~= player1 return player1, player2; end
  7. local p1, p2 = getTwoRandom() outputChatBox("Player 1 : "..p1..", Player 2: ".. p2,root,255,0,0,true)
  8. function getTwoRandom() local player1, player2 = getElementsByType('player')[math.random(1,#getElementsByType('player'))],nil; repeat player2 = getElementsByType('player')[math.random(1,#getElementsByType('player'))] until player2 ~= player1 return player1, player2; end
  9. بأختصار شديد: علوم الحاسب - مركز فقط بالبرمجة والخورزاميات هندسة برمجيات - ليس متعلق فقط بالبرمجة وانما باشياء عديدة اخرى مثل الادارة, والهندسة جانباً بجنب مع البرمجة اسمح لي اقولك, ترا هندسة برمجيات مو كل شيء عن المشروع يبغونك تصير مهندس اداري مع شوية برمجة هذا اغلب كلام الي تخرجو منها.
  10. You cant but another players can. If you don't want, or you don't like this. delete next lines: 46, 48
  11. --- Server side: addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Owner")) then setElementData(player,"Owner",true) end end end) addEventHandler("onPlayerLogin", root, function(_, acc) if isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("Owner")) then setElementData(source,"Owner",true) end end) --- Client side: local imgW = 500 local imgH = 90 function dxDrawImageOnElement(TheElement,Image,distance,height,width,R,G,B,alpha) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local width = width or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawMaterialLine3D(x, y, z+1+height-(distanceBetweenPoints/distance), x, y, z+height, Image, width-(distanceBetweenPoints/distance), tocolor(R or 255, G or 255, B or 255, alpha or 255)) end end end end function adminLogo() for i, player in ipairs(getElementsByType ('player')) do if getElementData(player,"Owner") then if player ~= localPlayer then dxDrawImageOnElement(player, "logo.png", 20, imgH, imgW ) end end end end addEventHandler("onClientPreRender", root, adminLogo) And please on next time post here: https://forum.multitheftauto.com/forum/71-scripting/
  12. I recently edit the reply check it. + Problem (Line: 4981): Using ":setSystemFont" of checkbox doesn't change font. I solve this by changing line to: "checkbox.Label:setSystemFont(font)"
  13. Suggestion: Make ".setFont" & ".setSystemFont" for Custom Combobox Items. And for Custom dialog too.
  14. Problem on line(6414): You need to delete this line because Tab panel doesn't have a Label to Set font.
  15. يفيد في غرض لانهاء الوظيفة , ويمكن استخدامها ايضاً لاسترجاع قيمة في الوظيفة مثال: function ReturnTest( ) return "Test" end print ( ReturnTest() ) ---- Result: "Test"
  16. وشهو ? صراحة موقع خورافي راح يفيدني ان شاء الله,
  17. السلام عليكم ورحمه الله وبركاته, اخباركم علومكم ان شاء الله طيبين.. الي يعرف للشادرز وعنده خبره لها, اتمنى يحط شرح كامل او مصادر نقدر اتعلم منها للشادرز واستعملها في ام تي ايه منها انا استفيد والمئات من المبرمجين غيري لان الشادرز تقريباً هو الشيء الوحيد الي ما اعرف ابرمج له في أم تي ايه, اتمنى تفيدونا بخبراتكم , وكذلك القليل من مبرمجين العرب الي يعرفون للشادرز فأتمنى يفيدونا
  18. من احد أهم الوظائف, ولكن للأسف الكثير منا يجهلها الا وهي: addDebugHook تسنح هذه الوظيفة لك بالإمكانية معرفة عند استخدام الوظيفة الفلانية في اي مود كان. وتسمح لك بمعرفة الاحداث التي استخدمت بأي مود كان يمكنك تخطي الأحداث والوظائف باسترجاع قيمة skip مثال على الوظيفة addDebugHook( "preFunction", onPreFunction, {"createVehicle"} ) function onPreFunction( _, _, _, _, _, ... ) local args = { ... } if( args[1] == 411 )then return "skip" end end النتيجة: سيتم الغاء اي محاولة لصنع سيارة بالأيدي 411, والتي هي الأنفرس
  19. Suggestion: Make ":setFont" method for all elements in your script. like: Edits, Memos, Tabs(Title), Window(Title). It's easy because i already made those in my version. Problem(Maybe not): When i use Dark red theme with my window, (into the window) i made my Tab panels the Labels, Check boxes(Label) Comes with gray color and this make it hard to read. ( I solve this by make the entire Labels, Check boxes again with dark red theme )
  20. راح تكون خسارة لمفارقتك المنتدى, لكن بالتوفيق : )
×
×
  • Create New...