Hi, when I have my staffmode skript vanish on and I tp to anyone who is in another world the vanish switch off
Code (example):
command /vanish:
trigger:
if player has permission "vanish.sk":
loop all players:
if {vanish.%loop-player%} is false:
set {vanish.%loop-player%} to true
hide player from loop-player
reveal loop-player to player
send "Vanish on"
stop
if {vanish.%loop-player%} is true:
set {vanish.%loop-player%} to false
reveal player to loop-player
reveal loop-player to player
send "Vanish off"
stop
solution?
Code (example):
command /vanish:
trigger:
if player has permission "vanish.sk":
loop all players:
if {vanish.%loop-player%} is false:
set {vanish.%loop-player%} to true
hide player from loop-player
reveal loop-player to player
send "Vanish on"
stop
if {vanish.%loop-player%} is true:
set {vanish.%loop-player%} to false
reveal player to loop-player
reveal loop-player to player
send "Vanish off"
stop
solution?