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.

Hide player issue

Discussion in 'Skript' started by ItzEfeYT, Oct 28, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. ItzEfeYT

    ItzEfeYT Member

    Joined:
    Oct 28, 2019
    Messages:
    1
    Likes Received:
    0
    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?
     
  2. TheCringleYT

    TheCringleYT Active Member

    Joined:
    Sep 29, 2019
    Messages:
    195
    Likes Received:
    4
    Try this :emoji_slight_smile: Sorry for late reply lol.

    Code (Text):
    1.  
    2. command /vanish:
    3.     permission: vanish.sk
    4.     trigger:
    5.         if {vanish.staff} is false:
    6.             set {vanish.staff} to true
    7.             hide player from players
    8.             send "Ooofffff... your vanished" to player
    9.             stop
    10.         if {vanish.staff} is true:
    11.             set {vanish.staff} to true
    12.             reveal player to players
    13.             send "Oooffffff... you unvanished" to player
    14.             stop
     
  3. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    Make sure to mark this as solved. If it works, of course.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...