void kills help

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

iiFinals

Member
Jul 18, 2020
2
0
0
17
Code:
on damage of player:
    attacker is a player:
        set {attacker} to attacker's uuid
        set {tagged::%victim's uuid%} to 10
        {tagged::%victim's uuid%} is not set
        while {tagged::%victim's uuid%} > 0:
            wait 1 second
            remove 1 from {tagged::%victim's uuid%}
            if {tagged::%victim's uuid%} = 0:
                delete {tagged::%victim's uuid%}
                delete {attacker}
        
on death of player:
    attacker is a player:
        set action bar of attacker to "&7+1 &dEnder Token &8(Killed %victim%)"
        if damage cause is void:
            if {tagged::%victim's uuid%} is set:
                set action bar of {tagged::%victim's uuid%} to "&7+1 &dEnder Token &8(Killed %victim%)"
                give {tagged::%victim's uuid%} 1 of purple dye named "&dEnder Token"
                add 1 to {kills::%{attacker}%}
                add 1 to {streak::%{attacker}%}
            else:
                loop all players:
                    set action bar of loop-player to "&d%victim% &7fell into a black hole"
so basically if i hit someone into void action bar message doesnt show and i dont get the item. and for if you fell into void and didnt get attacked the action bar death message just doesnt show

can anyone help?
[doublepost=1595090950,1595090814][/doublepost]just so you know i dont get errors
 
Status
Not open for further replies.