aL.Kfo Posted October 6, 2013 Share Posted October 6, 2013 مرحبا شباب سويت لوحه بمود guieditor ابي اركب زر خروج و الخ يالت الكود مع توضيح و الكود ذا شغال ولا if (source == GUIEditor_Button[3]) then guiSetVisible(GUIEditor_Window[1], false) showCursor( false ) end end Link to comment
iPrestege Posted October 6, 2013 Share Posted October 6, 2013 addEventHandler ( 'onClientGUIClick',GUIEditor_Button[3], function ( ) if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1] , false ) end end,false ) Link to comment
aL.Kfo Posted October 7, 2013 Author Share Posted October 7, 2013 addEventHandler ( 'onClientGUIClick',GUIEditor_Button[3], function ( ) if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1] , false ) end end,false ) كيف استعمل الكود ذا يعني الحين بركبه في نافذه كيف ب الضبط Link to comment
Stranger Posted October 7, 2013 Share Posted October 7, 2013 (edited) addEventHandler ( 'onClientGUIClick',GUIEditor_Button[3], function ( ) if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1] , false ) end end,false ) كيف استعمل الكود ذا يعني الحين بركبه في نافذه كيف ب الضبط حط الكود ذا addEventHandler ( 'onClientGUIClick',GUIEditor_Button[3], function ( ) if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1] , false ) showCursor(false) end end,false ) تحت النافذه حقتك Edited October 7, 2013 by Guest Link to comment
فاّرس Posted October 7, 2013 Share Posted October 7, 2013 حطه في اي مكان يعجبك ذذ addEventHandler ( 'onClientGUIClick',GUIEditor_Button[3], function ( ) if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1] , false ) end end,false ) + showCursor Link to comment
aL.Kfo Posted October 7, 2013 Author Share Posted October 7, 2013 شباب انا فاهمكم بس الحين ركبت الكود من قبل طرح الموضوع بس م يضبط الحين الكود الاي نزله برستيج وين اكتب فيه اسم الزر عشان تقفل الوحه لا ضغطته الاكواد الوحه مع كود الخروج GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(257, 120, 262, 91, "1111", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(133, 39, 116, 33, "الغاء", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 39, 116, 33, "اختيار", false, GUIEditor.window[1]) end ) marker = createMarker ( 2458.7270507813,-1668.0413818359,13.479907989502, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if player == localPlayer then showCursor(true) guiSetVisible(GUIEditor.window[1],true) end end ) addEventHandler ( 'onClientGUIClick',GUIEditor_Button[3], function ( ) if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1] , false ) end end,false ) م ابي تعديل ع الكود ابي احد يفهمني كيف اعدله لين ذي لوحه تجريبيه بس مني محتاجها Link to comment
AboShanab Posted October 7, 2013 Share Posted October 7, 2013 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(257, 120, 262, 91, "1111", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(133, 39, 116, 33, "الغاء", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 39, 116, 33, "اختيار", false, GUIEditor.window[1]) end ) marker = createMarker ( 2458.7270507813,-1668.0413818359,13.479907989502, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if player == localPlayer then showCursor(true) guiSetVisible(GUIEditor.window[1],true) end end ) addEventHandler ( 'onClientGUIClick',GUIEditor.button[1], function ( ) if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1] , false ) showCursor(false) end end,false ) Link to comment
aL.Kfo Posted October 7, 2013 Author Share Posted October 7, 2013 GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(257, 120, 262, 91, "1111", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(133, 39, 116, 33, "الغاء", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 39, 116, 33, "اختيار", false, GUIEditor.window[1]) end ) marker = createMarker ( 2458.7270507813,-1668.0413818359,13.479907989502, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if player == localPlayer then showCursor(true) guiSetVisible(GUIEditor.window[1],true) end end ) addEventHandler ( 'onClientGUIClick',GUIEditor.button[1], function ( ) if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1] , false ) showCursor(false) end end,false ) م ضبط اضغط ع الزر م يقفل بس ي ليت تشرح الطريقه ووين اجط اسم الزر و الخ Link to comment
iMr.Dawix~# Posted October 7, 2013 Share Posted October 7, 2013 GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(257, 120, 262, 91, "1111", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(133, 39, 116, 33, "الغاء", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 39, 116, 33, "اختيار", false, GUIEditor.window[1]) marker = createMarker ( 2458.7270507813,-1668.0413818359,13.479907989502, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if player == localPlayer then showCursor(true) guiSetVisible(GUIEditor.window[1],true) end end ) addEventHandler ( 'onClientGUIClick',GUIEditor.button[1] ,---GUIEditor.button[1] = اسم الزر حقك function () if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible(GUIEditor.window[1],false) showCursor(guiGetVisible(GUIEditor.window[1])) end end,false ) Link to comment
aL.Kfo Posted October 7, 2013 Author Share Posted October 7, 2013 GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(257, 120, 262, 91, "1111", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(133, 39, 116, 33, "الغاء", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 39, 116, 33, "اختيار", false, GUIEditor.window[1]) marker = createMarker ( 2458.7270507813,-1668.0413818359,13.479907989502, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if player == localPlayer then showCursor(true) guiSetVisible(GUIEditor.window[1],true) end end ) addEventHandler ( 'onClientGUIClick',GUIEditor.button[1] ,---GUIEditor.button[1] = اسم الزر حقك function () if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible(GUIEditor.window[1],false) showCursor(guiGetVisible(GUIEditor.window[1])) end end,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