Jump to content

A way ?


Recommended Posts

Try onMapStarting to store information about the current map and onPlayerFinish and check if the player's rank is 1. You may have to look into race resource to see what mapInfo table holds when fired to onMapStarting.

sorry, but i don't get what you mean :(

Link to comment

Go to: "race/modes/destructionderby.lua" and search for the function: "DestructionDerby:handleFinishActivePlayer"

And after:

if #activePlayers == 1 then 


triggerEvent ( "onPlayerDestructionDerbyWin", activePlayers [ 1 ] ) 

Then you can use this new event:

addEvent ( "onPlayerDestructionDerbyWin", true ) 
addEventHandler ( "onPlayerDestructionDerbyWin", root, 
    function ( ) 
        outputChatBox ( getPlayerName ( source ) .." has won the round!" ) 

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