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.

doesn't make sense

Discussion in 'Skript' started by ezmann!44, Jul 15, 2017.

Thread Status:
Not open for further replies.
  1. ezmann!44

    ezmann!44 Member

    Joined:
    Jul 2, 2017
    Messages:
    35
    Likes Received:
    1
    Im making a script that if attacker hits victim, and victim gets knocked into void, it will say "was knocked into void" (only if attacker Or victim is NOT is vanish mode, if it is, then it wont say it, only for the player who is MOD+)

    But im having problems. {deadFall.%victim%} contains "i.%attacker%". but it still says it in chat "player was knocked into void by ---". (for non MOD players)

    how should i fix this.

    Code (Skript):
    1.             if {deadFall.%victim%} contains "i.%attacker%":
    2.                 set the death message to ""
    3.                 broadcast "contain"
    4.                 broadcast "%{deadFall.%victim%}%"
    5.                 loop all players:
    6.                     if loop-player has permission "vanish.see":
    7.                         send "%victim% was knocked into the void by  %{deadFall.%victim%}%" to loop-player
    8.                     else:
    9.                         stop
    10.                 delete {deadFall.%victim%}
    11.             else:
    12.                 broadcast "not contain"
    13.                 broadcast "%{deadFall.%victim%}%"
    14.                 set the death message to "%victim% was knocked into the void by  %{deadFall.%victim%}%"
    15.                 delete {deadFall.%victim%}
     
Thread Status:
Not open for further replies.

Share This Page

Loading...