-
Posts
67 -
Joined
-
Last visited
Everything posted by # DHwROk ~
-
لآ أعلم لاكن أوريد مبرمج لكي يعمل لي ^^
-
قيم مود = لوحة تسجيل ولوحة أختيآر ألشخصية و ألمكآن
-
سسلآم عليكم ورحمة ألله وبركآته كيفكم ؟ أليوم آبي مبرمج مححترف يعني يسسوي لي قيم مود هجولة + بعطيهه أللوحات + ألاحدآثيآت ططرق ألدفع [ كـآش يو + سوأ + موبأيلي ] سكأيب / alm1098
-
يب آشتغل مشكور , تمت آلإفآدهه #
-
ما اشوف شي بكودك يفتح القريد لست او الزر او اي شي ثاني + اللوحة مفتوحه انت ما قفلتها اصلا local x, y = guiGetScreenSize() local rx, ry = (x/800), (y/600) GUIEditor = { gridlist = {}, button = {} } GUIEditor.button[1] = guiCreateButton(rx*522, ry*465, rx*205, ry*27, "", false) guiSetAlpha(GUIEditor.button[1], 0.17) GUIEditor.gridlist[1] = guiCreateGridList(rx*522, ry*206, rx*205, ry*254, false) guiGridListAddColumn(GUIEditor.gridlist[1], "Warp #", 0.9) function Warps() dxDrawLine(rx*516 - 1, ry*167 - 1, rx*516 - 1, ry*502, tocolor(54, 151, 224, 224), 1, false) dxDrawLine(rx*733, ry*167 - 1, rx*516 - 1, ry*167 - 1, tocolor(54, 151, 224, 224), 1, false) dxDrawLine(rx*516 - 1, ry*502, rx*733, ry*502, tocolor(54, 151, 224, 224), 1, false) dxDrawLine(rx*733, ry*502, rx*733, ry*167 - 1, tocolor(54, 151, 224, 224), 1, false) dxDrawRectangle(rx*516, ry*167, rx*217, ry*335, tocolor(0, 0, 0, 141), false) dxDrawLine(rx*516, ry*197, rx*733, ry*197, tocolor(54, 151, 224, 224), 1, false) dxDrawText(".::[ Warp ]::.", rx*563 - 1, ry*167 - 1, rx*690 - 1, ry*196 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(".::[ Warp ]::.", rx*563 + 1, ry*167 - 1, rx*690 + 1, ry*196 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(".::[ Warp ]::.", rx*563 - 1, ry*167 + 1, rx*690 - 1, ry*196 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(".::[ Warp ]::.", rx*563 + 1, ry*167 + 1, rx*690 + 1, ry*196 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(".::[ Warp ]::.", rx*563, ry*167, rx*690, ry*196, tocolor(255, 255, 255, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(rx*522 - 1, ry*466 - 1, rx*522 - 1, ry*492, tocolor(54, 151, 224, 224), 1, false) dxDrawLine(rx*727, ry*466 - 1, rx*522 - 1, ry*466 - 1, tocolor(54, 151, 224, 224), 1, false) dxDrawLine(rx*522 - 1, ry*492, rx*727, ry*492, tocolor(54, 151, 224, 224), 1, false) dxDrawLine(rx*727, ry*492, rx*727, ry*466 - 1, tocolor(54, 151, 224, 224), 1, false) dxDrawRectangle(rx*522, ry*466, rx*205, ry*26, tocolor(0, 0, 0, 141), false) dxDrawText("[ إنتقآل ]", rx*572 - 1, ry*462 - 1, rx*680 - 1, ry*496 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ إنتقآل ]", rx*572 + 1, ry*462 - 1, rx*680 + 1, ry*496 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ إنتقآل ]", rx*572 - 1, ry*462 + 1, rx*680 - 1, ry*496 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ إنتقآل ]", rx*572 + 1, ry*462 + 1, rx*680 + 1, ry*496 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ إنتقآل ]", rx*572, ry*462, rx*680, ry*496, tocolor(255, 255, 255, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) end ------------------------------------------------------- MKAN = { {"آسـتـرآحـة آلـجنوون",2335.490234375,-1658.9318847656,13.37931060791}, {"موقف الباصات",1790.2674560547,-1912.0159912109 , 13.396838188171}, {"سـفـيـنـة",-2520.77734375,1545.1779785156,17.328125}, {"آلـمـسـبـح",2295.2536621094,659.69207763672,10.8203125}, {"جسر المعلق",-2674.5361328125,1221.0744628906,55.4296875}, {"الفنادق",-1739.0821533203, 940.56231689453, 24.7421875}, {"الـمـعـرض",-1656.5615234375,1213.548828125,7.25}, {"المـطآر الاول",1409.7137451172,-2509.9780273438,13.5546875}, {"المـطآر الثآني",-1503.4846191406,-131.5910949707,14.1484375}, {"حي السكاني آلآول",1573.5174560547,713.45556640625,10.822286605835}, {"حي السكاني آلثآني",-1682.8609619141,1365.5950927734,7.1721897125244}, {"حي السكاني آلثآلث",2866.7397460938,-1958.3475341797,11.109375}, {"قصور الشيوخ 1",959.62994384766,-641.74029541016,121.31896209717}, {"قصور الشيوخ 2",-2400.1049804688,335.70724487305,35.171875,}, {"قصر الشيخ شادو",1170.6643066406,-2035.2841796875,69.0078125}, {"الشارع الطويل",-3037.3972167969,-3193.962890625,2.0999999046326}, {"شارع البستان",2491.12109375, -1667.4482421875, 13.34375}, {"السد الكبير",-887.02734375, 2000.9217529297, 60.654315948486}, {"الـدآئـري",1686.5134277344,1400.2590332031,10.748929977417}, {"الـنـخـيـل",2126.0661621094,1409.3852539063,10.8203125}, {"شارع الفروسيه",2878.1115722656, -1110.029296875, 10.882762908936}, {"شارع الغروب",662.55310058594, 1936.7479248047, 5.5052728652954}, {"طـعـس",1054.4178466797,2816.0053710938,13.025714874268}, {"ساحه التفجير",-2051.4926757813, -173.29304504395, 35.3203125}, {"سرقة البنك",596.84881591797, -1240.9123535156, 18.089265823364}, {"آلـبـنـكـ",1013.4171142578,-935.34442138672,42.1796875}, } for i,mk in ipairs(MKAN) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,mk[1],false,false) guiGridListSetItemData(GUIEditor.gridlist[1],row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler("onClientGUIClick",GUIEditor.button[1], function () local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(GUIEditor.gridlist[1],sel,1)) outputChatBox("# Warped.",54, 151, 224) fadeCamera ( false ) setTimer ( fadeCamera, 1500, 1, true ) setTimer ( setElementPosition, 1200, 1, localPlayer, x, y, z ) end end ,false) guiSetVisible ( GUIEditor.button[1], false ) guiSetVisible ( GUIEditor.gridlist[1], false ) ------------------------------------- function OpenWin() if removeEventHandler("onClientRender",root,Warps) then removeEventHandler("onClientRender",root,Warps) guiSetVisible ( GUIEditor.button[1], false ) guiSetVisible ( GUIEditor.gridlist[1], false ) showCursor(false) else addEventHandler("onClientRender",root,Warps) guiSetVisible ( GUIEditor.button[1], true ) guiSetVisible ( GUIEditor.gridlist[1], true ) showCursor(true) end end bindKey ( "F6", "down", OpenWin) ذي آلمود قبل لا أعدله GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(527, 216, 328, 369, "[ G.N | Werp # الانتقالات | G.N ]", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00E9FD") GUIEditor.button[1] = guiCreateButton(99, 326, 131, 33, "[ werp | إنتقال ]", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFBFE00") GUIEditor.gridlist[1] = guiCreateGridList(32, 28, 261, 288, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Werp #", 0.9) ------------------------------------------------------- MKAN = { {"آسـتـرآحـة آلـجنوون",2335.490234375,-1658.9318847656,13.37931060791}, {"موقف الباصات",1790.2674560547,-1912.0159912109 , 13.396838188171}, {"سـفـيـنـة",-2520.77734375,1545.1779785156,17.328125}, {"آلـمـسـبـح",2295.2536621094,659.69207763672,10.8203125}, {"جسر المعلق",-2674.5361328125,1221.0744628906,55.4296875}, {"الفنادق",-1739.0821533203, 940.56231689453, 24.7421875}, {"الـمـعـرض",-1656.5615234375,1213.548828125,7.25}, {"المـطآر الاول",1409.7137451172,-2509.9780273438,13.5546875}, {"المـطآر الثآني",-1503.4846191406,-131.5910949707,14.1484375}, {"حي السكاني آلآول",1573.5174560547,713.45556640625,10.822286605835}, {"حي السكاني آلثآني",-1682.8609619141,1365.5950927734,7.1721897125244}, {"حي السكاني آلثآلث",2866.7397460938,-1958.3475341797,11.109375}, {"قصور الشيوخ 1",959.62994384766,-641.74029541016,121.31896209717}, {"قصور الشيوخ 2",-2400.1049804688,335.70724487305,35.171875,}, {"قصر الشيخ شادو",1170.6643066406,-2035.2841796875,69.0078125}, {"الشارع الطويل",-3037.3972167969,-3193.962890625,2.0999999046326}, {"شارع البستان",2491.12109375, -1667.4482421875, 13.34375}, {"السد الكبير",-887.02734375, 2000.9217529297, 60.654315948486}, {"الـدآئـري",1686.5134277344,1400.2590332031,10.748929977417}, {"الـنـخـيـل",2126.0661621094,1409.3852539063,10.8203125}, {"شارع الفروسيه",2878.1115722656, -1110.029296875, 10.882762908936}, {"شارع الغروب",662.55310058594, 1936.7479248047, 5.5052728652954}, {"طـعـس",1054.4178466797,2816.0053710938,13.025714874268}, {"ساحه التفجير",-2051.4926757813, -173.29304504395, 35.3203125}, {"سرقة البنك",596.84881591797, -1240.9123535156, 18.089265823364}, {"آلـبـنـكـ",1013.4171142578,-935.34442138672,42.1796875}, } for i,mk in ipairs(MKAN) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,mk[1],false,false) guiGridListSetItemData(GUIEditor.gridlist[1],row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler("onClientGUIClick",GUIEditor.button[1], function () local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(GUIEditor.gridlist[1],sel,1)) outputChatBox("# Warped.",54, 151, 224) fadeCamera ( false ) setTimer ( fadeCamera, 1500, 1, true ) setTimer ( setElementPosition, 1200, 1, localPlayer, x, y, z ) end end وذآ بعد مآعدلته
-
مششكور , تمت ألإفآدهه #
-
كود يفتح آللوحة وذي آلكودآت
-
سلام عليكم عندي مود لوحة الانتقالات دي أكس و عدلت عليه وخليته مآهو دي آكس ططيب وإضغط الزر آلي كان يشتغل عليه قبل ويفتح لي gridlist و button , آما اللوحة م يفتحها آبي حل آلكودآت GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(527, 216, 328, 369, "[ G.N | Werp # الانتقالات | G.N ]", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00E9FD") GUIEditor.button[1] = guiCreateButton(99, 326, 131, 33, "[ werp | إنتقال ]", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFBFE00") GUIEditor.gridlist[1] = guiCreateGridList(32, 28, 261, 288, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Werp #", 0.9) ------------------------------------------------------- MKAN = { {"آسـتـرآحـة آلـجنوون",2335.490234375,-1658.9318847656,13.37931060791}, {"موقف الباصات",1790.2674560547,-1912.0159912109 , 13.396838188171}, {"سـفـيـنـة",-2520.77734375,1545.1779785156,17.328125}, {"آلـمـسـبـح",2295.2536621094,659.69207763672,10.8203125}, {"جسر المعلق",-2674.5361328125,1221.0744628906,55.4296875}, {"الفنادق",-1739.0821533203, 940.56231689453, 24.7421875}, {"الـمـعـرض",-1656.5615234375,1213.548828125,7.25}, {"المـطآر الاول",1409.7137451172,-2509.9780273438,13.5546875}, {"المـطآر الثآني",-1503.4846191406,-131.5910949707,14.1484375}, {"حي السكاني آلآول",1573.5174560547,713.45556640625,10.822286605835}, {"حي السكاني آلثآني",-1682.8609619141,1365.5950927734,7.1721897125244}, {"حي السكاني آلثآلث",2866.7397460938,-1958.3475341797,11.109375}, {"قصور الشيوخ 1",959.62994384766,-641.74029541016,121.31896209717}, {"قصور الشيوخ 2",-2400.1049804688,335.70724487305,35.171875,}, {"قصر الشيخ شادو",1170.6643066406,-2035.2841796875,69.0078125}, {"الشارع الطويل",-3037.3972167969,-3193.962890625,2.0999999046326}, {"شارع البستان",2491.12109375, -1667.4482421875, 13.34375}, {"السد الكبير",-887.02734375, 2000.9217529297, 60.654315948486}, {"الـدآئـري",1686.5134277344,1400.2590332031,10.748929977417}, {"الـنـخـيـل",2126.0661621094,1409.3852539063,10.8203125}, {"شارع الفروسيه",2878.1115722656, -1110.029296875, 10.882762908936}, {"شارع الغروب",662.55310058594, 1936.7479248047, 5.5052728652954}, {"طـعـس",1054.4178466797,2816.0053710938,13.025714874268}, {"ساحه التفجير",-2051.4926757813, -173.29304504395, 35.3203125}, {"سرقة البنك",596.84881591797, -1240.9123535156, 18.089265823364}, {"آلـبـنـكـ",1013.4171142578,-935.34442138672,42.1796875}, } for i,mk in ipairs(MKAN) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,mk[1],false,false) guiGridListSetItemData(GUIEditor.gridlist[1],row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler("onClientGUIClick",GUIEditor.button[1], function () local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(GUIEditor.gridlist[1],sel,1)) outputChatBox("# Warped.",54, 151, 224) fadeCamera ( false ) setTimer ( fadeCamera, 1500, 1, true ) setTimer ( setElementPosition, 1200, 1, localPlayer, x, y, z ) end end
-
آبدآع ححتى كلمةة أبدآع قليلهه بحقككء وأصصل بدون فوآصل ي لبى لآ تححرمنآ من جديدككء ,
-
# | سسلآمم عليككم ورححمهة آلله وبركآتهة | # ~ # | ككيفكمء آن ششآء آلله بخيير ؟ | # ~ # | آبي كود فتح آلنآفذهه لقروب معين | # ~ # | مثآل " قروب آلككونسسل | # ~ # | وين آحط آلكود بـ ملف سيرفر آو كلينت ؟ | #
-
# | سلآآمو عليككمء ورححمهة آلله وبركآتهة , | # # | كيفكمء آن ششآء آلله بخخير ؟ | # # | آلمهم | عندي لوححة gui ططيب , وخلصت منهآ وركبتهآ بسيرفر ,$ | # # | وإذآ دخلت آلسسيرفر تطلع آللوحة بوجهيء ططيب . . . | # # | آلححينء آبي ككود . إذا دخخلت آلسيررففر م تطلع ألا إذآ ضغط آلزر . ؟ | # # | يلآ منتظر ردككء ي آلغآليء . # | #
-
معكك حق مآعليك منهم
-
اي زر تبي تقفله ؟ متشتغل ليه ؟ aACLAddObject انا قفلتهم بس ولا تجي الرتبه ok لو آضغط عليها يجي و م آقدر آضغط ذي آلكودآت --[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_acl.lua * * Original File by lil_Toady * **************************************]] aAclForm = nil aAclData = {} function aManageACL () if ( aAclForm == nil ) then aAclData["group_objects"] = {} aAclData["group_acls"] = {} aAclData["acl_rights"] = {} local x, y = guiGetScreenSize() aAclForm = guiCreateWindow ( x / 2 - 230, y / 2 - 250, 460, 500, "ACL Management", false ) aACLList = guiCreateGridList ( 0.03, 0.05, 0.50, 0.90, true, aAclForm ) guiGridListSetSortingEnabled ( aACLList, false ) guiGridListAddColumn( aACLList, "", 0.10 ) guiGridListAddColumn( aACLList, "", 0.85 ) aACLCreateGroup = guiCreateButton ( 0.55, 0.05, 0.40, 0.04, "Create group", true, aAclForm ) guiSetEnabled ( aACLCreateGroup, false ) aACLCreateACL = guiCreateButton ( 0.55, 0.10, 0.40, 0.04, "Create ACL", true, aAclForm ) guiSetEnabled ( aACLCreateACL, false ) aACLLabel = guiCreateLabel ( 0.55, 0.19, 0.40, 0.04, "", true, aAclForm ) aACLSeparator = guiCreateStaticImage ( 0.55, 0.235, 0.40, 0.0025, "client\\images\\dot.png", true, aAclForm ) aACLDestroyGroup = guiCreateButton ( 0.55, 0.25, 0.40, 0.04, "Destroy group", true, aAclForm ) guiSetEnabled ( aACLDestroyGroup, false ) aACLDestroyACL = guiCreateButton ( 0.55, 0.25, 0.40, 0.04, "Destroy ACL", true, aAclForm ) guiSetEnabled ( aACLDestroyACL, false ) aACLAddObject = guiCreateButton ( 0.55, 0.30, 0.40, 0.04, "Add Object", true, aAclForm ) guiSetEnabled ( aACLAddObject, false ) aACLRemoveObject = guiCreateButton ( 0.55, 0.35, 0.40, 0.04, "Remove Object", true, aAclForm ) guiSetEnabled ( aACLRemoveObject, false ) aACLAddACL = guiCreateButton ( 0.55, 0.40, 0.40, 0.04, "Add ACL", true, aAclForm ) guiSetEnabled ( aACLAddACL, false ) aACLRemoveACL = guiCreateButton ( 0.55, 0.45, 0.40, 0.04, "Remove ACL", true, aAclForm ) guiSetEnabled ( aACLRemoveACL, false ) aACLActionLabel = guiCreateLabel ( 0.55, 0.31, 0.40, 0.04, "", true, aAclForm ) aACLDropCurrent = guiCreateEdit ( 0.55, 0.35, 0.40, 0.04, "", true, aAclForm ) aACLDropDown = guiCreateStaticImage ( 0.91, 0.35, 0.04, 0.04, "client\\images\\dropdown.png", true, aAclForm ) aACLDropList = guiCreateGridList ( 0.55, 0.35, 0.40, 0.30, true, aAclForm ) guiGridListAddColumn( aACLDropList, "", 0.85 ) guiSetVisible ( aACLDropList, false ) aACLOk = guiCreateButton ( 0.55, 0.40, 0.19, 0.04, "Ok", true, aAclForm ) aACLCancel = guiCreateButton ( 0.76, 0.40, 0.19, 0.04, "Cancel", true, aAclForm ) aACLAddRight = guiCreateButton ( 0.55, 0.30, 0.40, 0.04, "Add Right", true, aAclForm ) aACLExit = guiCreateButton ( 0.75, 0.90, 0.27, 0.04, "Close", true, aAclForm ) aclDisplayOptions ( "", "" ) addEvent ( "aAdminACL", true ) addEventHandler ( "aAdminACL", localPlayer, aAdminACL ) addEventHandler ( "onClientGUIClick", aAclForm, aClientACLClick ) addEventHandler ( "onClientGUIDoubleClick", aAclForm, aClientACLDoubleClick ) --Register With Admin Form aRegister ( "ACLManage", aAclForm, aManageACL, aACLClose ) triggerServerEvent ( "aAdmin", localPlayer, "sync", "aclgroups" ) end guiSetVisible ( aAclForm, true ) guiBringToFront ( aAclForm ) end function aACLClose ( destroy ) if ( ( destroy ) or ( aPerformanceACL and guiCheckBoxGetSelected ( aPerformanceACL ) ) ) then if ( aAclForm ) then removeEventHandler ( "onClientGUIClick", aAclForm, aClientACLClick ) removeEventHandler ( "onClientGUIDoubleClick", aAclForm, aClientACLDoubleClick ) destroyElement ( aAclForm ) aAclForm = nil end else guiSetVisible ( aAclForm, false ) end end function aAdminACL ( type, acltable ) guiGridListClear ( aACLList ) if ( type == "aclgroups" ) then aAclData["viewing"] = nil aAclData["group_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["group_row"], 2, "Groups:", true, false ) aAclData["groups"] = acltable["groups"] for id, name in ipairs ( acltable["groups"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end local row = guiGridListAddRow ( aACLList ) aAclData["acl_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["acl_row"], 2, "ACL:", true, false ) aAclData["acl"] = acltable["acl"] for id, name in ipairs ( acltable["acl"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end aclDisplayOptions ( "", "" ) elseif ( type == "aclobjects" ) then aAclData["group_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["group_row"], 2, "Groups:", true, false ) for i, group in ipairs ( aAclData["groups"] ) do local group_row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, group_row, 2, group, false, false ) if ( group == acltable["name"] ) then aclDisplayOptions ( "Group", acltable["name"] ) aAclData["objects_row"] = guiGridListAddRow ( aACLList ) aAclData["group_objects"][group] = acltable["objects"] guiGridListSetItemText ( aACLList, aAclData["objects_row"], 2, " objects:", true, false ) for j, object in ipairs ( acltable["objects"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 2, " "..object, false, false ) end aAclData["acls_row"] = guiGridListAddRow ( aACLList ) aAclData["group_acls"][group] = acltable["acl"] guiGridListSetItemText ( aACLList, aAclData["acls_row"], 2, " acl:", true, false ) for j, acl in ipairs ( acltable["acl"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 2, " "..acl, false, false ) end guiGridListSetItemText ( aACLList, group_row, 1, "-", false, false ) else guiGridListSetItemText ( aACLList, group_row, 1, "+", false, false ) end end aAclData["acl_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["acl_row"], 2, "ACL:", true, false ) for id, name in ipairs ( aAclData["acl"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end elseif ( type == "aclrights" ) then aAclData["viewing"] = "rights" aAclData["group_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["group_row"], 2, "Groups:", true, false ) for id, name in ipairs ( aAclData["groups"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end aAclData["acl_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["acl_row"], 2, "ACL:", true, false ) for i, acl in ipairs ( aAclData["acl"] ) do local acl_row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, acl_row, 2, acl, false, false ) if ( acl == acltable["name"] ) then aAclData["acl_rights"][acl] = acltable["rights"] aclDisplayOptions ( "ACL", acltable["name"] ) aAclData["rights_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["rights_row"], 2, " rights:", true, false ) for name, access in pairs ( acltable["rights"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 2, " "..name, false, false ) if guiGridListSetItemColor then guiGridListSetItemColor ( aACLList, row, 2, access and 0 or 255, access and 255 or 0, 0, 255) end end guiGridListSetItemText ( aACLList, acl_row, 1, "-", false, false ) else guiGridListSetItemText ( aACLList, acl_row, 1, "+", false, false ) end end end end function aClientACLDoubleClick ( button ) if ( button == "left" ) then if ( source == aACLList ) then local row = guiGridListGetSelectedItem ( aACLList ) if ( row ~= -1 ) then local clicked = guiGridListGetItemText ( aACLList, row, 2 ) local state = guiGridListGetItemText ( aACLList, row, 1 ) if ( row > aAclData["acl_row"] ) then for i, acl in ipairs ( aAclData["acl"] ) do if ( acl == clicked ) then if ( state == "-" ) then triggerServerEvent ( "aAdmin", localPlayer, "sync", "aclgroups" ) else triggerServerEvent ( "aAdmin", localPlayer, "sync", "aclrights", clicked ) end return end end else for i, group in ipairs ( aAclData["groups"] ) do if ( group == clicked ) then if ( state == "-" ) then triggerServerEvent ( "aAdmin", localPlayer, "sync", "aclgroups" ) else triggerServerEvent ( "aAdmin", localPlayer, "sync", "aclobjects", clicked ) end return end end end end elseif ( source == aACLDropList ) then local row = guiGridListGetSelectedItem ( aACLDropList ) if ( row ~= -1 ) then local clicked = guiGridListGetItemText ( aACLDropList, row, 1 ) guiSetText ( aACLDropCurrent, clicked ) guiSetVisible ( aACLDropList, false ) end end end end function aClientACLClick ( button ) if ( source ~= aACLDropList ) then guiSetVisible ( aACLDropList, false ) end if ( button == "left" ) then if ( source == aACLExit ) then aACLClose ( false ) elseif ( source == aACLCreateGroup ) then aInputBox ( "Create ACL Group", "Enter group name:", "", "aclCreateGroup" ) elseif ( source == aACLCreateACL ) then aInputBox ( "Create ACL", "Enter acl name:", "", "aclCreate" ) elseif ( source == aACLAddObject ) then aInputBox ( "Create ACL Group", "Enter object name:", "", "aclAddObject", aAclData["current"] ) elseif ( source == aACLAddRight ) then aInputBox ( "Create ACL", "Enter right name:", "", "aclAddRight", aAclData["current"] ) elseif ( source == aACLDestroyGroup ) then aMessageBox ( "warning", "Are you sure to destroy "..aAclData["current"].." group?", "aclDestroyGroup", aAclData["current"]) elseif ( source == aACLDestroyACL ) then aMessageBox ( "warning", "Are you sure to destroy "..aAclData["current"].." ACL?", "aclDestroy", aAclData["current"]) elseif ( ( source == aACLRemoveObject ) or ( source == aACLAddACL ) or ( source == aACLRemoveACL ) ) then guiSetVisible ( aACLAddObject, false ) guiSetVisible ( aACLRemoveObject, false ) guiSetVisible ( aACLAddACL, false ) guiSetVisible ( aACLRemoveACL, false ) guiSetVisible ( aACLDropCurrent, true ) guiSetVisible ( aACLDropDown, true ) guiSetVisible ( aACLOk, true ) guiSetVisible ( aACLCancel, true ) guiSetVisible ( aACLActionLabel, true ) guiGridListClear ( aACLDropList ) local table = {} guiSetText ( aACLActionLabel, guiGetText ( source )..":" ) if ( source == aACLRemoveObject ) then table = aAclData["group_objects"][aAclData["current"]] elseif ( source == aACLAddACL ) then table = aAclData["acl"] elseif ( source == aACLRemoveACL ) then table = aAclData["group_acls"][aAclData["current"]] end if ( #table >= 1 ) then guiSetText ( aACLDropCurrent, table[1] ) end for id, object in ipairs ( table ) do guiGridListSetItemText ( aACLDropList, guiGridListAddRow ( aACLDropList ), 1, object, false, false ) end
-
انت تبي تضيف زر ولا تبي تقفل زر ولا وش الي تبيه كل شوي تجي بطلب اخر ؟ الازرار كلها اظن موجودة في هذا الملف client/gui/admin_main على ما اعتقد اقفل
-
ايه يمديكـ تقفل اي زر تبيه بس دور على اسمه وحط تحته guiSetEnabled(اسم الزر,false) بعدين تضيف الكود حق الكلينت تحت وتحط نفس اسم الزر ويفتح الزر بـ كوماند اي شيء تبيه هنا مو سكايب عشان غيركـ يتعلم ! طيب إذا ابي اضيف زر آحطه ب آي مسار ؟ ولا عآدي ب آي مسآر آو بمسار gui\admin_main.lua
-
آبدآع ي نآيف آن شآء الله تصير من كبآر المبرمجين سكربت قآدحح وآصصل و لاتحرمنا من جديدكك ,
-
اها فهمتكك ^ مو كذآ قصدي قصدي الي دآخل الاسل آلازرآر آلي بلاسل مثل الي اعطي رتب و آسحب رتب
-
كيف سيرفر ؟ ذي آلكودآت سوهآء . --[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_acl.lua * * Original File by lil_Toady * **************************************]] aAclForm = nil aAclData = {} function aManageACL () if ( aAclForm == nil ) then aAclData["group_objects"] = {} aAclData["group_acls"] = {} aAclData["acl_rights"] = {} local x, y = guiGetScreenSize() aAclForm = guiCreateWindow ( x / 2 - 230, y / 2 - 250, 460, 500, "ACL Management", false ) aACLList = guiCreateGridList ( 0.03, 0.05, 0.50, 0.90, true, aAclForm ) guiGridListSetSortingEnabled ( aACLList, false ) guiGridListAddColumn( aACLList, "", 0.10 ) guiGridListAddColumn( aACLList, "", 0.85 ) aACLCreateGroup = guiCreateButton ( 0.55, 0.05, 0.40, 0.04, "Create group", true, aAclForm ) aACLCreateACL = guiCreateButton ( 0.55, 0.10, 0.40, 0.04, "Create ACL", true, aAclForm ) aACLLabel = guiCreateLabel ( 0.55, 0.19, 0.40, 0.04, "", true, aAclForm ) aACLSeparator = guiCreateStaticImage ( 0.55, 0.235, 0.40, 0.0025, "client\\images\\dot.png", true, aAclForm ) aACLDestroyGroup = guiCreateButton ( 0.55, 0.25, 0.40, 0.04, "Destroy group", true, aAclForm ) aACLDestroyACL = guiCreateButton ( 0.55, 0.25, 0.40, 0.04, "Destroy ACL", true, aAclForm ) aACLAddObject = guiCreateButton ( 0.55, 0.30, 0.40, 0.04, "Add Object", true, aAclForm ) aACLRemoveObject = guiCreateButton ( 0.55, 0.35, 0.40, 0.04, "Remove Object", true, aAclForm ) aACLAddACL = guiCreateButton ( 0.55, 0.40, 0.40, 0.04, "Add ACL", true, aAclForm ) aACLRemoveACL = guiCreateButton ( 0.55, 0.45, 0.40, 0.04, "Remove ACL", true, aAclForm ) aACLActionLabel = guiCreateLabel ( 0.55, 0.31, 0.40, 0.04, "", true, aAclForm ) aACLDropCurrent = guiCreateEdit ( 0.55, 0.35, 0.40, 0.04, "", true, aAclForm ) guiSetEnabled ( aACLDropCurrent, false ) aACLDropDown = guiCreateStaticImage ( 0.91, 0.35, 0.04, 0.04, "client\\images\\dropdown.png", true, aAclForm ) aACLDropList = guiCreateGridList ( 0.55, 0.35, 0.40, 0.30, true, aAclForm ) guiGridListAddColumn( aACLDropList, "", 0.85 ) guiSetVisible ( aACLDropList, false ) aACLOk = guiCreateButton ( 0.55, 0.40, 0.19, 0.04, "Ok", true, aAclForm ) aACLCancel = guiCreateButton ( 0.76, 0.40, 0.19, 0.04, "Cancel", true, aAclForm ) aACLAddRight = guiCreateButton ( 0.55, 0.30, 0.40, 0.04, "Add Right", true, aAclForm ) aACLExit = guiCreateButton ( 0.75, 0.90, 0.27, 0.04, "Close", true, aAclForm ) aclDisplayOptions ( "", "" ) addEvent ( "aAdminACL", true ) addEventHandler ( "aAdminACL", getLocalPlayer(), aAdminACL ) addEventHandler ( "onClientGUIClick", aAclForm, aClientACLClick ) addEventHandler ( "onClientGUIDoubleClick", aAclForm, aClientACLDoubleClick ) --Register With Admin Form aRegister ( "ACLManage", aAclForm, aManageACL, aACLClose ) triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclgroups" ) end guiSetVisible ( aAclForm, true ) guiBringToFront ( aAclForm ) end function aACLClose ( destroy ) if ( ( destroy ) or ( aPerformanceACL and guiCheckBoxGetSelected ( aPerformanceACL ) ) ) then if ( aAclForm ) then removeEventHandler ( "onClientGUIClick", aAclForm, aClientACLClick ) removeEventHandler ( "onClientGUIDoubleClick", aAclForm, aClientACLDoubleClick ) destroyElement ( aAclForm ) aAclForm = nil end else guiSetVisible ( aAclForm, false ) end end function aAdminACL ( type, acltable ) guiGridListClear ( aACLList ) if ( type == "aclgroups" ) then aAclData["viewing"] = nil aAclData["group_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["group_row"], 2, "Groups:", true, false ) aAclData["groups"] = acltable["groups"] for id, name in ipairs ( acltable["groups"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end local row = guiGridListAddRow ( aACLList ) aAclData["acl_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["acl_row"], 2, "ACL:", true, false ) aAclData["acl"] = acltable["acl"] for id, name in ipairs ( acltable["acl"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end aclDisplayOptions ( "", "" ) elseif ( type == "aclobjects" ) then aAclData["group_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["group_row"], 2, "Groups:", true, false ) for i, group in ipairs ( aAclData["groups"] ) do local group_row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, group_row, 2, group, false, false ) if ( group == acltable["name"] ) then aclDisplayOptions ( "Group", acltable["name"] ) aAclData["objects_row"] = guiGridListAddRow ( aACLList ) aAclData["group_objects"][group] = acltable["objects"] guiGridListSetItemText ( aACLList, aAclData["objects_row"], 2, " objects:", true, false ) for j, object in ipairs ( acltable["objects"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 2, " "..object, false, false ) end aAclData["acls_row"] = guiGridListAddRow ( aACLList ) aAclData["group_acls"][group] = acltable["acl"] guiGridListSetItemText ( aACLList, aAclData["acls_row"], 2, " acl:", true, false ) for j, acl in ipairs ( acltable["acl"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 2, " "..acl, false, false ) end guiGridListSetItemText ( aACLList, group_row, 1, "-", false, false ) else guiGridListSetItemText ( aACLList, group_row, 1, "+", false, false ) end end aAclData["acl_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["acl_row"], 2, "ACL:", true, false ) for id, name in ipairs ( aAclData["acl"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end elseif ( type == "aclrights" ) then aAclData["viewing"] = "rights" aAclData["group_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["group_row"], 2, "Groups:", true, false ) for id, name in ipairs ( aAclData["groups"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end aAclData["acl_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["acl_row"], 2, "ACL:", true, false ) for i, acl in ipairs ( aAclData["acl"] ) do local acl_row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, acl_row, 2, acl, false, false ) if ( acl == acltable["name"] ) then aAclData["acl_rights"][acl] = acltable["rights"] aclDisplayOptions ( "ACL", acltable["name"] ) aAclData["rights_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["rights_row"], 2, " rights:", true, false ) for name, access in pairs ( acltable["rights"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 2, " "..name, false, false ) if guiGridListSetItemColor then guiGridListSetItemColor ( aACLList, row, 2, access and 0 or 255, access and 255 or 0, 0, 255) end end guiGridListSetItemText ( aACLList, acl_row, 1, "-", false, false ) else guiGridListSetItemText ( aACLList, acl_row, 1, "+", false, false ) end end end end function aClientACLDoubleClick ( button ) if ( button == "left" ) then if ( source == aACLList ) then local row = guiGridListGetSelectedItem ( aACLList ) if ( row ~= -1 ) then local clicked = guiGridListGetItemText ( aACLList, row, 2 ) local state = guiGridListGetItemText ( aACLList, row, 1 ) if ( row > aAclData["acl_row"] ) then for i, acl in ipairs ( aAclData["acl"] ) do if ( acl == clicked ) then if ( state == "-" ) then triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclgroups" ) else triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclrights", clicked ) end return end end else for i, group in ipairs ( aAclData["groups"] ) do if ( group == clicked ) then if ( state == "-" ) then triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclgroups" ) else triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclobjects", clicked ) end return end end end end elseif ( source == aACLDropList ) then local row = guiGridListGetSelectedItem ( aACLDropList ) if ( row ~= -1 ) then local clicked = guiGridListGetItemText ( aACLDropList, row, 1 ) guiSetText ( aACLDropCurrent, clicked ) guiSetVisible ( aACLDropList, false ) end end end end function aClientACLClick ( button ) if ( source ~= aACLDropList ) then guiSetVisible ( aACLDropList, false ) end if ( button == "left" ) then if ( source == aACLExit ) then aACLClose ( false ) elseif ( source == aACLCreateGroup ) then aInputBox ( "Create ACL Group", "Enter group name:", "", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"aclcreate\", \"group\", $value )" ) elseif ( source == aACLCreateACL ) then aInputBox ( "Create ACL", "Enter acl name:", "", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"aclcreate\", \"acl\", $value )" ) elseif ( source == aACLAddObject ) then aInputBox ( "Create ACL Group", "Enter object name:", "", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"acladd\", \"object\", \""..aAclData["current"].."\", $value )" ) elseif ( source == aACLAddRight ) then aInputBox ( "Create ACL", "Enter right name:", "", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"acladd\", \"right\", \""..aAclData["current"].."\", $value )" ) elseif ( source == aACLDestroyGroup ) then aMessageBox ( "warning", "Are you sure to destroy "..aAclData["current"].." group?", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"acldestroy\", \"group\", \""..aAclData["current"].."\" )" ) elseif ( source == aACLDestroyACL ) then aMessageBox ( "warning", "Are you sure to destroy "..aAclData["current"].." ACL?", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"acldestroy\", \"acl\", \""..aAclData["current"].."\" )" ) elseif ( ( source == aACLRemoveObject ) or ( source == aACLAddACL ) or ( source == aACLRemoveACL ) ) then guiSetVisible ( aACLAddObject, false ) guiSetVisible ( aACLRemoveObject, false ) guiSetVisible ( aACLAddACL, false ) guiSetVisible ( aACLRemoveACL, false ) guiSetVisible ( aACLDropCurrent, true ) guiSetVisible ( aACLDropDown, true ) guiSetVisible ( aACLOk, true ) guiSetVisible ( aACLCancel, true ) guiSetVisible ( aACLActionLabel, true ) guiGridListClear ( aACLDropList ) local table = {} guiSetText ( aACLActionLabel, guiGetText ( source )..":" ) if ( source == aACLRemoveObject ) then table = aAclData["group_objects"][aAclData["current"]] elseif ( source == aACLAddACL ) then table = aAclData["acl"] elseif ( source == aACLRemoveACL ) then table = aAclData["group_acls"][aAclData["current"]] end if ( #table >= 1 ) then guiSetText ( aACLDropCurrent, table[1] ) end for id, object in ipairs ( table ) do guiGridListSetItemText ( aACLDropList, guiGridListAddRow ( aACLDropList ), 1, object, false, false ) end elseif ( source == aACLDropDown ) then guiSetVisible ( aACLDropList, true ) guiBringToFront ( aACLDropList ) elseif ( source == aACLCancel ) then aclDisplayOptions ( aAclData["viewing"], aAclData["current"] ) elseif ( source == aACLOk ) then local action = guiGetText ( aACLActionLabel ) if ( action == "Remove Object:" ) then