Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ------------------------------------------- #
- # youChat #
- # ------------------------------------------- #
- # Witam, to moj trzeci skrypt (drugi dobry) o nazwie "youChat". #
- # Wprowadzam nam: #
- # - Mozliwosc robienia konferencji (admini wszystko widza) #
- # - Dawanie niestandardowych prefix'ów #
- # - Czyszczenie chatu #
- # - Zablokowanie pisania uzytkownikowi (mute) #
- # - Zablokowanie tworzenia i dolaczania do konferencji uzytkownikowi #
- # - Przelaczanie chatu #
- # - Dodawanie godziny i daty do chatu #
- # ------------------------------------------- #
- # Wersja: v1.1 #
- # Autor: Jan kk #
- # Dla skript.pl #
- # ------------------------------------------- #
- # Zabraniam: #
- # - Jakiegolwiek modyfikowania kodu! #
- # - Podszywania sie pod autora! #
- # Zezwalam na: #
- # - Używanie skryptu na serwerach publicznych! #
- # ------------------------------------------- #
- options:
- prefix: &f[&ayouChat&f]
- command /youChat [<text>] [<text>]:
- aliases: chat
- trigger:
- if arg 1 is "zaloz" or "stworz" or "create":
- if {youChat::zakaz::%player%} is true:
- send "{@prefix} &cMasz zakaz tworzenia konferencji!"
- stop
- if {youChat::konferencja::%player%} is set:
- send "{@prefix} &cStworzyles juz konferencje!"
- stop
- if arg 2 is not set:
- send "{@prefix} &cPodaj nazwe nowej konferencji!"
- stop
- add "%arg 2%" to {youChat::konferencje::*}
- set {youChat::konferencja::%player%} to "%arg 2%"
- set {youChat::konferencja.admin::%arg 2%} to "%player%"
- send "{@prefix} &2Poprawnie utworzono konferencje o nazwie '%arg 2%'"
- add player to {youChat::czlonkowie::%arg 2%::*}
- stop
- if arg 1 is "usun" or "delete":
- if {youChat::zakaz::%player%} is true:
- send "{@prefix} &cMasz zakaz tworzenia konferencji!"
- stop
- if {youChat::konferencja::%player%} is not set:
- send "{@prefix} &cNie masz zadnej konferencji!"
- stop
- if {youChat::konferencja.admin::%{youChat::konferencja::%player%}%} is not "%player%":
- send "{@prefix} &cNie jestes administratorem danej konferencji"
- stop
- remove "%{youChat::konferencja::%player%}%" from {youChat::konferencje::*}
- loop all players:
- if {youChat::konferencja::%loop-player%} is {youChat::konferencja::%player%}:
- clear {youChat::konferencja::%loop-player%}
- clear {youChat::konferencja.admin::%{youChat::konferencja::%player%}%}
- send "{@prefix} &2Pomyslnie usunieto konferencje!"
- stop
- if arg 1 is "list" or "lista":
- if {youChat::konferencje::*} is not set:
- send "{@prefix} &cNie ma zadnych konferencji!"
- stop
- send "{@prefix} &2Lista wszystkich konferencji:"
- send "&6%{youChat::konferencje::*}%"
- stop
- if arg 1 is "dodaj" or "add":
- if {youChat::zakaz::%player%} is true:
- send "{@prefix} &cMasz zakaz tworzenia konferencji!"
- stop
- if {youChat::konferencja::%player%} is not set:
- send "{@prefix} &cNie masz zadnej konferencji!"
- stop
- if {youChat::konferencja.admin::%{youChat::konferencja::%player%}%} is not "%player%":
- send "{@prefix} &cNie jestes administratorem danej konferencji"
- stop
- if arg 2 is not set:
- send "{@prefix} &cPodaj, kogo chcesz zaprosic!"
- stop
- set {youChat::zaproszenie::%{youChat::konferencja::%player%}%::%argument 2%} to true
- loop all players:
- if loop-player is "%argument 2%":
- send "{@prefix} &aZostales zaproszony do konferencji &6%{youChat::konferencja::%player%}%" to loop-player
- send "{@prefix} &aAby zaakceptować wpisz: &6/youChat dolacz %{youChat::konferencja::%player%}%"
- send "{@prefix} &2Zaprosiles do konferencji gracza o nazwie: &6%argument 2%"
- stop
- if arg 1 is "dolacz" or "join":
- if {youChat::zakaz::%player%} is true:
- send "{@prefix} &cMasz zakaz tworzenia konferencji!"
- stop
- if arg 2 is not set:
- send "{@prefix} &cPodaj, do jakiej konferencji chcesz dolaczyc!"
- stop
- if {youChat::zaproszenie::%argument 2%::%player%} is true:
- clear {youChat::zaproszenie::%argument 2%::%player%}
- set {youChat::konferencja::%player%} to "%arg 2%"
- add player to {youChat::czlonkowie::%arg 2%::*}
- send "{@prefix} &2Poprawnie dolaczyles do: %arg 2%"
- stop
- send "{@prefix} &cNie dostales zaproszenia od tej konferencji!"
- stop
- if arg 1 is "data":
- if player is an op:
- if arg 2 is "on":
- if {youChat::data.status} is true:
- send "{@prefix} &cWyswietlanie daty jest juz wlaczone!"
- stop
- set {youChat::data.status} to true
- send "&2Ustawiono wyswietlanie daty na wlaczone!"
- stop
- if arg 2 is "off":
- if {youChat::data.status} is not set:
- send "{@prefix} &cWyswietlanie daty jest juz wylaczone!"
- stop
- clear {youChat::data.status}
- send "&2Ustawiono wyswietlanie daty na wylaczone!"
- stop
- if arg 2 is "przelacz":
- if {youChat::data.status} is true:
- clear {youChat::data.status}
- send "{@prefix} &2Ustawiono wyswietlanie daty na wylaczone!"
- stop
- if {youChat::data.status} is not set:
- set {youChat::data.status} to true
- send "{@prefix} &2Ustawiono wyswietlanie daty na wlaczone!"
- stop
- send "&7Ta opcja ustawia wyswietlanie daty i godziny przed wiadomoscia!"
- send "&f/&2youChat data on &f- Wlaczanie daty"
- send "&f/&2youChat data off &f- Wylaczanie daty"
- send "&f/&2youChat data przelacz &f- Przelaczanie daty (on>off, off>on)"
- stop
- if arg 1 is "reload":
- execute player command "sk reload %script%"
- stop
- send "&f------ &ayouChat &f------"
- send "&f/&2youChat zaloz <nazwa konferencji> &f- zaklada konferencje"
- send "&f/&2youChat usun &f- usuwa konferencje"
- send "&f/&2youChat lista &f- lista konferencji"
- send "&f/&2youChat dodaj <gracz> &f- dodaje gracza do konferencji"
- send "&f/&2youChat dolacz <nazwa konferencji &f- akceptuje zaproszenie"
- send "&f/&2youChat reload &f- przeladowywuje skrypt"
- send "&f/&2youChat data &f- wlacza/wylacza wyswietlanie daty"
- send "&f--- &aAutor: Jan kk &f---"
- command /prefix [<offlineplayer>] [<text>]:
- trigger:
- if player is an op:
- if argument-offlineplayer is not set:
- send "{@prefix} &cPodaj, komu chcesz zmienic prefix!"
- stop
- if arg 2 is not set:
- clear {youChat::prefix::%argument-offlineplayer%}
- send "{@prefix} &2Wyczysciles niestandardowy prefix!"
- stop
- set {youChat::prefix::%argument-offlineplayer%} to "%arg 2%"
- send "{@prefix} &2Ustawiles niestandardowy prefix!"
- stop
- send "{@prefix} &cNie masz uprawnien!"
- stop
- command /cc:
- trigger:
- if player is an op:
- loop 100 times:
- broadcast ""
- send "{@prefix} &2Wyczysciles chat!"
- stop
- send "&cNie masz uprawnien!"
- stop
- command /mute [<offlineplayer>] [<integer>] [<text>]:
- trigger:
- if argument-offlineplayer is not set:
- send "{@prefix} &cPodaj, kogo chcesz wyciszyc!"
- stop
- if argument-integer is not set:
- send "{@prefix} &cPodaj, na jaki czas chcesz kogos wyciszyc!"
- stop
- if arg 1 is not set:
- send "{@prefix} &cPodaj powod!"
- stop
- set {youChat::mute::czas::%argument-offlineplayer%} to argument-integer
- add player to {youChat::czekanie::*}
- broadcast "&a%player% &fwyciszyl &a%argument-offlineplayer% &fza &a%arg 1% &fna &a%argument-integer% minut"
- stop
- command /zakaz [<offlineplayer>]:
- trigger:
- if player is an op:
- if argument-offlineplayer is not set:
- send "{@prefix} &cPodaj gracza!"
- stop
- if {youChat::zakaz::%argument-offlineplayer%} is true:
- clear {youChat::zakaz::%argument-offlineplayer%}
- broadcast "&fGracz &a%argument-offlineplayer% &fznow moze robic konferencje!"
- stop
- if {youChat::zakaz::%argument-offlineplayer%} is not set:
- set {youChat::zakaz::%argument-offlineplayer%} to true
- broadcast "&fGracz &a%argument-offlineplayer% &fnie moze robic konferencji!"
- stop
- send "{@prefix} &cNie masz uprawnien!"
- stop
- every 1 minute:
- loop {youChat::czekanie::*}:
- add -1 to {youChat::czas::%loop-value%}
- if {youChat::czas::%loop-value%} is 0:
- clear {youChat::czas::%loop-value%}
- remove loop-value from {youChat::czekanie::*}
- on chat:
- cancel event
- if {youChat::data.status} is true:
- set {_g} to result of connect to "http://nicc0.pl/godzina.txt"
- set {_d} to result of connect to "http://nicc0.pl/data.txt"
- set {_x} to "%{_d}% %{_g}%"
- if {youChat::prefix::%player%} is set:
- if {youChat::konferencja::%player%} is set:
- loop {youChat::czlonkowie::%{youChat::konferencja::%player%}%::*}:
- loop all players:
- if loop-player is "%loop-value%":
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] %{youChat::prefix::%player%}% &7%player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player is not "%loop-value%":
- if loop-player is an op:
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] %{youChat::prefix::%player%}% &7%player%&f: &7%uncolored message%" to all ops
- stop
- else:
- broadcast "&7%{_x}% &f>> %{youChat::prefix::%player%}% &7%player%&f: &7%uncolored message%"
- stop
- else:
- if {youChat::konferencja::%player%} is set:
- loop {youChat::czlonkowie::%{youChat::konferencja::%player%}%::*}:
- loop all players:
- if loop-player is "%loop-value%":
- if player is an op:
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] [&cAdministrator&7] %player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player-2 is not "%loop-value%":
- if loop-player-2 is an op:
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] [&cAdministrator&7] %player%&f: &7%uncolored message%" to all ops
- stop
- if player has permission "youchat.svip":
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] [&9SVIP&7] %player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player-2 is not "%loop-value%":
- if loop-player-2 is an op:
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] [&9SVIP&7] %player%&f: &7%uncolored message%" to loop-player-2
- stop
- if player has permission "youchat.vip":
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] [&6VIP&7] %player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player-2 is not "%loop-value%":
- if loop-player-2 is an op:
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] [&6VIP&7] %player%&f: &7%uncolored message%" to loop-player-2
- stop
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] [&fGracz&7] %player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player-2 is not "%loop-value%":
- if loop-player-2 is an op:
- send "&7%{_x}% &f>> &7[&f%{youChat::konferencja::%player%}%&7] [&fGracz&7] %player%&f: &7%uncolored message%" to loop-player-2
- stop
- else:
- if player is an op:
- broadcast "&7%{_x}% &f>> [&cAdministrator&7] %player%&f: &7%uncolored message%"
- stop
- if player has permission "youchat.svip":
- broadcast "&7%{_x}% &f>> [&9SVIP&7] %player%&f: &7%uncolored message%"
- stop
- if player has permission "youchat.vip":
- broadcast "&7%{_x}% &f>> [&6VIP&7] %player%&f: &7%uncolored message%"
- stop
- broadcast "&7%{_x}% &f>> [&fGracz&7] %player%&f: &7%uncolored message%"
- stop
- if {youChat::data.status} is not set:
- if {youChat::prefix::%player%} is set:
- if {youChat::konferencja::%player%} is set:
- loop {youChat::czlonkowie::%{youChat::konferencja::%player%}%::*}:
- loop all players:
- if loop-player is "%loop-value%":
- send "&7[&f%{youChat::konferencja::%player%}%&7] %{youChat::prefix::%player%}% &7%player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player is not "%loop-value%":
- if loop-player is an op:
- send "&7[&f%{youChat::konferencja::%player%}%&7] %{youChat::prefix::%player%}% &7%player%&f: &7%uncolored message%" to all ops
- stop
- else:
- broadcast "%{youChat::prefix::%player%}% &7%player%&f: &7%uncolored message%"
- stop
- else:
- if {youChat::konferencja::%player%} is set:
- loop {youChat::czlonkowie::%{youChat::konferencja::%player%}%::*}:
- loop all players:
- if loop-player is "%loop-value%":
- if player is an op:
- send "&7[&f%{youChat::konferencja::%player%}%&7] [&cAdministrator&7] %player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player-2 is not "%loop-value%":
- if loop-player-2 is an op:
- send "&7[&f%{youChat::konferencja::%player%}%&7] [&cAdministrator&7] %player%&f: &7%uncolored message%" to all ops
- stop
- if player has permission "youchat.svip":
- send "&7[&f%{youChat::konferencja::%player%}%&7] [&9SVIP&7] %player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player-2 is not "%loop-value%":
- if loop-player-2 is an op:
- send "&7[&f%{youChat::konferencja::%player%}%&7] [&9SVIP&7] %player%&f: &7%uncolored message%" to loop-player-2
- stop
- if player has permission "youchat.vip":
- send "&7[&f%{youChat::konferencja::%player%}%&7] [&6VIP&7] %player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player-2 is not "%loop-value%":
- if loop-player-2 is an op:
- send "&7[&f%{youChat::konferencja::%player%}%&7] [&6VIP&7] %player%&f: &7%uncolored message%" to loop-player-2
- stop
- send "&7[&f%{youChat::konferencja::%player%}%&7] [&fGracz&7] %player%&f: &7%uncolored message%" to loop-player
- loop all players:
- if loop-player-2 is not "%loop-value%":
- if loop-player-2 is an op:
- send "&7[&f%{youChat::konferencja::%player%}%&7] [&fGracz&7] %player%&f: &7%uncolored message%" to loop-player-2
- stop
- else:
- if player is an op:
- broadcast "[&cAdministrator&7] %player%&f: &7%uncolored message%"
- stop
- if player has permission "youchat.svip":
- broadcast "[&9SVIP&7] %player%&f: &7%uncolored message%"
- stop
- if player has permission "youchat.vip":
- broadcast "[&6VIP&7] %player%&f: &7%uncolored message%"
- stop
- broadcast "[&fGracz&7] %player%&f: &7%uncolored message%"
- stop
Advertisement
Add Comment
Please, Sign In to add comment