Jump to content

Mute mapmusic.


Recommended Posts

Hi all,

I' just got an radioplayer for my server.

It's an DM server and we have alot maps with music integrated which you can turn off by pressing M.

But now my question is, I want to make a script to turn the mapmusic automatic off when the client is listening to the radio channel. Can someone help me with this ?

Thanks :)

Link to comment

You can make variable

  
local turnedOn = false 
  
function toggleRadioGUI() 
    if turnedOn == false then 
    turnedOn = true 
    -- here radio is running 
    else 
    turnedOn = false 
    -- here radio is turned off 
    end 
end 
  
  

then just put condition : if turnedOn == false then .... and something like that

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