Jump to content

يغلق الموضوع


EdeN

Recommended Posts

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

المشكله

هي ان يفتح المود لمن حد يدخل السيرفر وانا

ابي النافذ ينفتح من زر محدد

مع اني استخدمت وحطيت اسم النافذ

bindKey ( "F6", "down", function (   ) 
    guiSetVisible ( wnd, not guiGetVisible( wnd ) ) 
    showCursor( guiGetVisible( wnd ) ) 
end )  

  
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(437, 101, 439, 556, "مود تغير الوقت", false) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.label[1] = guiCreateLabel(0, 30, 439, 186, "SetTime", false, wnd) 
        guiSetFont(GUIEditor.label[1], "sa-header") 
        guiLabelSetColor(GUIEditor.label[1], 254, 254, 254) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
  
        GUIEditor.label[2] = guiCreateLabel(10, -10, 85, 28, "V1.0", false, GUIEditor.label[1]) 
        guiLabelSetVerticalAlign(GUIEditor.label[2], "center") 
  
        GUIEditor.label[3] = guiCreateLabel(38, 121, 437, 38, "By : #iiMOody", false, wnd) 
        guiSetFont(GUIEditor.label[3], "default-bold-small") 
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[3], "center") 
        GUIEditor.button[1] = guiCreateButton(9, 285, 420, 46, "10 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[2] = guiCreateButton(9, 354, 420, 46, "15 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[3] = guiCreateButton(11, 423, 419, 46, "20 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[4] = guiCreateButton(9, 493, 420, 46, "00 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[5] = guiCreateButton(10, 216, 420, 46, "05 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
  
  addEventHandler('onClientGUIClick', root,  
   function ( )  
    if ( source == GUIEditor.button[1] ) then  
    triggerServerEvent('M1', localPlayer)  
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root,  
   function ( )  
    if ( source == GUIEditor.button[2] ) then  
    triggerServerEvent('M2', localPlayer)  
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root,  
   function ( )  
    if ( source == GUIEditor.button[3] ) then  
    triggerServerEvent('M3', localPlayer)  
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root,  
   function ( )  
    if ( source == GUIEditor.button[4] ) then  
    triggerServerEvent('M4', localPlayer)  
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root,  
   function ( )  
    if ( source == GUIEditor.button[5] ) then  
    triggerServerEvent('M5', localPlayer)  
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  
  
bindKey ( "F6", "down", function (   ) 
    guiSetVisible ( wnd, not guiGetVisible( wnd ) ) 
    showCursor( guiGetVisible( wnd ) ) 
end )   
  

Edited by Guest
Link to comment
  
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(437, 101, 439, 556, "مود تغير الوقت", false) 
        guiSetVisible ( wnd, false ) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.label[1] = guiCreateLabel(0, 30, 439, 186, "SetTime", false, wnd) 
        guiSetFont(GUIEditor.label[1], "sa-header") 
        guiLabelSetColor(GUIEditor.label[1], 254, 254, 254) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
  
        GUIEditor.label[2] = guiCreateLabel(10, -10, 85, 28, "V1.0", false, GUIEditor.label[1]) 
        guiLabelSetVerticalAlign(GUIEditor.label[2], "center") 
  
        GUIEditor.label[3] = guiCreateLabel(38, 121, 437, 38, "By : #iiMOody", false, wnd) 
        guiSetFont(GUIEditor.label[3], "default-bold-small") 
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[3], "center") 
        GUIEditor.button[1] = guiCreateButton(9, 285, 420, 46, "10 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[2] = guiCreateButton(9, 354, 420, 46, "15 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[3] = guiCreateButton(11, 423, 419, 46, "20 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[4] = guiCreateButton(9, 493, 420, 46, "00 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[5] = guiCreateButton(10, 216, 420, 46, "05 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[1] ) then 
    triggerServerEvent('M1', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[2] ) then 
    triggerServerEvent('M2', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[3] ) then 
    triggerServerEvent('M3', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[4] ) then 
    triggerServerEvent('M4', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[5] ) then 
    triggerServerEvent('M5', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  
  
bindKey ( "F6", "down", function (   ) 
    guiSetVisible ( wnd, not guiGetVisible( wnd ) ) 
    showCursor( guiGetVisible( wnd ) ) 
end )   
  

Link to comment
  
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(437, 101, 439, 556, "مود تغير الوقت", false) 
        guiSetVisible ( wnd, false ) 
        guiWindowSetSizable(wnd, false) 
  
        GUIEditor.label[1] = guiCreateLabel(0, 30, 439, 186, "SetTime", false, wnd) 
        guiSetFont(GUIEditor.label[1], "sa-header") 
        guiLabelSetColor(GUIEditor.label[1], 254, 254, 254) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
  
        GUIEditor.label[2] = guiCreateLabel(10, -10, 85, 28, "V1.0", false, GUIEditor.label[1]) 
        guiLabelSetVerticalAlign(GUIEditor.label[2], "center") 
  
        GUIEditor.label[3] = guiCreateLabel(38, 121, 437, 38, "By : #iiMOody", false, wnd) 
        guiSetFont(GUIEditor.label[3], "default-bold-small") 
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[3], "center") 
        GUIEditor.button[1] = guiCreateButton(9, 285, 420, 46, "10 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[2] = guiCreateButton(9, 354, 420, 46, "15 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[3] = guiCreateButton(11, 423, 419, 46, "20 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[4] = guiCreateButton(9, 493, 420, 46, "00 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.button[5] = guiCreateButton(10, 216, 420, 46, "05 : 00", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[1] ) then 
    triggerServerEvent('M1', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[2] ) then 
    triggerServerEvent('M2', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[3] ) then 
    triggerServerEvent('M3', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[4] ) then 
    triggerServerEvent('M4', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == GUIEditor.button[5] ) then 
    triggerServerEvent('M5', localPlayer) 
   end -- اغلاق 
end -- اغلاق 
) -- اغلاق 
  
  
  
bindKey ( "F6", "down", function (   ) 
    guiSetVisible ( wnd, not guiGetVisible( wnd ) ) 
    showCursor( guiGetVisible( wnd ) ) 
end )   
  

شكرآ ضبط

ممكن تشرح حل المشكله :fadein:

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...