Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #========================================================================================================#
- # LICENCJA #
- #========================================================================================================#
- # ZAKAZ: #
- # * Modyfikowania treści skryptu #
- # * Przywłaszczania sobie autorstwa skryptu #
- # * Zarabiania na skrypcie #
- # * Udostepniania skryptu w swoich paczkach serwerowych #
- # * Usuwania tresci zawierajacych informacje o autorze #
- # * Podszywania sie pod autora #
- # * Udostepniania skryptu w paczkach plikow serwerowch itp #
- # * Usuwania tresci zawierajacych autora #
- # * Dopisywania wszelkich dodatków typu strona www #
- #========================================================================================================#
- # POZWOLENIA: #
- # * Modyfikowanie wiadomości skryptu na wlasne potrzeby #
- # * Dopisywanie fragmentow na wlasne potrzeby #
- #========================================================================================================#
- # Mylnie odczytana licencja nie zwalnia z przestrzegania jej. #
- #========================================================================================================#
- #========================================================================================================#
- # Skrypt stworzony przez HugoZvPlayZ #
- # Nazwa: ChatZ #
- # Wersja: 1.0 #
- # Skript: 2.0.2 #
- #========================================================================================================#
- #--------------------------------------------------------------------------------------------------------#
- # WYMAGANIA #
- #--------------------------------------------------------------------------------------------------------#
- # Pluginy:
- # ● Skript
- #--------------------------------------------------------------------------------------------------------#
- # USTAWIENIA #
- #--------------------------------------------------------------------------------------------------------#
- options:
- # Tag Skryptu
- tag: &4&lChat&0&lZ
- # Co ile sekund mozna wysyłać wiadomości na chacie
- ChatZ.spam: 5
- # Info | Chat jest wylaczony
- ChatZ.msg.chat.off: &9Chat jest wylaczony
- # Info | Chat zostal wlacozny
- ChatZ.msg.on: &9Chat zostal wlaczony przez &a%player%
- # Info | Chat jest juz wlaczony
- ChatZ.msg.on.on: &9Chat jest juz wlaczony
- # Info | Chat zostal wylaczony
- ChatZ.msg.off: &9Chat zostal wylaczony przez &a%player%
- # Info | Chat jest juz wylaczony
- ChatZ.msg.off.off: &9Chat jest juz wylaczony
- # Info | Chat zostal wyczyszczony
- ChatZ.msg.clear: &9Chat zostal wyczyszczony przez &a%player%
- # Info | Wiadomosc mozesz pisac co {@ChatZ.spam} sekund
- ChatZ.msg.spam: &9Wiadomosc mozesz pisac co &c{@ChatZ.spam} &9sekund
- # Info | Brak uprawnien
- ChatZ.permission: &4Nie masz uprawnien
- # Info | Reload skryptu
- ChatZ.reload: &aSkrypt przeladowany pomyslnie
- #--------------------------------------------------------------------------------------------------------#
- # UPRAWNIEIA #
- #--------------------------------------------------------------------------------------------------------#
- # /ChatZ pomoc ● Pomoc ● brak #
- # /ChatZ <on|off> ● Wlacza|Wylacza chat ● ChatZ.admin #
- # /ChatZ clear ● Czysci chat ● ChatZ.admin #
- # /ChatZ reload ● Reload skryptu ● ChatZ.admin #
- # /ChatZ info ● Info o Skrypcie ● brak #
- # brak ● Mozliwosc pisania na wylaczonym chatcie ● ChatZ.unlimited #
- # [] - opcjonalnie | <> - wymagane #
- #--------------------------------------------------------------------------------------------------------#
- #--------------------------------------------------------------------------------------------------------#
- # KOD #
- #--------------------------------------------------------------------------------------------------------#
- variables:
- {ChatZ.on} = true
- {ChatZ.spam.%player%} = true
- on chat:
- if {ChatZ.on} is false:
- if player doesn't have permission "ChatZ.unlimited":
- cancel event
- message "{@tag} &d&l| {@ChatZ.msg.chat.off}"
- if {ChatZ.on} is true:
- if {ChatZ.spam.%player%} is true:
- if player doesn't have permission "ChatZ.unlimited":
- cancel event
- message "{@tag} &d&l| {@ChatZ.msg.spam}"
- set {ChatZ.spam.%player%} to true
- wait {@ChatZ.spam} seconds
- set {ChatZ.spam.%player%} to false
- command /ChatZ [<text>]:
- trigger:
- if argument 1 is not set:
- execute player command "ChatZ pomoc"
- if argument 1 is "pomoc":
- if player has permission "ChatZ.gracz":
- message "&5&l<---------------{@tag}&5&l--------------->"
- message "&e&l* &3/ChatZ pomoc &f- &6Pomoc"
- message "&e&l* &3/ChatZ <on|off> &f- &6Ranking"
- message "&e&l* &3/ChatZ clear &f- &6Pomoc"
- message "&e&l* &3/ChatZ reload &f- &6Reload"
- message "&5&l<---------------{@tag}&5&l--------------->"
- else:
- message "{@tag} &d&l| {@ChatZ.permission}"
- if argument 1 is "on":
- if player has permission "ChatZ.admin":
- if {ChatZ.on} is true:
- message "{@tag} &d&l| {@ChatZ.msg.on.on}"
- if {ChatZ.on} is false:
- set {ChatZ.on} to true
- broadcast "{@tag} &d&l| {@ChatZ.msg.on}"
- else:
- message "{@tag} &d&l| {@ChatZ.permission}"
- if argument 1 is "off":
- if player has permission "ChatZ.admin":
- if {ChatZ.on} is false:
- message "{@tag} &d&l| {@ChatZ.msg.off.off}"
- if {ChatZ.on} is true:
- set {ChatZ.on} to false
- broadcast "{@tag} &d&l| {@ChatZ.msg.off}"
- else:
- message "{@tag} &d&l| {@ChatZ.permission}"
- if argument 1 is "clear":
- if player has permission "ChatZ.admin":
- loop 100 times:
- broadcast ""
- broadcast "{@tag} &d&l| {@ChatZ.msg.clear}"
- else:
- message "{@tag} &d&l| {@ChatZ.permission}"
- if argument 1 is "reload":
- if player has permission "ChatZ.admin":
- execute console command "skript reload ChatZ"
- message "{@tag} &d&l| {@ChatZ.reload}"
- set {ChatZ.on} to true
- else:
- message "{@tag} &d&l| {@ChatZ.permission}"
- if argument 1 is "info":
- message "&5&l<---------------{@tag}&5&l--------------->"
- message "&e&l* &3Skrypt: &4&lChat&0&lZ"
- message "&e&l* &3Wersja: &a1.0"
- message "&e&l* &3Autor: &aHugoZvPlayZ"
- message "&5&l<---------------{@tag}&5&l--------------->"
- #-------------------------------------------- Koniec skryptu --------------------------------------------#
- #------------------------------- © by HugoZvPlayZ - Strona: www.HvZ.ugu.pl ------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment