Overkillz Posted August 18, 2014 Posted August 18, 2014 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.
Et-win Posted August 18, 2014 Posted August 18, 2014 gMap = exports.mapmanager:getRunningGamemodeMap() mapRoot = getResourceRootElement(gMap) getElementsByType("sound", mapRoot)
Overkillz Posted August 18, 2014 Author Posted August 18, 2014 Can u help me a bit more, IDK what should I do with these variables (if are them) And thanks for answer ^^
Bonsai Posted August 18, 2014 Posted August 18, 2014 Just ask the creator, much easier for all of us.
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