EdeN Posted August 25, 2014 Share Posted August 25, 2014 (edited) السلام عليكم ورحمة الله وبركاتهه المشكله هي ان يفتح المود لمن حد يدخل السيرفر وانا ابي النافذ ينفتح من زر محدد مع اني استخدمت وحطيت اسم النافذ 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 August 25, 2014 by Guest Link to comment
shwaeki Posted August 25, 2014 Share Posted August 25, 2014 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
EdeN Posted August 25, 2014 Author Share Posted August 25, 2014 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
shwaeki Posted August 25, 2014 Share Posted August 25, 2014 عفوا بس ضفت هاد guiSetVisible ( wnd, false ) Link to comment
EdeN Posted August 25, 2014 Author Share Posted August 25, 2014 عفوابس ضفت هاد guiSetVisible ( wnd, false ) اها شكرآآ يغلق الموضوع 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