doesn't make sense

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

ezmann!44

Member
Jul 2, 2017
35
1
0
26
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_language.skript:
            if {deadFall.%victim%} contains "i.%attacker%":
                set the death message to ""
                broadcast "contain"
                broadcast "%{deadFall.%victim%}%"
                loop all players:
                    if loop-player has permission "vanish.see":
                        send "%victim% was knocked into the void by  %{deadFall.%victim%}%" to loop-player
                    else:
                        stop
                delete {deadFall.%victim%}
            else:
                broadcast "not contain"
                broadcast "%{deadFall.%victim%}%"
                set the death message to "%victim% was knocked into the void by  %{deadFall.%victim%}%"
                delete {deadFall.%victim%}
 
Status
Not open for further replies.