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.
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%}