Jump to content

zombie kills score


Chaos

Recommended Posts

Try this, and please read the comments in it:

addEventHandler("onZombieWasted",root, --Wait for a zombie to die 
    function(att) --when a zombie dies, get the attacker/killer 
        local kills = getElementData(att,"zombieKills") or 0 --get how much zombies they killed and if they have not killed any, then give them 0 
        setElementData(att,"zombieKills",kills) --set how much zombies they killed 
    end 
) 

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