Jump to content

Question about the alternative DM/DD script


bartje01

Recommended Posts

Hello everyone. I'm making a DM/DD server. I downloaded the script from here : https://community.multitheftauto.com/ind ... ls&id=5530

There's one problem. When someone's last alive he wins the map and the next map starts. I want to let the last alive finish the map and when he dies the next map should start. Does anyone know where to look?

I've been searching for an hour by now and still no clue.

Link to comment

Open ...\server\mods\deathmatch\resources\[gamemodes]\[race]\race\modes\destructionderby.lua

Edit

function DestructionDerby:onPlayerWasted(player) 
    if isActivePlayer(player) then 
        self:handleFinishActivePlayer(player) 
        if getActivePlayerCount() <= 1 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 

to

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 

(1 change to 0)

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