Fury Posted August 1, 2012 Posted August 1, 2012 hi, how can i work this with race mode? function addTotalKill(totalAmmo, killer, killerWeapon, bodypart, stealth) local account = getPlayerAccount (killer) if (account) and (killer) then setAccountData(account,"kills",getAccountData(account,"kills")+1) setElementData(killer, "kills", getAccountData(account,"kills")) end end addEventHandler ("onPlayerWasted", getRootElement(), addTotalKill) function addTotalDeath(totalAmmo, killer, killerWeapon, bodypart, stealth) local account = getPlayerAccount (source) if (account) then setAccountData(account,"deaths",getAccountData(account,"deaths")+1) setElementData(source, "deaths", getAccountData(account,"deaths")) end end addEventHandler ("onPlayerWasted", getRootElement(), addTotalKill) function checkAccountKillsDeaths(thePreviousAccount, theCurrentAccount, autoLogin) if (getAccountData(theCurrentAccount,"kills") == nil) and (getAccountData(theCurrentAccount,"deaths") == nil) then setAccountData(theCurrentAccount,"kills",0) setAccountData(theCurrentAccount,"deaths",0) end end addEventHandler("onPlayerLogin",getRootElement(),checkAccountKillsDeaths) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() call(getResourceFromName("scoreboard"), "addScoreboardColumn", "kills",getRootElement(),1) call(getResourceFromName("scoreboard"), "addScoreboardColumn", "deaths",getRootElement(),2) end)
Castillo Posted August 1, 2012 Posted August 1, 2012 He's not asking for help to fix something, he wants to make that script work on "race" game mode.
Fury Posted August 2, 2012 Author Posted August 2, 2012 He's not asking for help to fix something, he wants to make that script work on "race" game mode. i can pay for it.. if anyone can make that.
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