LucasBaker Posted May 22, 2013 Share Posted May 22, 2013 Well this script makes music touch to all of the server and I would like for the music to play via links and not for files eg function startMusic() setRadioChannel(0) song = playSound("musica.mp3",true) end function toggleSong() if not songOff then setSoundVolume(song,0) songOff = true removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) else setSoundVolume(song,1) songOff = false setRadioChannel(0) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff) addCommandHandler("music",toggleSong) bindKey("m","down","music") links instead it could be for example link: setRadioChannel(0) song = playSound("http://dc377.4shared.com/download/ufzJw_G0/System_of_a_Down-Chop_Suey.mp3?tsid=20130522-204925-26cc87a7",true) end Link to comment
manawydan Posted May 22, 2013 Share Posted May 22, 2013 bom, vc esta na sessão portugues e esta escrevendo em ingles? ( não entendi sua duvida) 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