sckatchof Posted February 11, 2012 Author Share Posted February 11, 2012 Tested.Lol, If somebody leave it output only 1 time in 50 sec. You can remove timer. Sorry kenix for Disturbance but i remove timer and i have a some problem. Like this : local posX, posY, posZ = 269.70001220703, -1895.0999755859, 0.69999998807907 local RadioColshape = createColCircle ( 269.70001220703, -1895.0999755859, 0.69999998807907,150 ) local radioURL = "http://www.181.fm/winamp.pls?station=181-power&style=mp3" local radius = 150 local volume = 4.0 local bSpam local radio = playSound3D( radioURL, posX, posY, posZ, false ) setSoundVolume( radio, volume) setSoundMaxDistance( radio, radius ) addEventHandler( "onClientColShapeLeave",RadioColshape, function( tplayer ) if getElementType( tplayer ) == "player" and tplayer == localPlayer then if not bSpam then bSpam = true setTimer( function( ) bSpam = false end, 50000, 1 ) end end end ) Link to comment
Kenix Posted February 11, 2012 Share Posted February 11, 2012 I tested it now it working! local message = { "#ffff00RADIO: #ffffffStream stopped" } local posX, posY, posZ = 269.70001220703, -1895.0999755859, 0.69999998807907 local RadioColshape = createColCircle ( 269.70001220703, -1895.0999755859, 0.69999998807907,150 ) local radioURL = "http://www.181.fm/winamp.pls?station=181-power&style=mp3" local radius = 150 local volume = 4.0 local bSpam local radio = playSound3D( radioURL, posX, posY, posZ, false ) setSoundVolume( radio, volume) setSoundMaxDistance( radio, radius ) addEventHandler( "onClientColShapeLeave",RadioColshape, function( tplayer ) if getElementType( tplayer ) == "player" and tplayer == localPlayer then if not bSpam then setTimer( outputChatBox, 800, 1, message [ math.random( #message ) ], 255, 255, 255, true ) bSpam = true end setTimer( function( ) bSpam = false end, 50000, 1 ) end end ) Link to comment
sckatchof Posted February 11, 2012 Author Share Posted February 11, 2012 I tested it now it working! local message = { "#ffff00RADIO: #ffffffStream stopped" } local posX, posY, posZ = 269.70001220703, -1895.0999755859, 0.69999998807907 local RadioColshape = createColCircle ( 269.70001220703, -1895.0999755859, 0.69999998807907,150 ) local radioURL = "http://www.181.fm/winamp.pls?station=181-power&style=mp3" local radius = 150 local volume = 4.0 local bSpam local radio = playSound3D( radioURL, posX, posY, posZ, false ) setSoundVolume( radio, volume) setSoundMaxDistance( radio, radius ) addEventHandler( "onClientColShapeLeave",RadioColshape, function( tplayer ) if getElementType( tplayer ) == "player" and tplayer == localPlayer then if not bSpam then setTimer( outputChatBox, 800, 1, message [ math.random( #message ) ], 255, 255, 255, true ) bSpam = true end setTimer( function( ) bSpam = false end, 50000, 1 ) end end ) Thank you for help but it stay show like this i don't know why ! ------- ------- Link to comment
Kenix Posted February 11, 2012 Share Posted February 11, 2012 local message = { "#ffff00RADIO: #ffffffStream stopped" } local posX, posY, posZ = 269.70001220703, -1895.0999755859, 0.69999998807907 local RadioColshape = createColCircle ( 269.70001220703, -1895.0999755859, 0.69999998807907,150 ) local radioURL = "http://www.181.fm/winamp.pls?station=181-power&style=mp3" local radius = 150 local volume = 4.0 local bSpam local radio = playSound3D( radioURL, posX, posY, posZ, false ) setSoundVolume( radio, volume) setSoundMaxDistance( radio, radius ) addEventHandler( "onClientColShapeLeave",RadioColshape, function( tplayer ) if getElementType( tplayer ) == "player" and tplayer == localPlayer then if not bSpam then setTimer( outputChatBox, 800, 1, message [ math.random( #message ) ], 255, 255, 255, true ) bSpam = true setTimer( function( ) bSpam = false end, 50000, 1 ) end end end ) Idk i tested it and it working. Link to comment
sckatchof Posted February 11, 2012 Author Share Posted February 11, 2012 ferst thank you for help again and why u put marker ? I don't know if u understand me or not i make a map a nightclub and i want to put radio3D and when i leave nightclub it show in chatbox this message : RADIO: Stream stopped. Many times Link to comment
Kenix Posted February 11, 2012 Share Posted February 11, 2012 Upload resource. And give me link i test it. Link to comment
sckatchof Posted February 11, 2012 Author Share Posted February 11, 2012 Upload resource.And give me link i test it. Now it work thank yooooooooooooouuu 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