Jump to content

MrSAUD1

Members
  • Posts

    286
  • Joined

  • Last visited

Everything posted by MrSAUD1

  1. تقصد زي ذا انت http://b.top4top.net/p_91dt161.png بكل بساطة مسوي GUIEditor = { edit = {} } GUIEditor.edit[1] = guiCreateEdit(265, 198, 234, 25, "SS", false) guiSetAlpha(GUIEditor.edit[1], 0.00) addEventHandler("onClientRender", root, function() dxDrawRectangle(271, 195, 244, 32, tocolor(255, 255, 255, 255), false) dxDrawText(""..guiGetText(GUIEditor.edit[1]).."", 274, 196, 509, 223, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "center", false, false, false, false, false) end ) مسوي لـ الاديت الوضوح 0 و مخلية يجلب الكلام الى ينكتب في الايديت و يجي في النص الدي اكس
  2. مو مغيرين شكلة ! مسوين مربع دي اكس و مسوين لـ الاديت اخفاء و مخلينه لو كتب في الاديت يظهر في نص الدي اكس و نص الدي اكس يكون فوق المربع و كذا انت بتشوفة اديت و هو مو اديت اتمنا فهمت + حتى انا مسوي نفس الطريقة
  3. لأهنت ع الشرح ، لأني م كنت أعرفه كنت أستعمل done = false وتحققات طويلة الخخ في الخدمة
  4. السبب انك اكيد مركب مود عناد , و عناد مسويها بتايمر يعني لازم تنساء دقيقة تقريبأ و تظهر في التاب
  5. تقدر تغير شكلة بس لو تخلية الاعب يقدر يكتب فيه الشكل ما راح يتغير يعني لازم تخلي الاعب ما يقدر يكتب في الايديت + ذا لون مو صوره او شي
  6. الفاصلة سطر 44 تخرب الوضع <> ما انتبهت للفصلة بضبط بس سويت المطلوب و هو حذفت الحدث و الوضيفة للوحة
  7. GUIEditor = { label = {} } local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow((screenW - 563) / 2, (screenH - 622) / 2, 563, 622, "لوحة استئجار السيارات", false) guiWindowSetMovable(wnd, false) guiSetVisible(wnd,false) guiSetAlpha(wnd, 1.00) guiSetProperty(wnd, "CaptionColour", "C80AB9D3") grid = guiCreateGridList(9, 21, 263, 591, false, wnd) guiGridListAddColumn(grid, "the car", 0.5) guiGridListAddColumn(grid, "the price", 0.5) photo = guiCreateStaticImage(275, 27, 278, 179, "11.png", false, wnd) buy = guiCreateButton(278, 225, 275, 51, "استئجار السيارة", false, wnd) guiSetFont(buy, "default-bold-small") guiSetProperty(buy, "NormalTextColour", "C80AB9D3") light = guiCreateButton(278, 330, 275, 51, "تشغيل - اطفاء ضوء السيارة", false, wnd) guiSetFont(light, "default-bold-small") guiSetProperty(light, "NormalTextColour", "C80AB9D3") lock = guiCreateButton(278, 430, 275, 51, "قفل - فتح السيارة", false, wnd) guiSetFont(lock, "default-bold-small") guiSetProperty(lock, "NormalTextColour", "C80AB9D3") close = guiCreateButton(488, 557, 65, 55, "✖", false, wnd) guiSetFont(close, "default-bold-small") guiSetProperty(close, "NormalTextColour", "C81DB8C1") GUIEditor.label[1] = guiCreateLabel(288, 576, 179, 15, "this mod made by :- 1XxCr[o]sS", false, wnd) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 29, 184, 193) bindKey("F9","down", function () guiSetVisible (wnd ,not guiGetVisible (wnd)) showCursor(guiGetVisible(wnd)) end ) cars ={ {"ferari",250,100000}, {"nisan",130,2000000}, }, for k,v in ipairs(cars) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemText(grid,row,2,v[3],false,false) guiGridListSetItemData(grid,row,1,v[2]) guiGridListSetItemData(grid,row,2,v[3]) end جرب كذا اكثر من مره انبه ما يصير كذا لنك مسوي وضيفة عند تشغيل المود و حاط القريد ليست فيها و كذا ما راح يعتبر معرف في الجدول اكثر من مره اقولها لا تضيفون حدث عند تشغيل المود للوحة !
  8. اول شي انا من اول ملاحظ انك تقول مستر سعد انا سعود و ثاني شي الى اقصدة شوف الصوره ذي http://cdn.top4top.net/i_f28318bbd01.png http://cdn.top4top.net/i_85d5b668903.png
  9. وضيفة جميلة دبولة , ورينا ابداعاتك
  10. تقدر تضيف له لون بس لازم يكون مقفل يعني محد يقدر يكتب فيه انا مسوي وحد من قبل بـ الون الحمر
  11. @ DABL ليه حاطت isEventHandlerAdded تحقق لو كانت الدي اكس ظهار او لا , علشان لو سوا الزر بدون تحقق راح تكون مشكلة , و هي لو ضغط في نفس مكان الزر و الوحة مو مفتوحة , راح يسوي الكود الى فيها , بس لو تخلية يتحقق ان الدي اكس موجود او لا ,
  12. شوف الموضوع ذا https://forum.multitheftauto.com/viewtopic.php?f ... 2&start=30
  13. من جدك ول تمزح ؟ وش دخل لوب الاعبين في الانتقال ؟ اعطيتك الفنكشات ليه ما تسويها
  14. table ما يحتاج !
  15. الفنكشات المطلوبه حاول تسويه و احنا نساعدك -- لوب guiGridListAddRow guiGridListSetItemText guiGridListSetItemData "onClientGUIClick" guiGridListGetSelectedItem setElementPosition guiGridListGetItemData
  16. MrSAUD1

    Error #

    if tonumber(guiGetText(SokingDX)) >= 10000 then !!! بالله انت الحين وش سويت؟ شلت المتغير وحطيت الكود مباشرة؟ وش الفرق بالنسبة لصاحب الموضوع فـ كودك سليم ومافيه ولا غلط نو نو , انا مجرب من قبل بنفس الطريقة , يقولي الغلط في > و جربت استخدمتها بطريقتي و ضبطت
  17. MrSAUD1

    Error #

    if tonumber(guiGetText(SokingDX)) >= 10000 then
  18. غريبة , الدي بق يقول شي ؟
  19. addEvent ("armor", true) addEventHandler ("armor", root, function () setTimer ( function () setPlayerArmor ( source, getPlayerArmor ( source ) + 1 ) setElementHealth( source, getElementHealth ( source ) + 1 ) end,1000, 0) end )
  20. ذا مثال بسيط SAUD0 = { "مو انا 1" , "مو انا 2" , "مو انا 3" , } SAUD2 = { "انا ؟1" , "انا ؟2" , "انا ؟3" , } function SAUD () SAUD1 = math.random(9,9) outputChatBox(""..SAUD0[SAUD1].." "..SAUD2[SAUD1].."",255,255,0,true) end setTimer(SAUD,5000,0) كل 5 ثوني يطلع نص بشكل عشوائي من الجداول
  21. انا صرحتن ما فهمتكم المفترض انك مسوي Dx مو gui فـ الافضل تسخدم الوضيفة الى اعطتيك فوق تضيف احداثيات الزر و تحقق لو ان اللدي اكس ظاهر ول لا !
  22. اذا كنت تبيه اذا ضغط زر دي اكس , خليها على الاحداثيات و استخدم 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 function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end و اذا تبي تخفي و تظهر الدي اكس , addEventHandler 'onClientRender' removeEventHandler 'onClientRender'
  23. في لها شروحات في الويكي نفسة و في امثلة !
  24. التصحيح local alzr = 'm' -- GUIEditor = { window = {}, gridlist = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(551, 138, 249, 435, ":: Police Panel ::", false) guiWindowSetSizable(wnd, false) GUIEditor.button[1] = guiCreateButton(9, 327, 109, 45, "Kil / Slap", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF04B0AA") GUIEditor.button[2] = guiCreateButton(130, 327, 109, 45, "Destroy Car", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF04AE8C") GUIEditor.button[3] = guiCreateButton(10, 255, 230, 32, "Blow Car", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFD9CC00") GUIEditor.button[4] = guiCreateButton(9, 290, 230, 32, "Spectate Car", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF4CD800") GUIEditor.button[5] = guiCreateButton(10, 377, 224, 31, "X", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(10, 410, 216, 15, "غير أجباري | Not Requred", false, wnd) guiLabelSetColor(GUIEditor.label[1], 175, 0, 0) GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 231, 230, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) end ) -- bindKey (alzr,'down', function () guiSetVisible (wnd,not guiGetVisible (wnd)) showCursor (guiGetVisible (wnd)) end) يستخدم الى اعطيته فوق , حقك ما راح يشتغل طالما انك مو ضايف كود فتح النافذة في الوضيفة حقت الوحة نفسها او احذف الوضيفة مره وحدة
  25. اكيد ما تفتح لنك مو ضايف الزر في الوضيفة نفسها يا خي لا تستخدمون وضايف للوحة local alzr = 'm' -- GUIEditor = { window = {}, gridlist = {}, button = {}, label = {} } wnd = guiCreateWindow(551, 138, 249, 435, ":: Police Panel ::", false) guiWindowSetSizable(wnd, false) GUIEditor.button[1] = guiCreateButton(9, 327, 109, 45, "Kil / Slap", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF04B0AA") GUIEditor.button[2] = guiCreateButton(130, 327, 109, 45, "Destroy Car", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF04AE8C") GUIEditor.button[3] = guiCreateButton(10, 255, 230, 32, "Blow Car", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFD9CC00") GUIEditor.button[4] = guiCreateButton(9, 290, 230, 32, "Spectate Car", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF4CD800") GUIEditor.button[5] = guiCreateButton(10, 377, 224, 31, "X", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(10, 410, 216, 15, "غير أجباري | Not Requred", false, wnd) guiLabelSetColor(GUIEditor.label[1], 175, 0, 0) GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 231, 230, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) -- bindKey (alzr,'down', function () guiSetVisible (wnd,not guiGetVisible (wnd)) showCursor (guiGetVisible (wnd)) end)
×
×
  • Create New...