Can't understand?
You mean like that?
Here is my server side script
addEvent("firstSound", true)
addEventHandler("firstSound", root,
function( )
for i,v in ipairs( getElementsByType( "player" ) ) do
local x, y, z = getElementPosition( v );
local playButton = playSound( 'http://www.181.fm/playing.php?station=181-party&embed=1')
setSoundMaxDistance( playButton, 100 )
end
end)
addEvent("firstSoundStop", true)
addEventHandler("firstSoundStop", root,
function ( )
if(isSoundPaused(playButton)) then --sound is paused, un-pause it
setSoundPaused(playButton, false)
else --sound is not paused, pause it
setSoundPaused(playButton, true)
end
end)