a7zan Posted March 27, 2015 Share Posted March 27, 2015 السسلام عليكم ورحمة الله وبركآته , شباب ابي فنكشن توضيح معي مود الانتقآلات ويفتح بآف9 .. ابيه يفتح ع رتبة معينة + ويفتح بكلمة اكتبهآ في اف8 ذذ Link to comment
xAbO-d7mY Posted March 27, 2015 Share Posted March 27, 2015 أستخدم : addCommandHandler isObjectInACLGroup Link to comment
TAPL Posted March 27, 2015 Share Posted March 27, 2015 + تريقر للكلينت عشان يفتح النافذه triggerClientEvent -- guiSetVisible showCursor Link to comment
xAbO-d7mY Posted March 27, 2015 Share Posted March 27, 2015 + تريقر للكلينت عشان يفتح النافذه triggerClientEvent -- guiSetVisible showCursor +1 Link to comment
shwaeki Posted March 28, 2015 Share Posted March 28, 2015 viewtopic.php?f=160&t=78218&p=716695&hilit=%D8%AA%D9%81%D8%AA%D8%AD+%D9%84%D8%B1%D8%AA%D8%A8%D8%A9#p716695 Link to comment
yazan Posted March 28, 2015 Share Posted March 28, 2015 سيرفر function win(Player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)),aclGetGroup("admin")) then triggerClientEvent(Player,"wiin",Player) end end addCommandHandler ( "openwin", win ) كلنت bindKey("f3","down", function () guiSetVisible(winr,not guiGetVisible(winr)) showCursor(guiGetVisible(winr)) end) addEvent("wiin",true) addEventHandler("wiin",root, function() guiSetVisible(winr,not guiGetVisible(winr)) showCursor(guiGetVisible(winr)) end) Link to comment
TAPL Posted March 28, 2015 Share Posted March 28, 2015 ^ bindKey("f3","down", "openwin") addEvent("wiin",true) addEventHandler("wiin",root, function() guiSetVisible(winr,not guiGetVisible(winr)) showCursor(guiGetVisible(winr)) end) Link to comment
a7zan Posted March 28, 2015 Author Share Posted March 28, 2015 ما ضبط إبيه لما اكتب بآف8 امر تفتح مثلا lol تفتح اللوحة Link to comment
a7zan Posted March 28, 2015 Author Share Posted March 28, 2015 معي مود الانتقآلات , وابي احطه للرتب مععينة .. وكلمة عشآن افتحهه حطيت الرتبة وضفت نفسسي بالرتبة ( الاسل )ء ’ وماضبط اكتب الكلمة برضو مانفع , سيرفر function win(Player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)),aclGetGroup("Control-panel")) then triggerClientEvent(Player,"wiin",Player) end end addCommandHandler ( "openwin", win ) كلينت function guiCreateWindow(x,y,w,h,text,re) local mahmoud = guiCreateStaticImage(451, 165, 321, 493, "kkk.png", false) local lable = guiCreateLabel(0,0,1,0.1,text,re,mahmoud) guiLabelSetHorizontalAlign(lable,"center") return mahmoud end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end MKAN = { {"البدآيه",-3588.9348144531, -2443.4426269531, 13.792187690735}, {"مقر الجيش",146.66674804688, 1720, 17.640625}, {"الفنادق",-1739.0821533203, 940.56231689453, 24.7421875}, {"الشارع الطويل",-3072.5554199219,-3000.345703125,5}, {"المرقص",2491.12109375, -1667.4482421875, 13.34375}, {"السد الكبير",-887.02734375, 2000.9217529297, 60.654315948486}, {"الدائري",1804.5352783203, 898.34112548828, 9.5181922912598}, {"شارع النخيل",2068.1389160156, 1008.2157592773, 10.671875}, {"شارع الفروسيه",2878.1115722656, -1110.029296875, 10.882762908936}, {"شارع الغروب",662.55310058594, 1936.7479248047, 5.5052728652954}, {"ساحه التفجير",-2051.4926757813, -173.29304504395, 35.3203125}, {"ساحه القتال",-3580.9216308594, -3513.0236816406, 14}, {"المطار الآول",1910.2202148438 ,-2424.197265625 ,13.53911781311}, {"المطار الثاني",-1276.6853027344 ,-186.40019226074 ,14.1484375}, {"المطار الثالث",1318.4997558594 ,1258.8698730469 ,10.8203125}, {"القفزه الخونفشاريه",1550.75757, -1353.83826, 1710.24084}, {"ســرقــة الـبـنـك",593.50756835938,-1242.6812744141,18.018035888672}, {"الطعس",-2794.9343261719,-3245.7248535156 , 26.802633285522}, } mahmoud = guiCreateWindow(486, 193, 319, 385, "لوحة الأنتقالات المطورهـ", true) guiWindowSetSizable(mahmoud,false) guiSetVisible(mahmoud,false) centerWindow(mahmoud) guiSetProperty(mahmoud,"CaptionColour","ffffff00") grid = guiCreateGridList(2, 20, 260, 468, false, mahmoud) guiGridListSetSelectionMode(grid,1) guiGridListAddColumn(grid,"المكان",0.9) move = guiCreateButton(261, 20, 55, 468, "أنتقال", false, mahmoud) guiSetFont(move,"clear-normal") guiSetProperty(move,"NormalTextColour","ff00ff00") bindKey("F2","down", "openwin") addEvent("wiin",true) addEventHandler("wiin",root, function() guiSetVisible(winr,not guiGetVisible(winr)) showCursor(guiGetVisible(winr)) end) for i,mk in ipairs(MKAN) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,mk[1],false,false) guiGridListSetItemData(grid,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(grid,row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler("onClientGUIClick",root, function () local sel = guiGridListGetSelectedItem(grid) if source == move then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(grid,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("* رجاءً اختر مكان للأنتقال له",255,0,0) end end end ) Link to comment
shwaeki Posted March 28, 2015 Share Posted March 28, 2015 كلنت function guiCreateWindow(x,y,w,h,text,re) local mahmoud = guiCreateStaticImage(451, 165, 321, 493, "kkk.png", false) local lable = guiCreateLabel(0,0,1,0.1,text,re,mahmoud) guiLabelSetHorizontalAlign(lable,"center") return mahmoud end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end MKAN = { {"البدآيه",-3588.9348144531, -2443.4426269531, 13.792187690735}, {"مقر الجيش",146.66674804688, 1720, 17.640625}, {"الفنادق",-1739.0821533203, 940.56231689453, 24.7421875}, {"الشارع الطويل",-3072.5554199219,-3000.345703125,5}, {"المرقص",2491.12109375, -1667.4482421875, 13.34375}, {"السد الكبير",-887.02734375, 2000.9217529297, 60.654315948486}, {"الدائري",1804.5352783203, 898.34112548828, 9.5181922912598}, {"شارع النخيل",2068.1389160156, 1008.2157592773, 10.671875}, {"شارع الفروسيه",2878.1115722656, -1110.029296875, 10.882762908936}, {"شارع الغروب",662.55310058594, 1936.7479248047, 5.5052728652954}, {"ساحه التفجير",-2051.4926757813, -173.29304504395, 35.3203125}, {"ساحه القتال",-3580.9216308594, -3513.0236816406, 14}, {"المطار الآول",1910.2202148438 ,-2424.197265625 ,13.53911781311}, {"المطار الثاني",-1276.6853027344 ,-186.40019226074 ,14.1484375}, {"المطار الثالث",1318.4997558594 ,1258.8698730469 ,10.8203125}, {"القفزه الخونفشاريه",1550.75757, -1353.83826, 1710.24084}, {"ســرقــة الـبـنـك",593.50756835938,-1242.6812744141,18.018035888672}, {"الطعس",-2794.9343261719,-3245.7248535156 , 26.802633285522}, } mahmoud = guiCreateWindow(486, 193, 319, 385, "لوحة الأنتقالات المطورهـ", false) guiSetVisible(mahmoud,false) centerWindow(mahmoud) guiSetProperty(mahmoud,"CaptionColour","ffffff00") grid = guiCreateGridList(2, 20, 260, 468, false, mahmoud) guiGridListSetSelectionMode(grid,1) guiGridListAddColumn(grid,"المكان",0.9) move = guiCreateButton(261, 20, 55, 468, "أنتقال", false, mahmoud) guiSetFont(move,"clear-normal") guiSetProperty(move,"NormalTextColour","ff00ff00") bindKey("F2","down", "openwin") addEvent("wiin",true) addEventHandler("wiin",root, function() guiSetVisible(mahmoud,not guiGetVisible(mahmoud)) showCursor(guiGetVisible(mahmoud)) end) for i,mk in ipairs(MKAN) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,mk[1],false,false) guiGridListSetItemData(grid,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(grid,row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler("onClientGUIClick",root, function () local sel = guiGridListGetSelectedItem(grid) if source == move then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(grid,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("* رجاءً اختر مكان للأنتقال له",255,0,0) end end end ) سيرفر function win(Player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)),aclGetGroup("Control-panel")) then triggerClientEvent(Player,"wiin",Player) end end addCommandHandler ( "openwin", win ) موجودة kkk.png تاكد انه الصورة Link to comment
a7zan Posted March 28, 2015 Author Share Posted March 28, 2015 الله يعطيك العآفيةة , المود ضبط Link to comment
yazan Posted March 28, 2015 Share Posted March 28, 2015 كلنت function guiCreateWindow(x,y,w,h,text,re) local mahmoud = guiCreateStaticImage(451, 165, 321, 493, "kkk.png", false) local lable = guiCreateLabel(0,0,1,0.1,text,re,mahmoud) guiLabelSetHorizontalAlign(lable,"center") return mahmoud end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end MKAN = { {"البدآيه",-3588.9348144531, -2443.4426269531, 13.792187690735}, {"مقر الجيش",146.66674804688, 1720, 17.640625}, {"الفنادق",-1739.0821533203, 940.56231689453, 24.7421875}, {"الشارع الطويل",-3072.5554199219,-3000.345703125,5}, {"المرقص",2491.12109375, -1667.4482421875, 13.34375}, {"السد الكبير",-887.02734375, 2000.9217529297, 60.654315948486}, {"الدائري",1804.5352783203, 898.34112548828, 9.5181922912598}, {"شارع النخيل",2068.1389160156, 1008.2157592773, 10.671875}, {"شارع الفروسيه",2878.1115722656, -1110.029296875, 10.882762908936}, {"شارع الغروب",662.55310058594, 1936.7479248047, 5.5052728652954}, {"ساحه التفجير",-2051.4926757813, -173.29304504395, 35.3203125}, {"ساحه القتال",-3580.9216308594, -3513.0236816406, 14}, {"المطار الآول",1910.2202148438 ,-2424.197265625 ,13.53911781311}, {"المطار الثاني",-1276.6853027344 ,-186.40019226074 ,14.1484375}, {"المطار الثالث",1318.4997558594 ,1258.8698730469 ,10.8203125}, {"القفزه الخونفشاريه",1550.75757, -1353.83826, 1710.24084}, {"ســرقــة الـبـنـك",593.50756835938,-1242.6812744141,18.018035888672}, {"الطعس",-2794.9343261719,-3245.7248535156 , 26.802633285522}, } mahmoud = guiCreateWindow(486, 193, 319, 385, "لوحة الأنتقالات المطورهـ", false) guiSetVisible(mahmoud,false) centerWindow(mahmoud) guiSetProperty(mahmoud,"CaptionColour","ffffff00") grid = guiCreateGridList(2, 20, 260, 468, false, mahmoud) guiGridListSetSelectionMode(grid,1) guiGridListAddColumn(grid,"المكان",0.9) move = guiCreateButton(261, 20, 55, 468, "أنتقال", false, mahmoud) guiSetFont(move,"clear-normal") guiSetProperty(move,"NormalTextColour","ff00ff00") bindKey("F2","down", "openwin") addEvent("wiin",true) addEventHandler("wiin",root, function() guiSetVisible(mahmoud,not guiGetVisible(mahmoud)) showCursor(guiGetVisible(mahmoud)) end) for i,mk in ipairs(MKAN) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,mk[1],false,false) guiGridListSetItemData(grid,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(grid,row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler("onClientGUIClick",root, function () local sel = guiGridListGetSelectedItem(grid) if source == move then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(grid,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("* رجاءً اختر مكان للأنتقال له",255,0,0) end end end ) سيرفر function win(Player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(Player)),aclGetGroup("Control-panel")) then triggerClientEvent(Player,"wiin",Player) end end addCommandHandler ( "openwin", win ) موجودة kkk.png تاكد انه الصورة الكود يلي طرحته صح بس ما غير اسم النافذه Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now