iFoReX Posted March 4, 2012 Share Posted March 4, 2012 mmm... se puede hacer una GUI con botones en la cual al aprietarlo se reprodusca una cancion y luego hacer un boton para pararla ? gracias de antemano Link to comment
iFoReX Posted March 4, 2012 Author Share Posted March 4, 2012 me refiero a que ai que aser con el addEventHandler. o nada con eso ? Link to comment
iFoReX Posted March 4, 2012 Author Share Posted March 4, 2012 ya ise la base pero me falta la musica me podrian ayudar buee aqui les dejo el .lua addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(152,79,519,494,"BKZ| Sistema de Musica",false) GUIEditor_Button[1] = guiCreateButton(0.0443,0.1943,0.2543,0.1275,"Pump It",true,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(0.2293,0.0607,0.5453,0.0911,"shruk.png",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.3776,0.1964,0.2543,0.1275,"una vaina loca",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.6917,0.1943,0.2543,0.1275,"sexy Bitch",true,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(0.0462,0.3765,0.2543,0.1275,"Sexo sudor y calor",true,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(0.3796,0.3826,0.2543,0.1275,"hola beba",true,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(0.738,0.8806,0.2447,0.1012,"CERRAR",true,GUIEditor_Window[1]) addEventHandler("onClientGUIClick", GUIEditor_Button[6], function () guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end,false) showCursor(true) end ) Link to comment
Castillo Posted March 4, 2012 Share Posted March 4, 2012 addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(152,79,519,494,"BKZ| Sistema de Musica",false) GUIEditor_Image[1] = guiCreateStaticImage(0.2293,0.0607,0.5453,0.0911,"shruk.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.0443,0.1943,0.2543,0.1275,"Pump It",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.3776,0.1964,0.2543,0.1275,"una vaina loca",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.6917,0.1943,0.2543,0.1275,"sexy Bitch",true,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(0.0462,0.3765,0.2543,0.1275,"Sexo sudor y calor",true,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(0.3796,0.3826,0.2543,0.1275,"hola beba",true,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(0.738,0.8806,0.2447,0.1012,"CERRAR",true,GUIEditor_Window[1]) showCursor(true) end ) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then -- hacer algo elseif ( source == GUIEditor_Button[2] ) then -- hacer algo elseif ( source == GUIEditor_Button[3] ) then -- hacer algo elseif ( source == GUIEditor_Button[4] ) then -- hacer algo elseif ( source == GUIEditor_Button[5] ) then -- hacer algo elseif ( source == GUIEditor_Button[6] ) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end ) Link to comment
iFoReX Posted March 4, 2012 Author Share Posted March 4, 2012 (edited) no me funciono solid esto ise mira = addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(152,79,519,494,"BKZ| Sistema de Musica",false) GUIEditor_Image[1] = guiCreateStaticImage(0.2293,0.0607,0.5453,0.0911,"shruk.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.0443,0.1943,0.2543,0.1275,"Pump It",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.3776,0.1964,0.2543,0.1275,"una vaina loca",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.6917,0.1943,0.2543,0.1275,"sexy Bitch",true,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(0.0462,0.3765,0.2543,0.1275,"Sexo sudor y calor",true,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(0.3796,0.3826,0.2543,0.1275,"hola beba",true,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(0.738,0.8806,0.2447,0.1012,"CERRAR",true,GUIEditor_Window[1]) showCursor(true) end ) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", false ) end elseif ( source == GUIEditor_Button[2] ) 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]http://WWW.ELGENERO.COM[/url]).mp3", false ) end elseif ( source == GUIEditor_Button[3] ) then function startMySound3() 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 ) end 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 ) end elseif ( source == GUIEditor_Button[5] ) then sound = playSound( "http://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) end guiSetVisible(GUIEditor_Window[6], false) showCursor(false) end end ) no me aparece la GUI Edited March 4, 2012 by Guest Link to comment
Castillo Posted March 4, 2012 Share Posted March 4, 2012 addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(152,79,519,494,"BKZ| Sistema de Musica",false) GUIEditor_Image[1] = guiCreateStaticImage(0.2293,0.0607,0.5453,0.0911,"shruk.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.0443,0.1943,0.2543,0.1275,"Pump It",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.3776,0.1964,0.2543,0.1275,"una vaina loca",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.6917,0.1943,0.2543,0.1275,"sexy Bitch",true,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(0.0462,0.3765,0.2543,0.1275,"Sexo sudor y calor",true,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(0.3796,0.3826,0.2543,0.1275,"hola beba",true,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(0.738,0.8806,0.2447,0.1012,"CERRAR",true,GUIEditor_Window[1]) showCursor(true) end ) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", false ) elseif ( source == GUIEditor_Button[2] ) 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[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://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) elseif ( source == GUIEditor_Button[6] ) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end ) Link to comment
iFoReX Posted March 4, 2012 Author Share Posted March 4, 2012 gracias man ya me aparece pero como ago para aser un bindkey soy malo en eso del bindkey Link to comment
Castillo Posted March 4, 2012 Share Posted March 4, 2012 addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(152,79,519,494,"BKZ| Sistema de Musica",false) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Image[1] = guiCreateStaticImage(0.2293,0.0607,0.5453,0.0911,"shruk.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.0443,0.1943,0.2543,0.1275,"Pump It",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.3776,0.1964,0.2543,0.1275,"una vaina loca",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.6917,0.1943,0.2543,0.1275,"sexy Bitch",true,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(0.0462,0.3765,0.2543,0.1275,"Sexo sudor y calor",true,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(0.3796,0.3826,0.2543,0.1275,"hola beba",true,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(0.738,0.8806,0.2447,0.1012,"CERRAR",true,GUIEditor_Window[1]) showCursor(false) end ) bindKey("F1","down", function () guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", false ) elseif ( source == GUIEditor_Button[2] ) 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[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://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) elseif ( source == GUIEditor_Button[6] ) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end ) Con "F1" ocultas/mostras el GUI. Link to comment
iFoReX Posted March 4, 2012 Author Share Posted March 4, 2012 man quise poner mas canciones pero ahora el GUI no me aparece D: addEventHandler("onClientResourceStart",resourceRoot, GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(145,63,519,494,"BKZ| Sistema de Musica",false) GUIEditor_Button[6] = guiCreateButton(0.738,0.8806,0.2447,0.1012,"CERRAR",true,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(0.0173,0.1781,0.9653,0.6842,true,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Regeton",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(0.012,0.035,0.2315,0.1115,"Una vaina Loca",true,GUIEditor_Tab[1]) GUIEditor_Button[4] = guiCreateButton(0.2675,0.0318,0.2515,0.121,"junto a ti",true,GUIEditor_Tab[1]) GUIEditor_Button[5] = guiCreateButton(0.5429,0.0382,0.2495,0.1178,"Sexo sudor y calor",true,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Musica en ingles",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(0.022,0.0478,0.2415,0.1242,"pump it",true,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(0.2814,0.0478,0.2695,0.1274,"sexy bitch",true,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("bachata",GUIEditor_TabPanel[1]) GUIEditor_Button[7] = guiCreateButton(0.014,0.035,0.2435,0.1242,"romeo y julieta",true,GUIEditor_Tab[3]) GUIEditor_Button[8] = guiCreateButton(0.2814,0.0382,0.2455,0.1338,"Solo por un beso",true,GUIEditor_Tab[3]) GUIEditor_Button[9] = guiCreateButton(0.5569,0.0414,0.2475,0.1274,"enseñame a olvidar",true,GUIEditor_Tab[3]) GUIEditor_Image[1] = guiCreateStaticImage(0.1233,0.0668,0.7534,0.085,"images/shruk.png",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0289,0.8846,0.6493,0.0911,"GUI Creada Por ElMota CopyRigth 2012 (c)",true,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"clear-normal") end ) bindKey("F1","down", function () guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", false ) elseif ( source == GUIEditor_Button[2] ) 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[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://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[6] ) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end ) Link to comment
Castillo Posted March 4, 2012 Share Posted March 4, 2012 addEventHandler("onClientResourceStart",resourceRoot, function () GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(145,63,519,494,"BKZ| Sistema de Musica",false) GUIEditor_Button[6] = guiCreateButton(0.738,0.8806,0.2447,0.1012,"CERRAR",true,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(0.0173,0.1781,0.9653,0.6842,true,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Regeton",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(0.012,0.035,0.2315,0.1115,"Una vaina Loca",true,GUIEditor_Tab[1]) GUIEditor_Button[4] = guiCreateButton(0.2675,0.0318,0.2515,0.121,"junto a ti",true,GUIEditor_Tab[1]) GUIEditor_Button[5] = guiCreateButton(0.5429,0.0382,0.2495,0.1178,"Sexo sudor y calor",true,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Musica en ingles",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(0.022,0.0478,0.2415,0.1242,"pump it",true,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(0.2814,0.0478,0.2695,0.1274,"sexy bitch",true,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("bachata",GUIEditor_TabPanel[1]) GUIEditor_Button[7] = guiCreateButton(0.014,0.035,0.2435,0.1242,"romeo y julieta",true,GUIEditor_Tab[3]) GUIEditor_Button[8] = guiCreateButton(0.2814,0.0382,0.2455,0.1338,"Solo por un beso",true,GUIEditor_Tab[3]) GUIEditor_Button[9] = guiCreateButton(0.5569,0.0414,0.2475,0.1274,"enseñame a olvidar",true,GUIEditor_Tab[3]) GUIEditor_Image[1] = guiCreateStaticImage(0.1233,0.0668,0.7534,0.085,"images/shruk.png",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0289,0.8846,0.6493,0.0911,"GUI Creada Por ElMota CopyRigth 2012 (c)",true,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"clear-normal") guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end ) bindKey("F1","down", function () guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", false ) elseif ( source == GUIEditor_Button[2] ) 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[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://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) elseif ( source == GUIEditor_Button[6] ) then guiSetVisible(GUIEditor_Window[1], false) showCursor(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 ) end end ) Te olvidaste de "function ()" despues de: addEventHandler("onClientResourceStart",resourceRoot, Link to comment
iFoReX Posted March 4, 2012 Author Share Posted March 4, 2012 xDD gracias solid vere q tal funciona Edit: solid y si ago un boton con la funcion stopPlaySound ? o algo asi se pararan todas las canciones Link to comment
Castillo Posted March 4, 2012 Share Posted March 4, 2012 El problema de tu script es que estas poniendo todas las canciones a la vez, deberias destruir la que ya existe, podes hacerlo asi: if isElement(sound) then destroyElement(sound) Eso lo pones antes de playSound, tambien lo podes poner en un boton nuevo para destruir la cancion. Link to comment
iFoReX Posted March 4, 2012 Author Share Posted March 4, 2012 denuevo no aparece mira esto ise addEventHandler("onClientResourceStart",resourceRoot, function () GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(145,63,519,494,"BKZ| Sistema de Musica",false) GUIEditor_Button[6] = guiCreateButton(0.738,0.8806,0.2447,0.1012,"CERRAR",true,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(0.0173,0.1781,0.9653,0.6842,true,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Regeton",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(0.012,0.035,0.2315,0.1115,"Una vaina Loca",true,GUIEditor_Tab[1]) GUIEditor_Button[4] = guiCreateButton(0.2675,0.0318,0.2515,0.121,"junto a ti",true,GUIEditor_Tab[1]) GUIEditor_Button[5] = guiCreateButton(0.5429,0.0382,0.2495,0.1178,"Sexo sudor y calor",true,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Musica en ingles",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(0.022,0.0478,0.2415,0.1242,"pump it",true,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(0.2814,0.0478,0.2695,0.1274,"sexy bitch",true,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("bachata",GUIEditor_TabPanel[1]) GUIEditor_Button[7] = guiCreateButton(0.014,0.035,0.2435,0.1242,"romeo y julieta",true,GUIEditor_Tab[3]) GUIEditor_Button[8] = guiCreateButton(0.2814,0.0382,0.2455,0.1338,"Solo por un beso",true,GUIEditor_Tab[3]) GUIEditor_Button[9] = guiCreateButton(0.5569,0.0414,0.2475,0.1274,"enseñame a olvidar",true,GUIEditor_Tab[3]) GUIEditor_Image[1] = guiCreateStaticImage(0.1233,0.0668,0.7534,0.085,"images/shruk.png",true,GUIEditor_Window[1]) [1]) GUIEditor_Label[1] = guiCreateLabel(0.0289,0.8846,0.4701,0.0911,"GUI Creada Por ElMota CopyRigth 2012 (c)",true,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Button[10] = guiCreateButton(0.5164,0.8846,0.2062,0.0911,"Parar",true,GUIEditor_Window[1]) end ) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end ) bindKey("F1","down", function () guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", false ) elseif ( source == GUIEditor_Button[2] ) 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[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://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) elseif ( source == GUIEditor_Button[6] ) then guiSetVisible(GUIEditor_Window[1], false) showCursor(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 ( if isElement(sound) then destroyElement(sound)", false ) end end ) Link to comment
Soren Posted March 4, 2012 Share Posted March 4, 2012 Oye Mota me permitirias usar este script en mi server? te dare el credito Link to comment
iFoReX Posted March 4, 2012 Author Share Posted March 4, 2012 ok editale todo lo demas solo deja el copyright Link to comment
Castillo Posted March 4, 2012 Share Posted March 4, 2012 addEventHandler("onClientResourceStart",resourceRoot, function () GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(145,63,519,494,"BKZ| Sistema de Musica",false) GUIEditor_Button[6] = guiCreateButton(0.738,0.8806,0.2447,0.1012,"CERRAR",true,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(0.0173,0.1781,0.9653,0.6842,true,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Regeton",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(0.012,0.035,0.2315,0.1115,"Una vaina Loca",true,GUIEditor_Tab[1]) GUIEditor_Button[4] = guiCreateButton(0.2675,0.0318,0.2515,0.121,"junto a ti",true,GUIEditor_Tab[1]) GUIEditor_Button[5] = guiCreateButton(0.5429,0.0382,0.2495,0.1178,"Sexo sudor y calor",true,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Musica en ingles",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(0.022,0.0478,0.2415,0.1242,"pump it",true,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(0.2814,0.0478,0.2695,0.1274,"sexy bitch",true,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("bachata",GUIEditor_TabPanel[1]) GUIEditor_Button[7] = guiCreateButton(0.014,0.035,0.2435,0.1242,"romeo y julieta",true,GUIEditor_Tab[3]) GUIEditor_Button[8] = guiCreateButton(0.2814,0.0382,0.2455,0.1338,"Solo por un beso",true,GUIEditor_Tab[3]) GUIEditor_Button[9] = guiCreateButton(0.5569,0.0414,0.2475,0.1274,"enseñame a olvidar",true,GUIEditor_Tab[3]) GUIEditor_Image[1] = guiCreateStaticImage(0.1233,0.0668,0.7534,0.085,"images/shruk.png",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0289,0.8846,0.4701,0.0911,"GUI Creada Por ElMota CopyRigth 2012 (c)",true,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Button[10] = guiCreateButton(0.5164,0.8846,0.2062,0.0911,"Parar",true,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end ) bindKey("F1","down", function () guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then sound = playSound( "http://escapadehigh.com/Stuff/Pump.mp3", false ) elseif ( source == GUIEditor_Button[2] ) 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[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://dc437.4shared.com/img/1082416795/657d267e/dlink__2Fdownload_2FzqOaM5Nj_3Ftsid_3D00000000-000000-00000000/preview.mp3", false ) elseif ( source == GUIEditor_Button[6] ) then guiSetVisible(GUIEditor_Window[1], false) showCursor(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 if isElement(sound) then destroyElement(sound) end end end ) Link to comment
iFoReX Posted March 4, 2012 Author Share Posted March 4, 2012 gracias man me funciono al 100% Link to comment
iFoReX Posted March 5, 2012 Author Share Posted March 5, 2012 ya podes serrar el tema solid gracias por tu ayuda Link to comment
Recommended Posts