Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################
- # LICENCJA ##
- # ###
- # Autor: whiteku ####
- # #####
- #NIE POZWALAM NA MODYFIKOWANIE LICENCJI ######
- # ######
- #NIE POZWALAM NA PODAWANIE SIE ZA AUTORA #####
- # ####
- #POZWALAM NA UZYWANIE SKRYPTU NA SWOJ SERWER ###
- # ##
- ################################################
- variables:
- {chat} = true
- command /chat [<text>]:
- trigger:
- if arg 1 is not set:
- if player has permission "chat.pomoc":
- send "&6[&3&lSkrypt by whiteku&6]"
- send "&3Dostepne komendy:"
- send " &6/chat &2- Dostepne komendy"
- send " &6/chat on &2- Wlacza chat"
- send " &6/chat off &2- Wylacza chat"
- send " &6/chat cc &2- Czysci chat"
- send "&6[&3&lSkrypt by whiteku&6]"
- send "&8-----------------------------"
- stop
- else:
- send " &8> &cNie masz dostepu do tej komendy!"
- stop
- if arg 1 is "on":
- if {chat} is false:
- if player has permission "chat.on":
- set {chat} to true
- broadcast " &8> &9Chat zostal wlaczony przez: &6%player%"
- stop
- else:
- send " &8> &cNie masz dostepu do tej komendy!"
- stop
- else:
- send " &8> &cChat jest juz wlaczony!"
- stop
- if arg 1 is "off":
- if {chat} is true:
- if player has permission "chat.off":
- set {chat} to false
- broadcast " &8> &9Chat zostal wylaczony przez: &6%player%"
- stop
- else:
- send " &8> &cNie masz dostepu do tej komendy!"
- stop
- else:
- send " &8> &cChat jest juz wylaczony!"
- stop
- if arg 1 is "cc" or "clear":
- if player has permission "chat.cc":
- loop 128 times:
- broadcast ""
- broadcast " &8> &9Chat zostal wyczyszczony przez: &6%player%"
- stop
- else:
- send " &8> &cNie masz dostepu do tej komendy!"
- stop
- on chat:
- if {chat} is false:
- if player has permission "chat.pisanie":
- stop
- else:
- cancel event
- send " &8> &cChat jest aktualnie wylaczony!"
- stop
- else:
- if player has permission "chat.antyslow":
- stop
- set {_waited} to difference between {chat.%player%.spam} and now
- if {_waited} is less than 3 real seconds seconds:
- send " &8> &cWiadomosci mozesz wysylac co &a3 &csekundy!"
- cancel event
- stop
- set {chat.%player%.spam} to now
- cancel event
- stop
Advertisement
Add Comment
Please, Sign In to add comment