Hide doesn't work on join ?

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

Skoll

Active Member
Sep 2, 2020
65
6
8
28
Code:
    if {mode.control.%event-player%} is "false":
        if {mode.control.ismob.%{cm.currentplayer}%} is "CM:Player":
            broadcast "asd"
            broadcast "%{cm.currentplayer}%"
            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 ?
[doublepost=1602185623,1602178290][/doublepost]
Code:
    if {mode.control.%event-player%} is "false":
        if {mode.control.ismob.%{cm.currentplayer}%} is "CM:Player":
            broadcast "asd"
            broadcast "%{cm.currentplayer}%"
            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 ?
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:
on join:
if {mode.control.%event-player%} is "false":
        if {mode.control.ismob.%{cm.currentplayer}%} is "CM:Player":
            make console execute command "CM:Hide %{cm.currentplayer}% %player%"
    
command CM:Hide <player> <player>:
    usage: /CM:Hide <target to hide> for <player>
    permission: skript.CMHide
    permission message: &cVocê não tem permissão para executar esse comando.
    executable by: console
    trigger:
        hide arg-1 from arg-2
 
Status
Not open for further replies.