1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where is the ERROR?

Discussion in 'Skript' started by AKE, Jun 21, 2018.

Thread Status:
Not open for further replies.
  1. AKE

    AKE New Member

    Joined:
    Apr 22, 2018
    Messages:
    7
    Likes Received:
    0
    where is the error? I can't find it!

    on death:
    clear drops
    set {cooldown.%victim%} to true
    message "&cDu wurdest von dem Spieler &e%attacker% &cgetötet!" to victim
    message "&aDu hast den Spieler &b%victim% &agetötet!" to attacker
    add 20 to attacker
    if victim is in "Knock1" or "Knock2":
    delete {location.%victim%}
    teleport victim to {location.knockit.join}
     
  2. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    15
    Medals:
    Code (Skript):
    1. add 20 to attacker
    that doesnt exist (line 6)
    --- Double Post Merged, Jun 23, 2018, Original Post Date: Jun 21, 2018 ---
    use this (accidental double post sorry)

    Code (Skript):
    1. on death:
    2.    clear drops
    3.    set {cooldown.%victim%} to true
    4.    message "&cDu wurdest von dem Spieler &e%attacker% &cgetötet!" to victim
    5.    message "&aDu hast den Spieler &b%victim% &agetötet!" to attacker
    6.    add 20 to attacker
    7.    if victim is in "Knock1" or "Knock2":
    8.        delete {location.%victim%}
    9.        force player to respawn
    10.        wait 1 tick
    11.        teleport victim to {location.knockit.join}
     
Thread Status:
Not open for further replies.

Share This Page

Loading...