Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # ---===| AdvancedChat |===--- #
- # v.1.2 #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #===================================================#
- # ● Zarządzaj chatem na swoim serwerze ! ● #
- #===================================================#
- #===================================================#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # ● Przez: MaNiAaAK ● #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #===================================================#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # |●| LICENCJA |●| #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # NIE ZEZWALAM NA #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # ● Podszywanie sie pod autora. #
- # ● Przerabiania oraz publikowania kodu. #
- # ● Usuwanie oznaczonych treścią "LICENCJA" linijek.#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # ZEZWALAM NA #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # ● Dopisywanie kodu na własną potrzebe. #
- # ● Modyfikowanie wyglądu wiadomosci, po za tymi #
- # oznaczonymi treścią "LICENCJA". #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # |●| PERMISJE |●| #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # ● AC.chat | Pozwala zarządzać chatem. #
- # ● Achat.say | Pisanie na wylaczonym chacie. #
- # ● Achat.slow | Wylacza pisanie co 5 sek. #
- # ● Achat.op | Pozwala na uzywanie op chatu. #
- # ● Achat.wyczysc #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # ---===| KOD |===--- #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- options: #LICENCJA
- tag: &8[&3AdvancedChat&8] #LICENCJA
- perm: &cNie masz uprawnien do uzywania tej komendy
- time: 5
- variables:
- {AC.chat} = true
- {Achat.%player%} = false
- {Achat.mute::%player%} = false
- {slowdown.%player%} = false
- on script load: #LICENCJA
- broadcast "{@tag} &7Skrypt zostal zaladowany." #LICENCJA
- broadcast "{@tag} &7Autorem skryptu jest &3MaNiAaAK." #LICENCJA
- command /chat [<text>] [<offline player>]:
- trigger:
- arg 1 is "mutelist":
- player has permissions "SW.chat":
- send "&3Lista zmutowanych graczy: (%size of {mutelist::*}%):&7 %{mutelist::*}%"
- else:
- send "{@tag} {@perm}"
- arg 1 is not set:
- send "&8|=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=|"
- send "&8/&3chat wylacz/wlacz | wlaczasz/wylaczasz chat."
- send "&8/&3chat mute/unmute <gracz> | wyciszasz/odciszasz danego gracza."
- send "&8/&3chat wyczysc | czysci chat."
- send "&8/&3chat perm | pokazuje permisje."
- send "&8/&3chat mutelist | pokazuje liste wyciszonych osob."
- send "&8|=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=|"
- arg 1 is "perm":
- send "&8|=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=|"
- send "&8● &3AC.chat | Pozwala zarządzać chatem."
- send "&8● &3Achat.say | Pisanie na wylaczonym chacie."
- send "&8● &3Achat.slow | Wylacza pisanie co 5 sek."
- send "&8● &3Achat.op | Pozwala na uzywanie op chatu."
- send "&8● &3Achat.wyczysc | pozwala czyscic chat."
- send "&8|=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=|"
- arg 1 is "wlacz":
- player has permissions "AC.chat":
- set {AC.chat} to true
- broadcast "{@tag} &7Chat zostal wlaczony przez &e%player%"
- else:
- send "{@tag} {@perm}"
- arg 1 is "wylacz":
- player has permissions "AC.chat":
- set {AC.chat} to false
- broadcast "{@tag} &7Chat zostal wylaczony przez &e%player%"
- else:
- send "{@tag} {@perm}"
- arg 1 is "mute":
- arg 2 is set:
- player has permissions "AC.chat":
- set {Achat.mute::%name of arg 2%} to true
- broadcast "{@tag} &7Gracz &e%name of arg 2% &7zostal wyciszony!"
- add arg 2 to {mutelist::*}
- else:
- send "{@tag} {@perm}"
- arg 1 is "unmute":
- arg 2 is set:
- remove arg 2 from {mutelist::*}
- player has permissions "AC.chat":
- set {Achat.mute::%name of arg 2%} to false
- broadcast "{@tag} &7Gracz &e%name of arg 2% &7zostal odciszony!"
- else:
- send "{@tag} {@perm}"
- arg 1 is "wyczysc":
- if player has permission "AC.chat":
- loop 100 times:
- broadcast "&a"
- broadcast "&3●=●=●=●=●=●=| &eChat zostal wyczyszczony! &3|●=●=●=●=●=●="
- broadcast "&3●=●=●=●=●=●=●=●=| &eprzez %player% &3|=●=●=●=●=●=●=●=●=●"
- loop 5 times:
- broadcast "&a"
- stop
- else:
- send "{@tag} {@perm}"
- stop
- #Admin chat
- command /achat [<text>]:
- trigger:
- arg 1 is set:
- if player has permissions "Achat.op":
- loop all players:
- loop-player has permission "Achat.op":
- send "&8[&c*&8] &a%name of player%: &c%arg 1%" to loop-player
- else:
- send "&cNie masz dostepu do tej komendy!"
- on chat:
- if {AC.chat} = false:
- player doesn't have permissions "Achat.say":
- send "{@tag} Chat jest obecnie wylaczony!"
- cancel event
- stop
- if {Achat.mute::%player%} = true:
- send "{@tag} Zostales wyciszony!"
- cancel event
- else:
- stop
- #cenzor
- on chat:
- replace all "kur", "chuj" or "pizd" or "ciot" or "szmat" or "japier" or "suk" or "jeb" or "skurwys" or "pedal" or "debil" or "dup" with "****" in the message
- #AntyAD
- on chat:
- player doesn't have permission "AC.chat":
- message contains "fhmc" or "csrv" or "ip" or "pl" or "net" or "com" or "tk" or "eu" or "ownserver" or "gomc" or "cubehost" or "fiberhost":
- cancel event
- send "{@tag} &cZakaz reklamowania serwerów!"
- else:
- stop
Advertisement
Add Comment
Please, Sign In to add comment