~DarkRacer~ Posted March 5, 2013 Posted March 5, 2013 in the race mode: i want to make that when the "last survival" message comes up Do Not Start New Vote Map until the last player dies. does anyone know where are the files that need to edit on and what functions should i use to stop this, thx.
Anony# Posted March 5, 2013 Posted March 5, 2013 destructionderby.lua if getActivePlayerCount() <= 0 then admin>resources>race>settings>random maps>false
~DarkRacer~ Posted March 5, 2013 Author Posted March 5, 2013 it was : if getActivePlayerCount() <= 1 then i changed it to: if getActivePlayerCount() <= 0 then but didn't work
Anony# Posted March 5, 2013 Posted March 5, 2013 function DestructionDerby:onPlayerWasted(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 0 then 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() <= 0 then RaceMode.endMap() end end end
~DarkRacer~ Posted March 5, 2013 Author Posted March 5, 2013 anony# i can't edit the file it keep telling me that u have to refresh it. and everything goes back as it was.
~DarkRacer~ Posted March 5, 2013 Author Posted March 5, 2013 Ok. but i will do it later cause there is a lot of players now.
Anony# Posted March 5, 2013 Posted March 5, 2013 that madness, does not need the "restart" now just edit it
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