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 hide player from all players/reveal player from all players bug

Discussion in 'Skript' started by VojaFTW, Oct 30, 2017.

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

    VojaFTW Active Member

    Joined:
    Jun 10, 2017
    Messages:
    42
    Likes Received:
    2
    Hello, i have some sort of strange bug with things mentioned in title i use this thing for vanish and everytime i test it with me test account after a move camera of my test account a little my main vanished account got revealed for everyone, i also tryed use invisible effect adn that work fine but player nametag is still visible.

    my code:
    Code (Skript):
    1. command /gvanish:
    2.     permission: burekmc.command.vanish
    3.     permission message: &cYou don't have permission to execute this command!
    4.     trigger:
    5.         hide player from all players
    6.         set {testvanish.%player%} to true
    7.         message "&aVanished!"
    8.         stop
    9.     else:
    10.         reveal player from all players
    11.         set {testvanish.%player%} to false
    12.         message "&cUnVanished"
    13.         stop
     
  2. ChisleLP

    ChisleLP Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    789
    Likes Received:
    59
    Im not sure. but the easy way:
    spawn an armor stand, lets player ride this armor stand, so then its his name invsibled.
     
  3. VojaFTW

    VojaFTW Active Member

    Joined:
    Jun 10, 2017
    Messages:
    42
    Likes Received:
    2
    but if i make player ride armorstand i think i can't move becouse i'm riding entity without movement armorstand doesn't move like horse etc...
     
  4. ChisleLP

    ChisleLP Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    789
    Likes Received:
    59
    Im not sure, but a lot told me, to hide nametags, you need to ride armorstand (I never tested it out, if you really can't movement. just try it out)
     
  5. VojaFTW

    VojaFTW Active Member

    Joined:
    Jun 10, 2017
    Messages:
    42
    Likes Received:
    2
    Ok i can test it butt can i use set {_p} to player [arsed as offline player or sommething like that if i make player offline nametag is gone i think
     
  6. Lego_freak1999

    Joined:
    Jan 26, 2017
    Messages:
    366
    Likes Received:
    19
    THE name tag thing is THE other way around THE armorstand needs To ride THE player but teleporting won't work then
     
  7. VojaFTW

    VojaFTW Active Member

    Joined:
    Jun 10, 2017
    Messages:
    42
    Likes Received:
    2
    Okk are exist some ways to fix hide/show player from all players or make invisible nametag with invisible effect applyed
     
  8. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    126
    Medals:
    You can teleport with passengers/vehicles. It just requires a bit of work, i made a function that can do it with infinite amounts of passengers and vehicles
     
    • Useful Useful x 1
  9. Lego_freak1999

    Joined:
    Jan 26, 2017
    Messages:
    366
    Likes Received:
    19
    Where?
     
  10. VojaFTW

    VojaFTW Active Member

    Joined:
    Jun 10, 2017
    Messages:
    42
    Likes Received:
    2
    I put this issue on testing and on my test server this is working perfectlly on my real server is not wokring so i think is something with skript version.
     
  11. ImOfflinezzz

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    72
    Likes Received:
    10
    Im not even sure WTF is your code but 'else' for 'trigger' looks like shit(sorry)
    Code (Skript):
    1.  
    2. command /gvanish:
    3.     permission: burekmc.command.vanish
    4.     permission message: &cYou don't have permission to execute this command!
    5.     trigger:
    6.         if {testvanish.%player%} isn't true:
    7.              hide player from all players
    8.              set {testvanish.%player%} to true
    9.              message "&aVanished!"
    10.              stop
    11.         else:
    12.              reveal player from all players
    13.              set {testvanish.%player%} to false
    14.              message "&cUnVanished"
    15.              stop
    16.  
     
    • Winner Winner x 1
  12. VojaFTW

    VojaFTW Active Member

    Joined:
    Jun 10, 2017
    Messages:
    42
    Likes Received:
    2
    Its okay to look like shit haha becouse this code is just for testing why hide player from all players and show player from all players making me a bug to after one single move of my test account my original account got visible for everyone but i think i solve this problem becouse i test my code on test server and its working perfectly and test server and orignal server is running not same version of skript soo that's causing a problem haha.
     
    • Funny Funny x 1
  13. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    126
    Medals:
    Code (Skript):
    1. function teleport(e: entity, l: location):
    2.   set {_v} to {_e}'s vehicle
    3.   set {_p} to {_e}'s passenger
    4.   make {_e}'s passenger dismount
    5.   make {_e} dismount
    6.   teleport {_e} to {_l}
    7.   teleport({_v}, {_l})
    8.   make {_e} ride {_v}
    9.   teleport({_p}, {_l})
    10.   make {_p} ride {_e}
    11.  
     
    #13 Pikachu, Nov 1, 2017
    Last edited: Nov 2, 2017
Thread Status:
Not open for further replies.
Loading...