Jump to content

This skript doesn't work..


CoolAlex4734

Recommended Posts

It's been a while since I've posted, but I need some help with my skript.

Basically, it won't make the kill counter go up. Maybe because people fall into the void and skript thinks that the void is the killer? My server is a Knockback FFA server by the way. Players can hit each other with a stick and they fall into the void, but players have been telling me that the Skript doesn't work.

 

Here's the code:

on death:
    attacker is a player
    add 1 to {kills::%attacker's uuid%}


on death of player:
    clear drops
    add 1 to {deaths::%victim's uuid%}

 

Can someone please help?

Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time. - Thomas Edison

🔨 Keep Developing!

Link to comment
Share on other sites

Why dont you just do it like this

od death of player:
    if attacker is a player:
        if victim is a player:
            clear drops
            add 1 to {kills::%attacker's uuid%}
            add 1 to {deaths::%victim's uuid%}
Edited by DanRub
Link to comment
Share on other sites

  • 2 weeks later...

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
×
×
  • Create New...