CheiN Posted August 15, 2012 Share 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 Link to comment
TAPL Posted August 15, 2012 Share 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 Link to comment
CheiN Posted August 15, 2012 Author Share Posted August 15, 2012 im talking about race, not steal or blabla 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