Jump to content

racewin DD/DM


kevin11

Recommended Posts

you have to modify "race" resource

destructionderby.lua file:

--add this at the beggining of file:
addEvent("onPlayerDestructionDerbyWin")
 
--and somewhere near line 87 (im not sure this)
-- just after:
-- showMessage(getPlayerName(activePlayers([1])) .. ' is the final survivor!', 0, 255, 0)
-- add:
triggerEvent("onPlayerDestructionDerbyWin", getRootElement(), activePlayers[1])

then your script should look like:

addEvent("onPlayerDestructionDerbyWin",true)
addEventHandler("onPlayerDestructionDerbyWin",getRootElement(),
function (winner)
givePlayerMoney(winner, 350) -- there was a "bug" (used "winer" instead of "winner")
end
)

ps. i didnt test it :D

Edited by Guest
Link to comment
  • 1 month later...
  • 8 years later...

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