Solved Bug!

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

christianmv84

Active Member
Jul 20, 2017
50
0
0
59
code_language.skript:
on damage:
    attacker is a player
    victim is a player
    set {Hitted::%victim%} to attacker
    set {Hitted::%attacker%} to victim
    wait 15 seconds
    delete {Hitted::%victim%}
    delete {Hitted::%attacker%}

code_language.skript:
on death:
    if damage was caused by void:
        victim is a player
        if {Hitted::%victim%} is set:
            set death message to "&a%victim% &7fue tirado al vacio por &c%{Hitted::%victim%}%"
        else:
            set death message to "&a%victim% &7se ha tirado al &cvacio"

That supposedly is a hitdelay, with a coldown of 15 seconds, because when I throw someone into the void, the coldown sometimes says that he has thrown himself and others that he has thrown me, and always has the coldown activated, always I shot you before the 15 seconds pass, it must be some bug, it is not deleted or it is not attached correctly
Can anybody help me