SHOW:
|
|
- or go back to the newest paste.
| 1 | variables: | |
| 2 | {admin.%player%} = 0
| |
| 3 | # ---------------------------------------------------------------------------- | |
| 4 | - | command /admin <text>: |
| 4 | + | |
| 5 | # ---------------------------------------------------------------------------- | |
| 6 | command /admin: | |
| 7 | permission: {@pA}
| |
| 8 | - | if arg 1 is "on": |
| 8 | + | |
| 9 | trigger: | |
| 10 | if {admin.%player%} is 0:
| |
| 11 | apply invisibility 5 to the player for 50 minutes | |
| 12 | set the player's tablist name to " " | |
| 13 | - | if arg 1 is "off": |
| 13 | + | |
| 14 | send "{@pr} &cVocê entrou no modo admin!"
| |
| 15 | set {admin.%player%} to 1
| |
| 16 | if {admin.%player%} is 1:
| |
| 17 | remove invisibility from player | |
| 18 | - | stop |
| 18 | + | |
| 19 | set the player's tablist name to "%player%" | |
| 20 | send "{@pr} &cVocê saiu do modo admin!"
| |
| 21 | set {admin.%player%} to 0 |