Professional Posted June 29, 2015 Share Posted June 29, 2015 السلام عليكم شباب الكود النافذه فيه ما تفتح ممكن حل لان جنني GUIEditor = { button = {} } function GUI() GUIEditor.button[1] = guiCreateButton(231, 240, 143, 65, "onsound", false) GUIEditor.button[2] = guiCreateButton(390, 241, 143, 65, "offsound", false) end local sx,sy = guiGetScreenSize() function Dx() dxDrawRectangle(sx*0.3413,sy*0.3550,sx*0.3137,sy*0.2667) dxDrawLine(222 - 1, 164 - 1, 222 - 1, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 164 - 1, 222 - 1, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(222 - 1, 376, 545, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 376, 545, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(222, 164, 323, 212, tocolor(10, 244, 231, 171), false) dxDrawLine(232 - 1, 240 - 1, 232 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 240 - 1, 232 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(232 - 1, 306, 373, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 306, 373, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(232, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawLine(391 - 1, 240 - 1, 391 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 240 - 1, 391 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(391 - 1, 306, 532, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 306, 532, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(391, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawText("αυ∂ισ ρℓαувα¢к", 230, 239, 373, 305, tocolor(120, 11, 242, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Extinguish sound", 390, 239, 531, 307, tocolor(247, 39, 5, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(220, 207, 543, 208, tocolor(255, 255, 255, 255), 1, false) dxDrawText("To play the sound Put option on αυ∂ισ ρℓαувα¢к", 222, 164, 546, 185, tocolor(144, 233, 18, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("To reduce the sound Put Option Extinguish sound", 223, 185, 547, 206, tocolor(247, 39, 5, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawLine(223 - 1, 339 - 1, 223 - 1, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 339 - 1, 223 - 1, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(223 - 1, 375, 545, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 375, 545, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(223, 339, 322, 36, tocolor(144, 233, 18, 171), false) dxDrawText("Mod Sound By ~ Mr.Hassan", 222, 337, 544, 375, tocolor(19, 14, 236, 171), 1.00, "pricedown", "left", "top", false, false, false, false, false) end ------------------------------------- addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[1] then setSoundPaused(theSound, true) elseif source == GUIEditor.button[2] then setSoundPaused(theSound, false) end end ) ------------------------------ local opened = false bindKey ( "F4", "down", function () if opened == false then opened = true addEventHandler("onClientRender",root,Dx) showCursor(true) guiSetAlpha(GUIEditor.button[1], 1) guiSetAlpha(GUIEditor.button[2], 1) else opened = false removeEventHandler("onClientRender",root,Dx) showCursor(false) guiSetAlpha(GUIEditor.button[1], 0) guiSetAlpha(GUIEditor.button[2], 0) end end) Link to comment
i S6O Posted June 29, 2015 Share Posted June 29, 2015 Not Tested I think work 100%. local opened = false local sx,sy = guiGetScreenSize() GUI = { button = {}, } GUI.button[1] = guiCreateButton(231, 240, 143, 65, "onsound", false) GUI.button[2] = guiCreateButton(390, 241, 143, 65, "offsound", false) function Dx() dxDrawRectangle(sx*0.3413,sy*0.3550,sx*0.3137,sy*0.2667) dxDrawLine(222 - 1, 164 - 1, 222 - 1, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 164 - 1, 222 - 1, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(222 - 1, 376, 545, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 376, 545, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(222, 164, 323, 212, tocolor(10, 244, 231, 171), false) dxDrawLine(232 - 1, 240 - 1, 232 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 240 - 1, 232 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(232 - 1, 306, 373, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 306, 373, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(232, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawLine(391 - 1, 240 - 1, 391 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 240 - 1, 391 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(391 - 1, 306, 532, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 306, 532, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(391, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawText("αυ∂ισ ρℓαувα¢к", 230, 239, 373, 305, tocolor(120, 11, 242, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Extinguish sound", 390, 239, 531, 307, tocolor(247, 39, 5, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(220, 207, 543, 208, tocolor(255, 255, 255, 255), 1, false) dxDrawText("To play the sound Put option on αυ∂ισ ρℓαувα¢к", 222, 164, 546, 185, tocolor(144, 233, 18, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("To reduce the sound Put Option Extinguish sound", 223, 185, 547, 206, tocolor(247, 39, 5, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawLine(223 - 1, 339 - 1, 223 - 1, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 339 - 1, 223 - 1, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(223 - 1, 375, 545, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 375, 545, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(223, 339, 322, 36, tocolor(144, 233, 18, 171), false) dxDrawText("Mod Sound By ~ Mr.Hassan", 222, 337, 544, 375, tocolor(19, 14, 236, 171), 1.00, "pricedown", "left", "top", false, false, false, false, false) end addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUI.button[1] then setSoundPaused(theSound, true) elseif source == GUI.button[2] then setSoundPaused(theSound, false) end end ) bindKey ( "F4", "down", function () if opened then opened = false removeEventHandler ( "onClientRender",root,Dx ) showCursor ( false ) guiSetVisible( GUI.button[1], false ) guiSetVisible( GUI.button[2], false ) else opened = true addEventHandler ( "onClientRender",root,Dx ) showCursor ( true ) guiSetVisible( GUI.buttton[1], true ) guiSetVisible( GUI.buttton[2], true ) end end ) Link to comment
Professional Posted June 29, 2015 Author Share Posted June 29, 2015 ميقول شيئ بس ان الزر ما يفتح Link to comment
[iMr]-W[i]Fi,.! Posted June 29, 2015 Share Posted June 29, 2015 يعني لو ضغطت F4 ما ينفتح اللوحه ؟ Link to comment
i S6O Posted June 29, 2015 Share Posted June 29, 2015 اطرح كودك كامل + الميتا نشوف الاخطاء Link to comment
i S6O Posted June 29, 2015 Share Posted June 29, 2015 Tested work 100% جربته شغال local opened = false local sx,sy = guiGetScreenSize() GUI = { button = {}, } GUI.button[1] = guiCreateButton(231, 240, 143, 65, "onsound", false) GUI.button[2] = guiCreateButton(390, 241, 143, 65, "offsound", false) guiSetVisible ( GUI.button[1], false ) guiSetVisible ( GUI.button[2], false ) guiSetAlpha( GUI.button[1],0.00 ) guiSetAlpha( GUI.button[2],0.00 ) function Dx() dxDrawRectangle(sx*0.3413,sy*0.3550,sx*0.3137,sy*0.2667) dxDrawLine(222 - 1, 164 - 1, 222 - 1, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 164 - 1, 222 - 1, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(222 - 1, 376, 545, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 376, 545, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(222, 164, 323, 212, tocolor(10, 244, 231, 171), false) dxDrawLine(232 - 1, 240 - 1, 232 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 240 - 1, 232 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(232 - 1, 306, 373, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 306, 373, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(232, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawLine(391 - 1, 240 - 1, 391 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 240 - 1, 391 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(391 - 1, 306, 532, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 306, 532, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(391, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawText("αυ∂ισ ρℓαувα¢к", 230, 239, 373, 305, tocolor(120, 11, 242, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Extinguish sound", 390, 239, 531, 307, tocolor(247, 39, 5, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(220, 207, 543, 208, tocolor(255, 255, 255, 255), 1, false) dxDrawText("To play the sound Put option on αυ∂ισ ρℓαувα¢к", 222, 164, 546, 185, tocolor(144, 233, 18, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("To reduce the sound Put Option Extinguish sound", 223, 185, 547, 206, tocolor(247, 39, 5, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawLine(223 - 1, 339 - 1, 223 - 1, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 339 - 1, 223 - 1, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(223 - 1, 375, 545, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 375, 545, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(223, 339, 322, 36, tocolor(144, 233, 18, 171), false) dxDrawText("Mod Sound By ~ Mr.Hassan", 222, 337, 544, 375, tocolor(19, 14, 236, 171), 1.00, "pricedown", "left", "top", false, false, false, false, false) end addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUI.button[1] then setSoundPaused(theSound, true) elseif source == GUI.button[2] then setSoundPaused(theSound, false) end end ) bindKey ( "F4", "down", function () if opened then opened = false removeEventHandler ( "onClientRender",root,Dx ) showCursor ( false ) guiSetVisible( GUI.button[1], false ) guiSetVisible( GUI.button[2], false ) else opened = true addEventHandler ( "onClientRender",root,Dx ) showCursor ( true ) guiSetVisible( GUI.button[1], true ) guiSetVisible( GUI.button[2], true ) end end ) Link to comment
[iMr]-W[i]Fi,.! Posted June 29, 2015 Share Posted June 29, 2015 (edited) جربةة local sx,sy = guiGetScreenSize() GUI = { button = {}, } GUI.button[1] = guiCreateButton(231, 240, 143, 65, "onsound", false) GUI.button[2] = guiCreateButton(390, 241, 143, 65, "offsound", false) guiSetAlpha ( GUI.button[1], 0.00 ) guiSetAlpha ( GUI.button[2], 0.00 ) function Dx() dxDrawRectangle(sx*0.3413,sy*0.3550,sx*0.3137,sy*0.2667) dxDrawLine(222 - 1, 164 - 1, 222 - 1, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 164 - 1, 222 - 1, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(222 - 1, 376, 545, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 376, 545, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(222, 164, 323, 212, tocolor(10, 244, 231, 171), false) dxDrawLine(232 - 1, 240 - 1, 232 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 240 - 1, 232 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(232 - 1, 306, 373, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 306, 373, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(232, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawLine(391 - 1, 240 - 1, 391 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 240 - 1, 391 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(391 - 1, 306, 532, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 306, 532, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(391, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawText("αυ∂ισ ρℓαувα¢к", 230, 239, 373, 305, tocolor(120, 11, 242, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Extinguish sound", 390, 239, 531, 307, tocolor(247, 39, 5, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(220, 207, 543, 208, tocolor(255, 255, 255, 255), 1, false) dxDrawText("To play the sound Put option on αυ∂ισ ρℓαувα¢к", 222, 164, 546, 185, tocolor(144, 233, 18, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("To reduce the sound Put Option Extinguish sound", 223, 185, 547, 206, tocolor(247, 39, 5, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawLine(223 - 1, 339 - 1, 223 - 1, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 339 - 1, 223 - 1, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(223 - 1, 375, 545, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 375, 545, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(223, 339, 322, 36, tocolor(144, 233, 18, 171), false) dxDrawText("Mod Sound By ~ Mr.Hassan", 222, 337, 544, 375, tocolor(19, 14, 236, 171), 1.00, "pricedown", "left", "top", false, false, false, false, false) end addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUI.button[1] then setSoundPaused(theSound, true) elseif source == GUI.button[2] then setSoundPaused(theSound, false) end end ) removeEventHandler("onClientRender",root,Dx) guiSetVisible ( GUI.button[1], false ) guiSetVisible ( GUI.button[2], false ) function OpenWin() if removeEventHandler("onClientRender",root,Dx)then removeEventHandler("onClientRender",root,Dx) guiSetVisible ( GUI.button[1], false ) guiSetVisible ( GUI.button[2], false ) showCursor(false) else addEventHandler("onClientRender",root,Dx) guiSetVisible ( GUI.button[1], true ) guiSetVisible ( GUI.button[2], true ) showCursor(true) end end bindKey ( "F4", "down", OpenWin ) شكراً عقيد تم تعديل Edited June 29, 2015 by Guest Link to comment
i S6O Posted June 29, 2015 Share Posted June 29, 2015 جربةة local sx,sy = guiGetScreenSize() GUI = { button = {}, } GUI.button[1] = guiCreateButton(231, 240, 143, 65, "onsound", false) GUI.button[2] = guiCreateButton(390, 241, 143, 65, "offsound", false) function Dx() dxDrawRectangle(sx*0.3413,sy*0.3550,sx*0.3137,sy*0.2667) dxDrawLine(222 - 1, 164 - 1, 222 - 1, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 164 - 1, 222 - 1, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(222 - 1, 376, 545, 376, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 376, 545, 164 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(222, 164, 323, 212, tocolor(10, 244, 231, 171), false) dxDrawLine(232 - 1, 240 - 1, 232 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 240 - 1, 232 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(232 - 1, 306, 373, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(373, 306, 373, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(232, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawLine(391 - 1, 240 - 1, 391 - 1, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 240 - 1, 391 - 1, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(391 - 1, 306, 532, 306, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(532, 306, 532, 240 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(391, 240, 141, 66, tocolor(10, 244, 231, 171), false) dxDrawText("αυ∂ισ ρℓαувα¢к", 230, 239, 373, 305, tocolor(120, 11, 242, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Extinguish sound", 390, 239, 531, 307, tocolor(247, 39, 5, 171), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(220, 207, 543, 208, tocolor(255, 255, 255, 255), 1, false) dxDrawText("To play the sound Put option on αυ∂ισ ρℓαувα¢к", 222, 164, 546, 185, tocolor(144, 233, 18, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("To reduce the sound Put Option Extinguish sound", 223, 185, 547, 206, tocolor(247, 39, 5, 171), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawLine(223 - 1, 339 - 1, 223 - 1, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 339 - 1, 223 - 1, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(223 - 1, 375, 545, 375, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(545, 375, 545, 339 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(223, 339, 322, 36, tocolor(144, 233, 18, 171), false) dxDrawText("Mod Sound By ~ Mr.Hassan", 222, 337, 544, 375, tocolor(19, 14, 236, 171), 1.00, "pricedown", "left", "top", false, false, false, false, false) end addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUI.button[1] then setSoundPaused(theSound, true) elseif source == GUI.button[2] then setSoundPaused(theSound, false) end end ) function OpenWin() if removeEventHandler("onClientRender",root,Dx)then removeEventHandler("onClientRender",root,Dx) guiSetVisible ( GUI.button[1], false ) guiSetVisible ( GUI.button[2], false ) showCursor(false) else addEventHandler("onClientRender",root,Dx) guiSetVisible ( GUI.button[1], true ) guiSetVisible ( GUI.button[2], true ) showCursor(true) end end bindKey ( "F4", "down", OpenWin ) يعني اكوادك تصصير alpha حقها 100 انا 0 alpha حقها 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