I have this in a server (no client or shared) file, and the problem is the sound doesn't play nor does the command work. Any help?
[LUA]sound.PlayURL( "http://yp.shoutcast.com/sbin/tunein-station.pls?id=57352&play_status=1", "3d mono play loop", function( chan )
--chan is the audio channel.
--known methods include chan:Play()
chan:SetPos( Vector(-7028.000977, -13556.890625, 250.048355 ) )
chan:SetVolume( 1 )
--chan:Pause()
--chan:Stop()
end )
concommand.Add("sol_activate_clubmusic", chan)[/LUA]
[LUA]
local function PlayChan()
sound.PlayURL( "http://yp.shoutcast.com/sbin/tunein-station.pls?id=57352&play_status=1", "3d mono play loop", function( chan )
--chan is the audio channel.
--known methods include chan:Play()
chan:SetPos( Vector(-7028.000977, -13556.890625, 250.048355 ) )
chan:SetVolume( 1 )
--chan:Pause()
--chan:Stop()
end )
end
concommand.Add("sol_activate_clubmusic", PlayChan)
[/LUA]
??
Sorry, you need to Log In to post a reply to this thread.