Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- |---===| MCHAT |===----|
- v.0.1
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #===================================================#
- # Zaawansowany autorski skrypt do chatu! #
- #===================================================#
- #===================================================#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # AUTOR: Turbax72/Masi0_ #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #===================================================#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # MCHAT - LICENSE #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # NIE ZEZWALAM NA #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # ● Podrabianie mnie - autora. #
- # ● Przerabiania oraz publikowania kodu. #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # ZEZWALAM NA #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- # - Dopisywanie kodu na własną potrzebe. #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
- | Dostepne permissje do skryptu/komendy :
- | mchat.on - Do komendy /chat on
- | mchat.off - Do komendy /chat off
- | mchat.clear - Do komendy /chat clear
- | mchat.pisz - Pozwala na pisanie przy wylaczonym czacie
- | mchat.piszzawsze - Pozwala na pisanie zawsze nawet z reklamami/bluzgami
- #Opcje
- options:
- tag: &8[&6NazwaSerwera&8]# Nazwa Serwera
- ilesekund: 5 # Co ile sekund bedzie mozna pisac
- variables:
- {chat} = true
- command /chat [<text>]:
- trigger:
- if arg 1 is not set:
- send "&8[&6@tag&8] - &cMasChat"
- send ""
- send "&6/chat on &7- &cwlaczanie chatu"
- send "&6/chat off &7- &cwylaczanie chatu"
- send "&6/chat clear &7- &cczysczenie chatu"
- send ""
- send "&8==============================="
- if arg 1 is "on":
- if {chat} is false:
- if player has permission "mchat.on":
- set {chat} to true
- broadcast ""
- broadcast " &8[&6@tag&8]"
- broadcast "&cCzat zostal Wlaczony!"
- broadcast ""
- stop
- else:
- send "&6Nie masz &apermisji &cdo tej komendy!"
- stop
- else:
- send "&8[&6@tag&8] &cChat jest juz Wlaczony"
- stop
- if arg 1 is "off":
- if {chat} is true:
- if player has permission "mchat.off":
- set {chat} to false
- broadcast ""
- broadcast " &8[&6@tag&8]"
- broadcast "&cCzat zostal Wylaczony!"
- broadcast ""
- stop
- else:
- send "&6Nie masz &apermisji &cdo tej komendy !"
- stop
- else:
- send "&8[&6@tag&8] &cChat jest juz Wylaczony"
- stop
- if arg 1 is "clear":
- if player has permission "mchat.clear":
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast ""
- broadcast " &8[&6@tag&8]"
- broadcast "&cChat zostal wyczyszczony"
- broadcast ""
- stop
- else:
- send "&6Nie masz &apermisji &cdo tej komendy !"
- stop
- on chat:
- if {chat} is false:
- if player has permission "mchat.write":
- stop
- else:
- cancel event
- send "&8[&6@tag&8] &cChat jest aktualnie Wlaczony"
- stop
- else:
- if player has permission "mchat.write2":
- stop
- set {_waited} to difference between {mchat.%player%.spam} and now
- if {_waited} is less than 3 real seconds seconds:
- send "&7Twoja nastepna&a wiadomosc &7bedziesz mogl wyslac za &c{@3} sekundy"
- cancel event
- stop
- set {mchat.%player%.spam} to now
- stop
- #Cenzura + Anty Reklama
- on 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" or "p.l" or ",p" or "serwerhost" or "host" or "kur" or "chuj" or "pizd" or "ciot" or "szmat" or "japier" or "suk" or "jeb" or "skurwys" or "pedal" or "debil" or "dup":
- cancel event
- send "{@tag} &cTwoja wypowiedz zawiera niepoprawne tresci"
- #Brodacast pod komenda /global
- #Brak uprawnien do komendy
- nonperm.mchat.bc: &cNie masz permisji do tej komendy!
- #Wpisz tekst
- typetext.mchat.bc: &cMusisz wpisac tekst/wiadomosc!
- command /global [<text>]:
- aliases: *** #W miejsce *** wpisz dodatkowe komendy ktore moga byc uzywane.
- trigger:
- if arg 1 is set:
- if player has permission "mchat-global" or "mchat-global.*":
- broadcast "{@tag} %coloured arg%"
- stop
- else:
- send "{@tag} {@nonperm.mchat.bc}"
- stop
- else:
- send "{@tag} {@typetext.mchat.bc}"
- stop
- #Admin chat
- command /ac [<text>]:
- trigger:
- arg 1 is set:
- if player has permissions "ac.mchat":
- loop all players:
- loop-player has permission "ac.mchat":
- send "&8[&4@&8] &a%name of player%: &c%arg 1%" to loop-player
- else:
- send "&cDo tej komendy ma dostep tylko osoba z permisja (ac.mchat)!"
Advertisement
Add Comment
Please, Sign In to add comment