Hide player issue

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

ItzEfeYT

Member
Oct 28, 2019
1
0
0
25
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?
 
Try this :emoji_slight_smile: Sorry for late reply lol.

Code:
command /vanish:
    permission: vanish.sk
    trigger:
        if {vanish.staff} is false:
            set {vanish.staff} to true
            hide player from players
            send "Ooofffff... your vanished" to player
            stop
        if {vanish.staff} is true:
            set {vanish.staff} to true
            reveal player to players
            send "Oooffffff... you unvanished" to player
            stop
 
Status
Not open for further replies.