bartje01 Posted September 18, 2012 Share Posted September 18, 2012 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
Memory Posted September 18, 2012 Share Posted September 18, 2012 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
bartje01 Posted September 18, 2012 Author Share Posted September 18, 2012 Thanks it works. Now I ahve another problem. When I open the mapshop it doesn't show any map. I have my maps in here: J:\MTA\server\mods\deathmatch\resources Link to comment
bartje01 Posted September 22, 2012 Author Share Posted September 22, 2012 Guys.. Pwease?? Link to comment
toptional Posted September 22, 2012 Share Posted September 22, 2012 Start your map in admin panel 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