Jump to content

Need help


sckatchof

Recommended Posts

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.

screen2.jpg

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

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
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 !

-------

Omg.png

-------

Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...