Jump to content

Mute song


Overkillz

Recommended Posts

Hey everyone, Im currently having an issue with this.

I have added a song when the podium start, buy if x maps has a song, people heard both songs, from map and from podium.

function showWinnerMsg() 
    local sound = playSound("audio/xd.mp3") 
    setSoundVolume(sound, 1) 
    local playerTable = {} 
    local vehicleTable = {} 
    for i=1,#RankingBoard.labels do 
        playerTable[i] = RankingBoard.labels[i].name 
        vehicleTable[i] = RankingBoard.labels[i].vehicle 
    end 
    hideTimes() 
    createPodiumEffect(playerTable,vehicleTable) 
end 
addEvent("showWinMessage",true) 
addEventHandler("showWinMessage",getRootElement(),showWinnerMsg) 

I will like to mute map song when the podium song starts.

I hope you can help me.

Thanks and regards.

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