AhmeD~9MoD Posted July 18, 2013 Share Posted July 18, 2013 السلام عليكم مبارك عليكم الشهر .. وكل سنة وانتم بألف خير الكود GUIEditor = { window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1]) end ) GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1]) end ) addEventHandler("onClientPlayerJoin", getRootElement(), function () guiSetVisible ( GUIEditor.window[1], true ) showCursor (true ) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[1] then guiSetVisible ( GUIEditor.window[1], false ) showCursor (false ) end end) وتحياتي Link to comment
iPrestege Posted July 18, 2013 Share Posted July 18, 2013 GUIEditor = { window = {}, staticimage = {} } function LoadGUI ( ) GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1]) addEventHandler('onClientGUIClick',GUIEditor.button[1],HideGUI,false) end addEventHandler('onClientResourceStart',resourceRoot, function ( ) LoadGUI ( ) end ) function HideGUI ( ) if isElement ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1],false ) showCursor ( false ) end end Link to comment
#DRAGON!FIRE Posted July 18, 2013 Share Posted July 18, 2013 GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1]) addEventHandler( "onClientResourceStart", resourceRoot, function( ) guiSetVisible (GUIEditor.window[1],true) showCursor(true) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[1] then guiSetVisible (GUIEditor.window[1],false) showCursor (false) end end) Link to comment
AhmeD~9MoD Posted July 18, 2013 Author Share Posted July 18, 2013 انا ابغى لما يدخل اللاعب تظهر اللوحة ولما يضغط على زر اغلاق تختفي والي يلعببون ماتطلع لهم يعني بس الي يدخل Link to comment
iPrestege Posted July 18, 2013 Share Posted July 18, 2013 GUIEditor = { window = {}, staticimage = {} } function LoadGUI ( ) GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1]) addEventHandler('onClientGUIClick',GUIEditor.button[1],HideGUI,false) end addEventHandler('onClientResourceStart',resourceRoot, function ( ) LoadGUI ( ) end ) function HideGUI ( ) if isElement ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1],false ) showCursor ( false ) end end Link to comment
AhmeD~9MoD Posted July 18, 2013 Author Share Posted July 18, 2013 GUIEditor = { window = {}, staticimage = {} } function LoadGUI ( ) GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1]) addEventHandler('onClientGUIClick',GUIEditor.button[1],HideGUI,false) end addEventHandler('onClientResourceStart',resourceRoot, function ( ) LoadGUI ( ) end ) function HideGUI ( ) if isElement ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1],false ) showCursor ( false ) end end تظهر اللوحة اول ما اشغل المود .......... وما تختفي من الزر .. Link to comment
فاّرس Posted July 18, 2013 Share Posted July 18, 2013 onClientResourceStart اول ما يدخل لول , ما تقدر لأنه لازم يخلص التحميل لأن كود النافذه فـ لازم Link to comment
yazan Posted July 18, 2013 Share Posted July 18, 2013 GUIEditor_Window = {} GUIEditor.staticimage = {} GUIEditor.button = {} GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1]) addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible(GUIEditor_Window[1],false) showCursor (false) end end) Link to comment
K1NG Posted July 18, 2013 Share Posted July 18, 2013 ^ مدري ليه معقدينها ._." -- Client Side # GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(100, 107, 586, 276, "welcome to mtabh server ", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 567, 247, "1.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(4, 229, 69, 18, "اغلاق", false, GUIEditor.staticimage[1]) addEventHandler ( "onClientGUIClick", GUIEditor.button[1], HideGUI, false ) function HideGUI ( ) guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) end 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