Hi,
I'm making a vanish system, but I don't know, how complete this "part". If player has permission trenend.vanish.visit and send message with name of vanish player(s), I want to cancel this message and send message to player(which send a message) with "error" message. I was made with variable {v::*}
This code is correct, but not working(code) if vanished players are 2 and greater number(of vanished players). I try with loop, but the code is with errors.
How I make cancel message with names of vanished players? In code:
Sorry for my english.
Thank for all replays.
- Ardno
I'm making a vanish system, but I don't know, how complete this "part". If player has permission trenend.vanish.visit and send message with name of vanish player(s), I want to cancel this message and send message to player(which send a message) with "error" message. I was made with variable {v::*}
Code:
on chat:
if player has permission "trenend.vanish.visit":
if message contains "%{v::*}%":
cancel event
message "Useful message xd" to player
How I make cancel message with names of vanished players? In code:
Code:
...code-I don't want to show it :D....
if {vanish::%player%::active} is not set:
loop all players:
loop-player doesn't have permission "trenend.vanish.visit":
hide player from loop-player
set {vanish::%player%::active} to true
add player to {v::*}
delete {vanish::%player%::pvp}
delete {vanish::%player%::drop}
delete {vanish::%player%::pickup}
delete {vanish::%player%::break}
delete {vanish::%player%::build}
message "Vanished" to player
else:
reveal player from all players
delete {vanish::%player%::active}
remove player from {v::*}
message "Unvanished" to player
Sorry for my english.
Thank for all replays.
- Ardno