Jump to content

طلب فنكشن , نآفذة تفتح للرتبة معينة *


a7zan

Recommended Posts

السسلام عليكم ورحمة الله وبركآته

, شباب ابي فنكشن

توضيح

معي مود الانتقآلات ويفتح بآف9 .. ابيه يفتح ع رتبة معينة + ويفتح بكلمة اكتبهآ في اف8 ذذ

:|

Link to comment

سيرفر

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

معي مود الانتقآلات , وابي احطه للرتب مععينة .. وكلمة عشآن افتحهه

حطيت الرتبة وضفت نفسسي بالرتبة ( الاسل )ء ’ وماضبط

اكتب الكلمة برضو مانفع ,

سيرفر

  
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

كلنت

  
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
كلنت

  
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...