Kills - Specific variables.

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Hello everyone,

I was wondering if you can have 1 variable for example: {kills.ammount} and everytime the player gets a kill it adds one to that variable ( {kills.ammount} ) but will leave everyone else with the ammount of kills they had.

Here's my current code:

Code:
on kill:
   if {kill.ammount} is true:
      add 1 to {kill.ammount}
      stop

Thanks <3

- TheCringleYT
 
Make sure to use %player's uuid% so the player doesn't lose all their kills when they change their name. (In this case you'll wanna use %attacker's uuid% however)
Code:
on death:
    if victim is a player:
        if attacker is a player:
            add 1 to {kills.amount.%attacker's uuid%}
 
Status
Not open for further replies.