avian960 Posted July 12, 2012 Share Posted July 12, 2012 How I Make On My Server: 46.120.180.191:22003 ================================================ How I Make: Only When All PLayers Die Its Change Map, Becose i am playing , and noobs die , and its change map evrey secound , how i change that only when all die ? HELP ME PLZ Link to comment
GTX Posted July 12, 2012 Share Posted July 12, 2012 You must edit "modes/base.lua" in race file. Link to comment
BorderLine Posted July 12, 2012 Share Posted July 12, 2012 You must edit "modes/base.lua" in race file. no, you must edit modes/destuctionderby.lua. check this lines function DestructionDerby:onPlayerWasted(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 1 then -- change that 1 to 0 RaceMode.endMap() else TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') end end RaceMode.setPlayerIsFinished(player) showBlipsAttachedTo(player, false) end function DestructionDerby:onPlayerQuit(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 1 then --- change 1 to 0 RaceMode.endMap() end end end and its done Link to comment
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