CheiN Posted August 15, 2012 Posted August 15, 2012 exports.scoreboard:scoreboardAddColumn( "score" ) function xcore () zcore = getElementData(source,"score") or 0 setElementData(source,"score",zcore+5) end addEvent("onPlayerWasted",true) addEventHandler("onPlayerWasted",getRootElement(),xcore) ¿IM GOOD? THX FOR READ My scripts: toptimes on scoreboard (server21) Screen on login(scren) Score on scoreboard (score)
TAPL Posted August 15, 2012 Posted August 15, 2012 i guess the score should go to the killer not for who dead exports.scoreboard:scoreboardAddColumn( "score" ) function xcore (_,killer) zcore = getElementData(killer,"score") or 0 setElementData(killer,"score",zcore+5) end addEventHandler("onPlayerWasted",root,xcore) addEvent not needed, only for custom event
CheiN Posted August 15, 2012 Author Posted August 15, 2012 im talking about race, not steal or blabla My scripts: toptimes on scoreboard (server21) Screen on login(scren) Score on scoreboard (score)
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