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

Solved Vanish

Discussion in 'Skript' started by SoulSenGaming, Feb 13, 2018.

Thread Status:
Not open for further replies.
  1. S

    SoulSenGaming Member

    Joined:
    Feb 13, 2018
    Messages:
    9
    Likes Received:
    0
    So I've been trying to create a vanish command. But when trying to use the "reveal player from all players" and "hide players from all players" from Skunity, it won't work. I've tried looking at other forum post but none of them worked can someone maybe help me?

    command /vanish:
    description: Vanish
    aliases: /v
    trigger:
    if {vanish.%player%} is true:
    set {vanish.%player%} to false
    reveal player from all players
    message "Vanish is off!" to player
    else:
    set {vanish.%player%} to true
    hide player from all players
    message "Vanish is on!" to player
     
  2. G

    Supporter

    Joined:
    Aug 1, 2017
    Messages:
    46
    Likes Received:
    0
    On the SkUnity docs, if you search "reveal", there's 3 methods. One with SkQuery, one with WildSkript and one with Skellett. Have you tried them all/have the addons?
     
  3. S

    SoulSenGaming Member

    Joined:
    Feb 13, 2018
    Messages:
    9
    Likes Received:
    0
    Ya I have
     
  4. Melsonz

    Melsonz Member

    Joined:
    Feb 15, 2018
    Messages:
    7
    Likes Received:
    0
    Code (Text):
    1. command /vanish:
    2.     aliases: /v
    3.     permission: staff.vanish
    4.     permission message: &cNo permission.
    5.     trigger:
    6.         if {vanish.%player%} is true:
    7.             loop all players:
    8.                 loop-value doesn't have permission "admin.permission"
    9.                 add loop-value to {_vanishto::*}
    10.  
    11.             reveal player from all players
    12.             set {vanish.%player%} to false
    13.             send "&aVanish is off!"
    14.         else:
    15.             loop all players:
    16.                 loop-value doesn't have permission "admin.permission"
    17.                 add loop-value to {_vanishto::*}
    18.  
    19.             hide player from {_vanishto::*}
    20.             set {vanish.%player%} to true
    21.             send "&aVanish is on!"
    22.  
    23. every 2 seconds:
    24.     loop all players:
    25.         if loop-value doesn't have permission "admin.permission"
    26.         add loop-value to {_vanishto::*}
    I don't know if this would work, I never tried this one myself but maybe you should give it a try. If you want to make all your staffs to be able to see vanished players you can change admin.permission to a permission that all your staffs have, such as staff.vanishsee
     
  5. S

    SoulSenGaming Member

    Joined:
    Feb 13, 2018
    Messages:
    9
    Likes Received:
    0
    it says it cant understand the "if loop-value doesn't have permission "admin.permission" and the reveal player thing, idk if my skunity may be broken.
    --- Double Post Merged, Feb 15, 2018, Original Post Date: Feb 15, 2018 ---
    Nevermind guys, I think I figured out the problem, my skquery was broken. Though thanks for the help!
     
Thread Status:
Not open for further replies.
Loading...