Leaderboard for Top Kills

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

This kill counter that you are using is too bad! Use this instead:

Code:
on death:
  add 1 to {kills::%attacker's uuid%}
  add 1 to {deaths::%victim's uuid%}

on join:
  if {kills::%player's uuid%} isn't set:
    set {kills::%player's uuid%} to 0

on join:
  if {deaths::%player's uuid%} isn't set:
    set {deaths::%player's uuid%} to 0

command /resetstats:
    trigger:
        loop all players:
            delete {killstreak::%loop-player%}
            delete {kills::%loop-player's uuid%}
            delete {deaths::%loop-player's uuid%}

EDIT: You can add permission for /resetstats so players cant reset them!
 
This kill counter that you are using is too bad! Use this instead:

Code:
on death:
  add 1 to {kills::%attacker's uuid%}
  add 1 to {deaths::%victim's uuid%}

on join:
  if {kills::%player's uuid%} isn't set:
    set {kills::%player's uuid%} to 0

on join:
  if {deaths::%player's uuid%} isn't set:
    set {deaths::%player's uuid%} to 0

command /resetstats:
    trigger:
        loop all players:
            delete {killstreak::%loop-player%}
            delete {kills::%loop-player's uuid%}
            delete {deaths::%loop-player's uuid%}

EDIT: You can add permission for /resetstats so players cant reset them!
Too bad, this one only works for only players

this is a better way
Code:
command /resetstats:
    trigger:
        if {killstreak::*} is set:
            loop {killstreak::*}:
                delete {killstreak::%loop-value%}
        if {kills::*} is set:
            loop {kills::*}:
                delete {kills::%loop-value%}
        if {deaths::*} is set:
            loop {deaths::*}:
                delete {deaths::%loop-value%}