Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-----------------#
- # 2k-Chat #
- # marcell2k #
- #-----------------#
- # Zakaaz #
- # kopiowania #
- #-----------------#
- # v.1.1 #
- #-----------------#
- # Dostepne permissje do skryptu/komendy :
- # 2k-chat.on - komenda /chat on
- # 2k-chat.off - komenda /chat off
- # 2k-chat.clear - komenda /chat clear
- # 2k-chat.write - pozwala na pisanie przy wylaczonym czacie
- # 2k-chat.write2 - pozwala na pisanie zawsze i ci�gle
- options:
- tag: &2Domin&6Craft # Nazwa Servera
- ilesekund: 10 # Co ile sekund bedzie mozna pisac
- variables:
- {chat} = true
- command /chat [<text>]:
- trigger:
- if arg 1 is not set:
- send "&8######## &72k-Chat &8######## "
- send "&6/chat on &7- wlacza chat"
- send "&6/chat off &7- wylacza chat"
- send "&6/chat clear &7- czysci chat"
- send " "
- send "&8----------------------------- "
- send " "
- send "&6Autor: &7marcell2k"
- send "&6E-mail: &7marcell2k@gmail.com"
- send "&6Skype: &7marcolxp12"
- if arg 1 is "on":
- if {chat} is false:
- if player has permission "2k-chat.on":
- set {chat} to true
- broadcast ""
- broadcast " {@tag}"
- broadcast "&7Chat zostal &aWlaczony"
- broadcast ""
- stop
- else:
- send "&7Nie masz &auprawnienia&7 do tej komendy !"
- stop
- else:
- send "&7Chat jest juz &aWlaczony"
- stop
- if arg 1 is "off":
- if {chat} is true:
- if player has permission "2k-chat.off":
- set {chat} to false
- broadcast ""
- broadcast " {@tag}"
- broadcast "&7Chat zostal &aWylaczony"
- broadcast ""
- stop
- else:
- send "&7Nie masz &auprawnienia&7 do tej komendy !"
- stop
- else:
- send "&7Chat jest juz &aWylaczony"
- stop
- on chat:
- if {chat} is false:
- if player has permission "2k-chat.write":
- stop
- else:
- cancel event
- send "&7Chat jest aktualnie &aWylaczony!"
- on chat:
- if player don't have permission "2k-chat":
- set {_waited} to difference between {2k-chat.%player%.spam} and now
- if {_waited} is less than 10 real seconds seconds:
- send "&eNastepna wiadomosc bedziesz mogl napisac za &c15 &esekund!"
- cancel event
- stop
- set {2k-chat.%player%.spam} to now
- else:
- stop
- command /cc:
- trigger:
- if player has permission "2k-chat.clear":
- loop 200 times:
- broadcast ""
- broadcast " {@tag}"
- broadcast "&7Chat zostal wyczyszczony!"
- else:
- send "&7Nie masz uprawnien!"
- options:
- czas_muta: 2
- variables:
- {mute.%player%} = false
- on chat:
- if {mute.%player%} is false:
- loop all {cenzura::slowa::*}
- if chat message contains "%loop-value%":
- cancel event
- send "&cZostales zmutowany za przeklinanie na czacie! &7(&b{@czas_muta} minut&7) &cprzez &4Serwer"
- loop all players:
- if loop-player is an op:
- send "&cZostales zmutowany za przeklinanie na czacie! &7(&b{@czas_muta} minut&7) &cprzez &4Serwer" to loop-player
- set {mute.%player%} to true
- wait {@czas_muta} minutes
- set {mute.%player%} to false
- else:
- stop
- else:
- cancel event
- send "&cJestes zmutowany na &7(&b{@czas_muta} minut&7)&cza przeklenstwa"
- command /cenzura [<text>] [<text>]:
- trigger:
- if player has permission "unmute.mute":
- if arg 1 is not set:
- send "&cBlad: &7Poprawne uzycie &6/cenzura dodaj/usun/lista [slowo]"
- if arg 1 is "dodaj":
- if arg 2 is set:
- add "%arg 2%" to {cenzura::slowa::*}
- else:
- send "&cBlad: &7Wpisz slowo ktore chcesz dodac!"
- if arg 1 is "usun":
- if arg 2 is set:
- remove "%arg 2%" from {cenzura::slowa::*}
- else:
- send "&cBlad: &7Wpisz slowo ktore chcesz dodac!"
- if arg 1 is "lista":
- send "&7Lista przeklenst:"
- send "&a%{cenzura::slowa::*}%"
- command /unmut [<text>]:
- trigger:
- if player has permission "unmute.mute":
- if arg is set:
- if {mute.%arg 1%} is true:
- send "&7Odmutowales &b%arg 1%"
- set {mute.%arg 1%} to false
- else:
- send "&7Ten gracz nie jest zmutowany"
- else:
- send "&7Uzycie /unmut &9nick"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement