Jump to content

¿im good? II


CheiN

Recommended Posts

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

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

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