Jump to content

Need help


sckatchof

Recommended Posts

Posted
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 
) 

Posted

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 
) 

Posted
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

-------

Posted
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.

Posted

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

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