Jump to content

HassoN

Members
  • Posts

    636
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by HassoN

  1. أطرح كود فتح الوحة كلنت وسيرفر
  2. سوي تحقق من الاسل قروب حق الاعب بجهة سيرفر accountname = getAccountName (getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then وبجهة كلنت قفل وافتح الازرار الي تبيها guiSetEnabled
  3. -- Server isObjectInACLGroup getAccountName getPlayerAccount aclGetGroup -- Client guiSetEnabled
  4. addCommandHandler("myiron", function() miron = getElementData(localPlayer,"Iron") outputChatBox("Your iron is"..miron.." in server") end)
  5. .. لآ مأتقدر تغير فيه شي ومافي نسخة مو مشفرة منه
  6. وش قصدك بـ "بس حق الكلام مو حق الزر"؟ وضح اكثر
  7. هههههههه العفو واجبي ، ذي طيور مو خفافيش ض1
  8. ... سويته لك على شكل تايمر كل شوي يتحقق ، مع العلم الطريقة ذي ممكن تسبب لك لاق خفيف ، انصحك تسوي زي ماقلت لك فوق setTimer(function() if getElementInterior(localPlayer) == 1 and getElementDimension(localPlayer) == 0 then toggleControl ("next_weapon",false) toggleControl ("previous_weapon",false) toggleControl ("fire",false) setPedWeaponSlot (localPlayer,0) elseif getElementInterior(localPlayer) == 0 and getElementDimension(localPlayer) == 0 then toggleControl ("next_weapon",true) toggleControl ("previous_weapon",true) toggleControl ("fire",true) end end,1500,0)
  9. عشان تحفظ الي تبيه SQLite أكيد كل شي يروح اذا انت تحفظ على الحسابات او الالمنت داتا ، احسن شي استعمل https://forum.multitheftauto.com/viewtopic.php?f=164&t=56729 ولو ماعندك خبرة فيه شوف الشرح ذا
  10. أكيد فيه ماركر ينقلك للانتريور ذا , صح؟ اذا يب ، استعمل الأكواد الي تحت ذي اول ماينقله للمكان -- أذا كلنت خليه كذا واذا سيرفر ضيف اسم الألمنت حق الاعب toggleControl ("next_weapon",false) toggleControl ("previous_weapon",false) toggleControl ("fire",false) setPedWeaponSlot (localPlayer,0) ولما يطلع من المكان ذا او لما يموت اعكس الأكواد الي فوق -- أذا كلنت خليه كذا واذا سيرفر ضيف اسم الألمنت حق الاعب toggleControl ("next_weapon",true) toggleControl ("previous_weapon",true) toggleControl ("fire",true)
  11. ... الحدث ذا يصير لما الاعب خلاص طلع من السيرفر ، يعني ماراح تقدر توقف حدث الـ كيك بالكود ذا
  12. صراحة كودك لحسة مرة وملخبط ، كل الي سويته انا خليت الوحة تفتح لك مع العلم فيه كثير بقات حاول تصلحها بنفسك GUIEditor = { checkbox = {}, staticimage = {}, edit = {}, button = {}, window = {}, label = {}, gridlist = {} } function StartDXGUI() dxDrawRectangle(238, 68, 802, 623, tocolor(1, 0, 0, 255), false) dxDrawRectangle(238, 13, 798, 55, tocolor(6, 67, 66, 255), false) end function cr() GUIEditor.gridlist[1] = guiCreateGridList(241, 74, 407, 607, false) local PlayerName = guiGridListAddColumn(GUIEditor.gridlist[1], "آسـم الاعــب", 0.4) local PlayerTime = guiGridListAddColumn(GUIEditor.gridlist[1], "ســآعآآت", 0.4) GUIEditor.edit[1] = guiCreateEdit(812, 538, 111, 48, "", false) GUIEditor.label[1] = guiCreateLabel(741, 409, 112, 25, "عدد الساعات :", false ) GUIEditor.checkbox[1] = guiCreateCheckBox(648, 282, 98, 31, "تــحــديــد آلــكــل", false, false ) GUIEditor.button[1] = guiCreateButton(822, 465, 96, 45, "إعطاء ساعات", false ) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FF00") GUIEditor.button[2] = guiCreateButton(675, 465, 96, 45, "ســحــب ساعات", false ) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") GUIEditor.edit[2] = guiCreateEdit(675, 93, 351, 42, "بــحــث ....", false ) GUIEditor.label[2] = guiCreateLabel(695, 100, 302, 25, "_______________________________________________________________________________________________________________________", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(665, 545, 100, 31, "كـلمـة التوزيع", false) GUIEditor.edit[3] = guiCreateEdit(660, 538, 111, 48, "", false) GUIEditor.label[4] = guiCreateLabel(815, 544, 98, 32, "آلــســآآعــآآت :", false) GUIEditor.edit[4] = guiCreateEdit(812, 538, 111, 48, "", false) GUIEditor.button[3] = guiCreateButton(749, 592, 95, 46, "مـوآفــق", false) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF00FF00") GUIEditor.edit[5] = guiCreateEdit(751, 643, 98, 43, "", false) GUIEditor.label[5] = guiCreateLabel(755, 647, 84, 34, "مـددة الـتوزيـع....", false ) GUIEditor.staticimage[1] = guiCreateStaticImage(776, 176, 221, 158, "logo.png", false) end addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.checkbox[1] then if guiCheckBoxGetSelected(source) then guiGridListSetSelectedItem(GUIEditor.gridlist[1],-1,-1) end elseif source == GUIEditor.gridlist[1] then if guiCheckBoxGetSelected(GUIEditor.checkbox[1]) then guiCheckBoxSetSelected(GUIEditor.checkbox[1],false) end elseif source == GUIEditor.edit[2] then if guiGetText(source) == "بــحــث ...." then guiSetText(source,"") end elseif source == GUIEditor.button[1] and guiGetText(GUIEditor.edit[1]) ~= "" and tonumber(guiGetText(GUIEditor.edit[1])) then if guiCheckBoxGetSelected(GUIEditor.checkbox[1]) then triggerServerEvent("addTime",root,"all",tonumber(guiGetText(GUIEditor.edit[1]))) else triggerServerEvent("addTime",root,guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1),tonumber(guiGetText(GUIEditor.edit[1]))) end elseif source == GUIEditor.button[2] and guiGetText(GUIEditor.edit[1]) ~= "" and tonumber(guiGetText(GUIEditor.edit[1])) then showCursor(not guiGetVisible(GUIEditor.window[1])) guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) if guiCheckBoxGetSelected(GUIEditor.checkbox[1]) then triggerServerEvent("removeTime",root,"all",tonumber(guiGetText(GUIEditor.edit[1]))) else triggerServerEvent("removeTime",root,guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1),tonumber(guiGetText(GUIEditor.edit[1]))) end elseif source == GUIEditor.button[3] and guiGetText(GUIEditor.label[3]) ~= "" and guiGetText(GUIEditor.label[4]) ~= "" and guiGetText(GUIEditor.label[5]) ~= "" then triggerServerEvent("ToServer",root,guiGetText(GUIEditor.edit[3]),guiGetText(GUIEditor.edit[4]),guiGetText(GUIEditor.edit[5])) showCursor(not guiGetVisible(GUIEditor.window[1])) guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) end end) addEventHandler("onClientGUIChanged",root, function () if source == GUIEditor.edit[2] then searchgd(GUIEditor.gridlist[1],guiGetText(source)) end end) function getPlayerTime(plr) return getElementData(plr,"PlayTime") end function SetPlayersInGD( GridList ) if GridList then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, 1, getPlayerName ( v ), false, false ) guiGridListSetItemText ( GridList, Row, 2, getPlayerTime( v ), false, false ) end end end end end function searchgd(GridList,name) if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do if not string.find(getPlayerName(v),name) then return end local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, 1, getPlayerName ( v ), false, false ) guiGridListSetItemText ( GridList, Row, 2, getPlayerTime( v ), false, false ) end end end addCommandHandler("open", function() if getPlayerSerial() == "1C6FDFC55FAF3F1EC6129B4F9DB1E644" then outputChatBox('* Welcome !',0,155,255,true) showCursor(true) cr() addEventHandler("onClientRender", root,StartDXGUI) SetPlayersInGD(GUIEditor.gridlist[1]) guiSetText(GUIEditor.edit[1],"") guiSetText(GUIEditor.edit[2],"بــحــث ....") guiSetText(GUIEditor.edit[3],"") guiSetText(GUIEditor.edit[4],"") guiSetText(GUIEditor.edit[5],"") else outputChatBox('* You not have permission to Access',255,0,0,true) end end)
  13. قصده لما اللاعب ينصك كيك ما موجود بالويكي , بس فيه طريقة تقدر تستخدمها تقدر لما ينصك كيك kickPlayer تجيب اسم الي انصك او الخ getPlayerName انا بأختصار عايز اصنع كود ماحدش يقدر يديك كيك يعني هاستخدم cancleEvent شيل زر الكيك من لوحة الادمنية وخلصنا
  14. لوحتك كيف تبيها تفتح؟ اول مايشتغل المود ولا كلمة ولا زر بلوحة ثانية ولا كيف؟
  15. ماحد بيقرا كل السطور ذي عشان يعرف المشكلة حقك ، هات الكلام الي بال دي بق
  16. تم شكراً + اقبل سكايب العفو واجبي ، بس ماوصل شي على السكايب .. تأكد من الاسم مرة ثانية hassan.saad2000
  17. source خليه playerسطر 13 و 24 و43 غير ال
  18. مأتحط اسم تيم ولا شي ، انت مثلا حاط فنكشن لما يدخل على الماركر ينقله للمهمة للاعب حط بالسطر الي تحته setElementData(player,"in_mission",true) ثم لو مثلا فيه مكان يطلع منه الاعب من المهمة كـ ماركر او يموت مثلا داخل المهمة فـ حط setElementData(player,"in_mission",false) وبس ، حط كود حق الي يطفي الدامج الي حاطه فوق جينيرال وانحلت .. لو مافهمت لسا ضيفني سكايب وبفهمك كل شي حبة حبة
  19. لما تحطها على الوحة bindsذي بتطفي الـ حقت الشات وانت فاتح الوحة مابيجيك الشات T بمعنى لو ضغطت على
  20. تفضل local component = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } function OpenWin() for _, component in ipairs( component ) do if isPlayerHudComponentVisible( component ) then setPlayerHudComponentVisible( component, false ) else setPlayerHudComponentVisible( component, true ) end end end bindKey("M","down", OpenWin)
×
×
  • Create New...