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 doesn't work on join ?

Discussion in 'Skript' started by Skoll, Oct 8, 2020.

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

    Skoll Active Member

    Joined:
    Sep 2, 2020
    Messages:
    65
    Likes Received:
    6
    Code (Text):
    1.     if {mode.control.%event-player%} is "false":
    2.         if {mode.control.ismob.%{cm.currentplayer}%} is "CM:Player":
    3.             broadcast "asd"
    4.             broadcast "%{cm.currentplayer}%"
    5.             hide {cm.currentplayer} from event-player
    The condition sequence its ok, because it broadcast "asd", and the variable {cm.currentplayer} its ok because broadcast the name of player that is in control mode.
    Only the hide line isn't working, why ?
    --- Double Post Merged, Oct 8, 2020, Original Post Date: Oct 8, 2020 ---
    I did a way to work, but, why the first code doesn't work? It is a bug? drop effect doesn't work on death event too, I used the same method to make work, commands.

    Code (Text):
    1.    
    2. on join:
    3. if {mode.control.%event-player%} is "false":
    4.         if {mode.control.ismob.%{cm.currentplayer}%} is "CM:Player":
    5.             make console execute command "CM:Hide %{cm.currentplayer}% %player%"
    6.    
    7. command CM:Hide <player> <player>:
    8.     usage: /CM:Hide <target to hide> for <player>
    9.     permission: skript.CMHide
    10.     permission message: &cVocê não tem permissão para executar esse comando.
    11.     executable by: console
    12.     trigger:
    13.         hide arg-1 from arg-2
     
Thread Status:
Not open for further replies.

Share This Page

Loading...