Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Skrpyt by xMateuszP0L v0.1
- # Permisje dla admina "chat.*"
- # Dasz lajka na skript.pl ?
- # TEMAT http://skript.pl/index.php/topic/3292-wy%C5%82%C4%85czanie-chatu/
- variables:
- {chat} = true
- command /chat [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&6&lP0L &7- CHAT"
- send "&6/chat on &7- wlacza chat"
- send "&6/chat off &7- wylacza chat"
- if arg 1 is not "on" or "off":
- send "&6&lP0L &7- CHAT"
- send "&6/chat on &7- wlacza chat"
- send "&6/chat off &7- wylacza chat"
- if arg 1 is "on":
- if {chat} is false:
- if player has permission "chat.on" or "chat.*":
- set {chat} to true
- broadcast "&7Chat zostal wlaczony."
- stop
- else:
- send "&cNie masz uprawnienia."
- stop
- else:
- send "&7Chat jest juz wlaczony"
- stop
- if arg 1 is "off":
- if arg 2 is set:
- if {chat} is true:
- if player has permission "chat.*":
- set {chat} to false
- loop 100 times:
- broadcast " "
- broadcast "&4Chat zostal wylaczony. Powod &e%colored arg 2%&4"
- stop
- else:
- send "&cNie masz uprawnienia"
- stop
- else:
- send "&cChat jest juz wylaczony"
- stop
- else:
- if {chat} is true:
- if player has permission "chat.*":
- set {chat} to false
- loop 100 times:
- broadcast " "
- broadcast "&4Chat zostal wylaczony."
- stop
- else:
- send "&cNie masz uprawnienia"
- stop
- else:
- send "&cChat jest juz wylaczony"
- stop
- on chat:
- if {chat} is false:
- if player has permission "chat.*":
- stop
- else:
- cancel event
- send "&7Chat jest aktualnie wylaczony!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment