Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. تعقد الأمور والوظايف موجودة ؟ isObjectInACLGroup hasObjectPermissionTo
  2. هذا جدول تاخذ منه المعلومات عن طريق الكود هذا for i, v in ipairs ( aclGroupList() ) do ----- end و تحتاج إلى جلب اسم القروب من الجدول بـ ذا aclGroupGetName
  3. لول من بيحط اقل من 999 في الفلوس ؟ وإلى الأمام دوماً
  4. كل إيفنت له عنصر مثل هذا "onPlayerSpawn" -- source = player "onVehicleExplode" -- source = vehicle "onClientGUIClick" -- source = gui element
  5. source = مين هذا ؟ كيف بتشتغل الوظيفة ؟
  6. ليه الإيفنت اصلاً ذذذذ
  7. 3NAD

    end)

    على حسسسب اكوادك وحدة function noName ( ) end if راح اضيف شرط صارت ثنتين function noName ( ) if ....... then end end for راح اضيف صارت ثلاث function noName ( ) if ....... then for ................. do end end end راح اضيف لها إيفنت function noName ( ) if ....... then for ................. do end end end addEventHandler ( ".............", ....., noName ) راح اسوي الإيفنت بالشكل المختصر addEventHandler ( ".............", ....., function ( ) if ....... then for ................. do end end end ) Notepad لو تحمل برنامج مع وظيفتها بالالوانend راح تلاحظ انه يميز كل
  8. root = getRootElement ( ) تابع الشجرة .. https://wiki.multitheftauto.com/wiki/Element_tree او بالأصح شف ذا https://wiki.multitheftauto.com/wiki/Element
  9. عادي يضبط لية لا # بس لازم يركب بـ نفسة او يغيرة لـ onVehicleEnter . local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) addEventHandler("onVehicleEnter",root, function () attachElements (marker,car7) end ) root = راح تككون جميع المركبات بالنسبة لهذا الإيفنت
  10. جدول aclGroupList
  11. عليكم السلام .. متى دفعت + و وش الطريقة المستخدمة ؟
  12. وشو اللي لقيت .. ابدا من الصفر لا تبحث عن اكواد جاهزة ..
  13. pp = guiCreateProgressBar(535, 10, 294, 41, false) guiSetVisible(pp, false) function show() if guiGetVisible(pp) then guiSetVisible(pp, false) else guiSetVisible(pp, true) end end bindKey("F3", "both", show) function checkVehicles( theVehicle ) local id = getElementModel ( theVehicle ) if id == 411 then guiProgressBarSetProgress( pp, guiProgressBarGetProgress( pp ) + 1 ) end end addEventHandler("onClientMapStarting", root, checkVehicles) هذا بيزيد 1 مرة واحدة فقط مافيه شيء يعيد الوظيفة حط الإيفنت على كودي
  14. الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر .. تقدر تستخدم الإيفنت ذا "onClientMapStarting"
  15. + attachElements مابسويه لكـ اعتمد على نفسك
  16. pp = guiCreateProgressBar ( 535, 10, 294, 41, false ) guiSetVisible ( pp, false ) function show ( ) if guiGetVisible ( pp ) then guiSetVisible ( pp, false ) else guiSetVisible ( pp, true ) end end bindKey ( "F3", "down", show ) function checkVehicles ( theVehicle ) if getElementModel ( theVehicle ) == 411 then if isTimer ( Timer ) then killTimer ( Timer ) end Timer = setTimer ( upgradeValues_, 100, 0, pp ) end end addEventHandler ( "onClientPlayerVehicleEnter", root, checkVehicles ) upgradeValues_ = function ( progress ) if progress and getElementType ( progress ) == "gui-progressbar" then local ProgressValue = guiProgressBarGetProgress ( progress ) if ProgressValue > 99 then if isTimer ( Timer ) then killTimer ( Timer ) return end end guiProgressBarSetProgress ( progress, ProgressValue + 1 ) end end
  17. وش هي السيارة اللي بالريس ؟
  18. pp = guiCreateProgressBar ( 535, 10, 294, 41, false ) guiSetVisible ( pp, false ) function show ( ) if guiGetVisible ( pp ) then guiSetVisible ( pp, false ) else guiSetVisible ( pp, true ) end end bindKey ( "F3", "down", show ) function checkVehicles ( theVehicle ) if getElementModel ( theVehicle ) == 411 then if isTimer ( Timer ) then killTimer ( Timer ) end Timer = setTimer ( upgradeValues_, 100, 0, pp ) end end addEventHandler ( "onClientPlayerVehicleEnter", root, checkVehicles ) upgradeValues_ = function ( progress ) if progress and getElementType ( progress ) == "gui-progressbar" then local ProgressValue = guiProgressBarGetProgress ( progress ) if ProgressValue > 99 then if isTimer ( Timer ) then killTimer ( Timer ) return end end guiProgressBarSetProgress ( progress, ProgressValue + 1 ) end end
  19. 3NAD

    About ' MTA Wiki '.

    Thank you very much. first function. https://wiki.multitheftauto.com/wiki/Ch ... layersName how can i move it to ' Useful Functions ' page ?
  20. https://wiki.multitheftauto.com/wiki/OnClientMouseEnter https://wiki.multitheftauto.com/wiki/OnClientMouseLeave guiSetAlpha
  21. viewtopic.php?f=164&t=50471 == يساوي ~= لا يساوي
  22. تم نقل السيرفر .. كيف عناد ما يقدر ؟ يعني انت دخلت لوحة التحكم حقتي و شفت الصلاحيات
×
×
  • Create New...