Jump to content

تعديل كود نافذة-تم الافادة


CRoW,,#

Recommended Posts

-------- 
--- client  
-------- 
  
  
function onGuiClick (button, state, absoluteX, absoluteY) 
if ( source ==  btn ) then  
guiSetVisible(wnd, not guiGetVisible(wnd)) 
showCursor(guiGetVisible(wnd)) 
 end 
end  
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

Link to comment
-------- 
--- client  
-------- 
  
  
function onGuiClick (button, state, absoluteX, absoluteY) 
if ( source ==  btn ) then  
guiSetVisible(wnd, not guiGetVisible(wnd)) 
showCursor(guiGetVisible(wnd)) 
 end 
end  
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

م اشتغل :cry:

Link to comment
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
    local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "1.png", relative2 ) 
    local mainBackgroundLabel = guiCreateLabel ( 0, 0, 250, 100, titleBarText2, false, mainBackground ) 
    guiSetFont ( mainBackgroundLabel, newFont ) 
    guiSetEnabled ( mainBackgroundLabel, false ) 
    return mainBackground 
end 
  
GUIEditor_Button = {} 
  
wnd = guiCreateWindow(158,60,579,479,"Music script By !FP^B_o~L|B|/\/",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Button[1] = guiCreateButton(16,75,105,35,"Music",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(230,75,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(457,75,94,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(16,75,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[4],"default-bold-small") 
GUIEditor_Button[5] = guiCreateButton(16,171,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[5],"default-bold-small") 
GUIEditor_Button[6] = guiCreateButton(230,171,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[6],"default-bold-small") 
GUIEditor_Button[7] = guiCreateButton(459,171,94,35,"Music",false,wnd) 
GUIEditor_Button[8] = guiCreateButton(16,274,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[8],"default-bold-small") 
GUIEditor_Button[9] = guiCreateButton(230,274,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[9],"default-bold-small") 
GUIEditor_Button[10] = guiCreateButton(453,274,103,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[10],"default-bold-small") 
GUIEditor_Button[11] = guiCreateButton(12,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[11],"default-bold-small") 
GUIEditor_Button[12] = guiCreateButton(234,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[12],"default-bold-small") 
GUIEditor_Button[13] = guiCreateButton(451,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[13],"default-bold-small") 
GUIEditor_Button[14] = guiCreateButton(471,24,73,29,"اغلاق",false,wnd) 
guiSetFont(GUIEditor_Button[14],"default-bold-small") 
GUIEditor_Button[15] = guiCreateButton(379,22,74,30,"ايقاف",false,wnd) 
guiSetFont(GUIEditor_Button[15],"default-bold-small") 
  
  
guiSetVisible (wnd, false)  
function OpenWin()  
    if guiGetVisible ( wnd ) then    
       guiSetVisible ( wnd, false )     
       showCursor(false)   
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( wnd, true )   
        showCursor(true)   
        guiSetInputEnabled(true) 
  
    end   
end   
bindKey("F6", "down", OpenWin) 
  
addEventHandler("onClientGUIClick", root, 
        function () 
         
            if ( source == GUIEditor_Button[1] ) then 
                sound = playSound( "http://6arbyat.net/songs/yamen/balges_a7md/6arbyat_balges_a7md_020.mp3", false ) 
            elseif ( source == GUIEditor_Button[2] ) then 
                sound = playSound( "ttp://6arbyat.net/songs/yamen/balges_a7md/6arbyat_balges_a7md_020.mp3", false ) 
            elseif ( source == GUIEditor_Button[3] ) then 
                sound = playSound( "http://spm77.free.fr/Music/David%20Guetta%20-%20One%20More%20Love%20(2010)%20-%20Dance/103-david_guetta_feat_akon-sexy_bitch.mp3", false ) 
            elseif ( source == GUIEditor_Button[4] ) then 
                sound = playSound( "http://mp3.hhgroups.com/descargar-tema/Shamanes%20Crew%20-%20Shamanes%20junto%20a%20ti%20-%20www.HHGroups.com.mp3", false ) 
            elseif ( source == GUIEditor_Button[5] ) then 
                sound = playSound( "http://dc142.4shared.com/img/112522884/d908b015/dlink__2Fdownload_2FzAAY2wbS_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) 
            elseif ( source == GUIEditor_Button[6] ) then 
                sound = playSound( "http://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) 
            elseif ( source == GUIEditor_Button[7] ) then 
                sound = playSound( "http://dc142.4shared.com/img/112522884/d908b015/dlink__2Fdownload_2FzAAY2wbS_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) 
            elseif ( source == GUIEditor_Button[8] ) then 
                sound = playSound( "http://anneesommetique.top-depart.com/archive/audio/1/1/2/1198_.mp3", false ) 
            elseif ( source == GUIEditor_Button[9] ) then 
                sound = playSound( "http://dc180.4shared.com/img/409873282/75047a16/dlink__2Fdownload_2FywkHsAHE_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) 
            elseif ( source == GUIEditor_Button[10] ) then 
                sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", false ) 
            elseif ( source == GUIEditor_Button[11] ) then 
                sound = playSound( "http://tubefot.com/discografias/farruko/Fuego%20Ft.%20Farruko%20-%20Una%20Vaina%20Loca%20(Official%20Remix)%20%20([url=http://WWW.ELGENERO.COM]WWW.ELGENERO.COM[/url]).mp3", false ) 
            elseif ( source == GUIEditor_Button[12] ) then 
                sound = playSound( "http://tubefot.com/discografias/farruko/Fuego%20Ft.%20Farruko%20-%20Una%20Vaina%20Loca%20(Official%20Remix)%20%20([url=http://WWW.ELGENERO.COM]WWW.ELGENERO.COM[/url]).mp3", false ) 
            elseif ( source == GUIEditor_Button[13] ) then 
            elseif ( source == GUIEditor_Button[14] ) then 
                guiSetVisible(wn, false) 
                showCursor(false) 
            elseif ( source == GUIEditor_Button[15] ) then 
                if isElement(sound) then destroyElement(sound) end 
            end  
        end 
    ) 
    function onGuiClick (button, state, 158, 60) 
if ( source ==  btn ) then 
guiSetVisible(wnd, not guiGetVisible(wnd)) 
showCursor(guiGetVisible(wnd)) 
 end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

Link to comment

أيش سالفه الأرقام الي هنا؟

خخ

function onGuiClick (button, state, 158, 60) 

شوف السطر ذا

تغيرها إلى اسم الزر الي تبيه يغلق النافذه btn كلمة

if ( source ==  btn ) then 

Link to comment
  
  
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
    local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "1.png", relative2 ) 
    local mainBackgroundLabel = guiCreateLabel ( 0, 0, 250, 100, titleBarText2, false, mainBackground ) 
    guiSetFont ( mainBackgroundLabel, newFont ) 
    guiSetEnabled ( mainBackgroundLabel, false ) 
    return mainBackground 
end 
  
GUIEditor_Button = {} 
  
wnd = guiCreateWindow(158,60,579,479,"Music script By !FP^B_o~L|B|/\/",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Button[1] = guiCreateButton(16,75,105,35,"Music",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(230,75,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(457,75,94,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(16,75,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[4],"default-bold-small") 
GUIEditor_Button[5] = guiCreateButton(16,171,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[5],"default-bold-small") 
GUIEditor_Button[6] = guiCreateButton(230,171,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[6],"default-bold-small") 
GUIEditor_Button[7] = guiCreateButton(459,171,94,35,"Music",false,wnd) 
GUIEditor_Button[8] = guiCreateButton(16,274,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[8],"default-bold-small") 
GUIEditor_Button[9] = guiCreateButton(230,274,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[9],"default-bold-small") 
GUIEditor_Button[10] = guiCreateButton(453,274,103,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[10],"default-bold-small") 
GUIEditor_Button[11] = guiCreateButton(12,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[11],"default-bold-small") 
GUIEditor_Button[12] = guiCreateButton(234,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[12],"default-bold-small") 
GUIEditor_Button[13] = guiCreateButton(451,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[13],"default-bold-small") 
GUIEditor_Button[14] = guiCreateButton(471,24,73,29,"اغلاق",false,wnd) 
guiSetFont(GUIEditor_Button[14],"default-bold-small") 
GUIEditor_Button[15] = guiCreateButton(379,22,74,30,"ايقاف",false,wnd) 
guiSetFont(GUIEditor_Button[15],"default-bold-small") 
guiSetVisible (wnd, false) 
  
function OpenWin() 
    if guiGetVisible ( wnd ) then   
       guiSetVisible ( wnd, false )     
       showCursor(false)   
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( wnd, true )   
        showCursor(true)   
        guiSetInputEnabled(true) 
  
    end   
end   
bindKey("F6", "down", OpenWin) 
  
addEventHandler("onClientGUIClick", root, 
        function () 
        
            if ( source == GUIEditor_Button[1] ) then 
                sound = playSound( "http://6arbyat.net/songs/yamen/balges_a7md/6arbyat_balges_a7md_020.mp3", false ) 
            elseif ( source == GUIEditor_Button[2] ) then 
                sound = playSound( "ttp://6arbyat.net/songs/yamen/balges_a7md/6arbyat_balges_a7md_020.mp3", false ) 
            elseif ( source == GUIEditor_Button[3] ) then 
                sound = playSound( "http://spm77.free.fr/Music/David%20Guetta%20-%20One%20More%20Love%20(2010)%20-%20Dance/103-david_guetta_feat_akon-sexy_bitch.mp3", false ) 
            elseif ( source == GUIEditor_Button[4] ) then 
                sound = playSound( "http://mp3.hhgroups.com/descargar-tema/Shamanes%20Crew%20-%20Shamanes%20junto%20a%20ti%20-%20www.HHGroups.com.mp3", false ) 
            elseif ( source == GUIEditor_Button[5] ) then 
                sound = playSound( "http://dc142.4shared.com/img/112522884/d908b015/dlink__2Fdownload_2FzAAY2wbS_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) 
            elseif ( source == GUIEditor_Button[6] ) then 
                sound = playSound( "http://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) 
            elseif ( source == GUIEditor_Button[7] ) then 
                sound = playSound( "http://dc142.4shared.com/img/112522884/d908b015/dlink__2Fdownload_2FzAAY2wbS_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) 
            elseif ( source == GUIEditor_Button[8] ) then 
                sound = playSound( "http://anneesommetique.top-depart.com/archive/audio/1/1/2/1198_.mp3", false ) 
            elseif ( source == GUIEditor_Button[9] ) then 
                sound = playSound( "http://dc180.4shared.com/img/409873282/75047a16/dlink__2Fdownload_2FywkHsAHE_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) 
            elseif ( source == GUIEditor_Button[10] ) then 
                sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", false ) 
            elseif ( source == GUIEditor_Button[11] ) then 
                sound = playSound( "http://tubefot.com/discografias/farruko/Fuego%20Ft.%20Farruko%20-%20Una%20Vaina%20Loca%20(Official%20Remix)%20%20([url=http://WWW.ELGENERO.COM]WWW.ELGENERO.COM[/url]).mp3", false ) 
            elseif ( source == GUIEditor_Button[12] ) then 
                sound = playSound( "http://tubefot.com/discografias/farruko/Fuego%20Ft.%20Farruko%20-%20Una%20Vaina%20Loca%20(Official%20Remix)%20%20([url=http://WWW.ELGENERO.COM]WWW.ELGENERO.COM[/url]).mp3", false ) 
            elseif ( source == GUIEditor_Button[13] ) then 
            elseif ( source == GUIEditor_Button[14] ) then 
                guiSetVisible(wn, false) 
                showCursor(false) 
            elseif ( source == GUIEditor_Button[15] ) then 
                if isElement(sound) then destroyElement(sound) end 
            end 
        end 
) 
  
addEventHandler ("onClientGUIClick", GUIEditor_Button[14],   
function() 
guiSetVisible(wnd, not guiGetVisible(wnd)) 
showCursor(guiGetVisible(wnd)) 
end,false) 
  
  

Link to comment
وربي ذيبان كفووو اشتغل

طيب الطلب الثاني

اذا شغلت اذا ضغطت على صوت الصوت الثاني يوقف

ويشتغل الي انا ضغطت عليه

  
  
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
    local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "1.png", relative2 ) 
    local mainBackgroundLabel = guiCreateLabel ( 0, 0, 250, 100, titleBarText2, false, mainBackground ) 
    guiSetFont ( mainBackgroundLabel, newFont ) 
    guiSetEnabled ( mainBackgroundLabel, false ) 
    return mainBackground 
end 
  
GUIEditor_Button = {} 
  
wnd = guiCreateWindow(158,60,579,479,"Music script By !FP^B_o~L|B|/\/",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Button[1] = guiCreateButton(16,75,105,35,"Music",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(230,75,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(457,75,94,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(16,75,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[4],"default-bold-small") 
GUIEditor_Button[5] = guiCreateButton(16,171,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[5],"default-bold-small") 
GUIEditor_Button[6] = guiCreateButton(230,171,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[6],"default-bold-small") 
GUIEditor_Button[7] = guiCreateButton(459,171,94,35,"Music",false,wnd) 
GUIEditor_Button[8] = guiCreateButton(16,274,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[8],"default-bold-small") 
GUIEditor_Button[9] = guiCreateButton(230,274,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[9],"default-bold-small") 
GUIEditor_Button[10] = guiCreateButton(453,274,103,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[10],"default-bold-small") 
GUIEditor_Button[11] = guiCreateButton(12,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[11],"default-bold-small") 
GUIEditor_Button[12] = guiCreateButton(234,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[12],"default-bold-small") 
GUIEditor_Button[13] = guiCreateButton(451,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[13],"default-bold-small") 
GUIEditor_Button[14] = guiCreateButton(471,24,73,29,"اغلاق",false,wnd) 
guiSetFont(GUIEditor_Button[14],"default-bold-small") 
GUIEditor_Button[15] = guiCreateButton(379,22,74,30,"ايقاف",false,wnd) 
guiSetFont(GUIEditor_Button[15],"default-bold-small") 
guiSetVisible (wnd, false) 
  
function OpenWin() 
    if guiGetVisible ( wnd ) then   
       guiSetVisible ( wnd, false )     
       showCursor(false)   
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( wnd, true )   
        showCursor(true)   
        guiSetInputEnabled(true) 
  
    end   
end   
bindKey("F6", "down", OpenWin) 
  
addEventHandler("onClientGUIClick", root, 
        function () 
        
            if ( source == GUIEditor_Button[1] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end 
                sound = playSound( "http://6arbyat.net/songs/yamen/balges_a7md/6arbyat_balges_a7md_020.mp3", true ) 
            elseif ( source == GUIEditor_Button[2] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end           
                sound = playSound( "ttp://6arbyat.net/songs/yamen/balges_a7md/6arbyat_balges_a7md_020.mp3", true ) 
            elseif ( source == GUIEditor_Button[3] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end           
                sound = playSound( "http://spm77.free.fr/Music/David%20Guetta%20-%20One%20More%20Love%20(2010)%20-%20Dance/103-david_guetta_feat_akon-sexy_bitch.mp3", true ) 
            elseif ( source == GUIEditor_Button[4] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end           
                sound = playSound( "http://mp3.hhgroups.com/descargar-tema/Shamanes%20Crew%20-%20Shamanes%20junto%20a%20ti%20-%20www.HHGroups.com.mp3", true ) 
            elseif ( source == GUIEditor_Button[5] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end 
                sound = playSound( "http://dc142.4shared.com/img/112522884/d908b015/dlink__2Fdownload_2FzAAY2wbS_3Ftsid_3D00000000-000000-00000000/preview.mp3", true ) 
            elseif ( source == GUIEditor_Button[6] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end       
                sound = playSound( "http://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", true ) 
            elseif ( source == GUIEditor_Button[7] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end           
                sound = playSound( "http://dc142.4shared.com/img/112522884/d908b015/dlink__2Fdownload_2FzAAY2wbS_3Ftsid_3D00000000-000000-00000000/preview.mp3", true ) 
            elseif ( source == GUIEditor_Button[8] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end           
                sound = playSound( "http://anneesommetique.top-depart.com/archive/audio/1/1/2/1198_.mp3", true ) 
            elseif ( source == GUIEditor_Button[9] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end           
                sound = playSound( "http://dc180.4shared.com/img/409873282/75047a16/dlink__2Fdownload_2FywkHsAHE_3Ftsid_3D00000000-000000-00000000/preview.mp3", true ) 
            elseif ( source == GUIEditor_Button[10] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end           
                sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", true ) 
            elseif ( source == GUIEditor_Button[11] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end           
                sound = playSound( "http://tubefot.com/discografias/farruko/Fuego%20Ft.%20Farruko%20-%20Una%20Vaina%20Loca%20(Official%20Remix)%20%20([url=http://WWW.ELGENERO.COM]WWW.ELGENERO.COM[/url]).mp3", true ) 
            elseif ( source == GUIEditor_Button[12] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end           
                sound = playSound( "http://tubefot.com/discografias/farruko/Fuego%20Ft.%20Farruko%20-%20Una%20Vaina%20Loca%20(Official%20Remix)%20%20([url=http://WWW.ELGENERO.COM]WWW.ELGENERO.COM[/url]).mp3", true ) 
            elseif ( source == GUIEditor_Button[13] ) then --- ؟؟؟؟؟؟  
            elseif ( source == GUIEditor_Button[15] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end 
            end 
        end 
) 
  
addEventHandler ("onClientGUIClick", GUIEditor_Button[14],  
function() 
guiSetVisible(wnd, not guiGetVisible(wnd)) 
showCursor(guiGetVisible(wnd)) 
end,false) 
  

Link to comment
تسلم فديتك يابعدهم ق1

حياك في أي وقت

الكود شغال وكل شي بس في مشكلة صغيرة

انه المؤشر حق الفأرة يطلع يوم اضغط اغلاق

  
  
  
  
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
    local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "1.png", relative2 ) 
    local mainBackgroundLabel = guiCreateLabel ( 0, 0, 250, 100, titleBarText2, false, mainBackground ) 
    guiSetFont ( mainBackgroundLabel, newFont ) 
    guiSetEnabled ( mainBackgroundLabel, false ) 
    return mainBackground 
end 
  
GUIEditor_Button = {} 
  
wnd = guiCreateWindow(158,60,579,479,"Music script By !FP^B_o~L|B|/\/",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Button[1] = guiCreateButton(16,75,105,35,"Music",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(230,75,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(457,75,94,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(16,75,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[4],"default-bold-small") 
GUIEditor_Button[5] = guiCreateButton(16,171,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[5],"default-bold-small") 
GUIEditor_Button[6] = guiCreateButton(230,171,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[6],"default-bold-small") 
GUIEditor_Button[7] = guiCreateButton(459,171,94,35,"Music",false,wnd) 
GUIEditor_Button[8] = guiCreateButton(16,274,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[8],"default-bold-small") 
GUIEditor_Button[9] = guiCreateButton(230,274,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[9],"default-bold-small") 
GUIEditor_Button[10] = guiCreateButton(453,274,103,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[10],"default-bold-small") 
GUIEditor_Button[11] = guiCreateButton(12,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[11],"default-bold-small") 
GUIEditor_Button[12] = guiCreateButton(234,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[12],"default-bold-small") 
GUIEditor_Button[13] = guiCreateButton(451,388,105,35,"Music",false,wnd) 
guiSetFont(GUIEditor_Button[13],"default-bold-small") 
GUIEditor_Button[14] = guiCreateButton(471,24,73,29,"اغلاق",false,wnd) 
guiSetFont(GUIEditor_Button[14],"default-bold-small") 
GUIEditor_Button[15] = guiCreateButton(379,22,74,30,"ايقاف",false,wnd) 
guiSetFont(GUIEditor_Button[15],"default-bold-small") 
guiSetVisible (wnd, false) 
  
function OpenWin() 
    if guiGetVisible ( wnd ) then   
       guiSetVisible ( wnd, false )     
       showCursor(false)   
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( wnd, true )   
        showCursor(true)   
        guiSetInputEnabled(true) 
  
    end   
end   
bindKey("F6", "down", OpenWin) 
  
addEventHandler("onClientGUIClick", root, 
        function () 
        
            if ( source == GUIEditor_Button[1] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end 
                sound = playSound( "http://6arbyat.net/songs/yamen/balges_a7md/6arbyat_balges_a7md_020.mp3", true ) 
            elseif ( source == GUIEditor_Button[2] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end          
                sound = playSound( "ttp://6arbyat.net/songs/yamen/balges_a7md/6arbyat_balges_a7md_020.mp3", true ) 
            elseif ( source == GUIEditor_Button[3] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end          
                sound = playSound( "http://spm77.free.fr/Music/David%20Guetta%20-%20One%20More%20Love%20(2010)%20-%20Dance/103-david_guetta_feat_akon-sexy_bitch.mp3", true ) 
            elseif ( source == GUIEditor_Button[4] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end          
                sound = playSound( "http://mp3.hhgroups.com/descargar-tema/Shamanes%20Crew%20-%20Shamanes%20junto%20a%20ti%20-%20www.HHGroups.com.mp3", true ) 
            elseif ( source == GUIEditor_Button[5] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end 
                sound = playSound( "http://dc142.4shared.com/img/112522884/d908b015/dlink__2Fdownload_2FzAAY2wbS_3Ftsid_3D00000000-000000-00000000/preview.mp3", true ) 
            elseif ( source == GUIEditor_Button[6] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end      
                sound = playSound( "http://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", true ) 
            elseif ( source == GUIEditor_Button[7] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end          
                sound = playSound( "http://dc142.4shared.com/img/112522884/d908b015/dlink__2Fdownload_2FzAAY2wbS_3Ftsid_3D00000000-000000-00000000/preview.mp3", true ) 
            elseif ( source == GUIEditor_Button[8] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end          
                sound = playSound( "http://anneesommetique.top-depart.com/archive/audio/1/1/2/1198_.mp3", true ) 
            elseif ( source == GUIEditor_Button[9] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end          
                sound = playSound( "http://dc180.4shared.com/img/409873282/75047a16/dlink__2Fdownload_2FywkHsAHE_3Ftsid_3D00000000-000000-00000000/preview.mp3", true ) 
            elseif ( source == GUIEditor_Button[10] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end          
                sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", true ) 
            elseif ( source == GUIEditor_Button[11] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end          
                sound = playSound( "http://tubefot.com/discografias/farruko/Fuego%20Ft.%20Farruko%20-%20Una%20Vaina%20Loca%20(Official%20Remix)%20%20([url=http://WWW.ELGENERO.COM]WWW.ELGENERO.COM[/url]).mp3", true ) 
            elseif ( source == GUIEditor_Button[12] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end          
                sound = playSound( "http://tubefot.com/discografias/farruko/Fuego%20Ft.%20Farruko%20-%20Una%20Vaina%20Loca%20(Official%20Remix)%20%20([url=http://WWW.ELGENERO.COM]WWW.ELGENERO.COM[/url]).mp3", true ) 
            elseif ( source == GUIEditor_Button[13] ) then --- ؟؟؟؟؟؟ 
            elseif ( source == GUIEditor_Button[15] ) then 
                if isElement(sound) then destroyElement(sound) sound = nil end 
            end 
        end 
) 
  
addEventHandler ("onClientGUIClick", GUIEditor_Button[14], 
function() 
guiSetVisible(wnd,false) 
showCursor(false) 
end,false) 
  

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