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]
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: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 ?
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