Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {chat.global} = true
- {chat.vip} = true
- {chat.%player%} = true
- {ograniczenie} = true
- {chattime.%player%} = 0
- {chat.tryb} = "&ajest wlaczony"
- {chat.ograniczenie.vip} = "&c to 2 sekundy"
- {chat.ograniczenie.gracz} = "&c to 4 sekundy"
- {chat.ograniczenie} = "&ajest wlaczone"
- command /chat [<text>] [<text>]:
- trigger:
- if player has permissions "chat.admin":
- if arg 1 is set:
- if arg 1 is "global":
- if arg 2 is set:
- if arg 2 is "on" or "tak" or "wlacz":
- if {chat.global} is false:
- set {chat.vip} to true
- set {chat.global} to true
- set {chat.tryb} to "&ajest wlaczony"
- broadcast "&aChat zostal wlaczony przez administracje!"
- stop
- else:
- send "&cChat jest juz wlaczony!"
- if arg 2 is "off" or "nie" or "wylacz":
- if {chat.global} is true:
- set {chat.vip} to false
- set {chat.global} to false
- set {chat.tryb} to "&cjest wylaczony"
- broadcast "&cChat zostal wylaczony przez administracje!"
- stop
- if {chat.global} is false:
- send "&cChat jest juz wylaczony!"
- if arg 2 is not "on" or "tak" or "wlacz" or "off" or "nie" or "wylacz":
- send "&cPoprawne uzycie: &6/chat global &aon&6/&coff"
- if arg 2 is not set:
- send "&cPoprawne uzycie: &6/chat global &aon&6/&coff"
- if arg 1 is "vip":
- if arg 2 is set:
- if arg 2 is "on" or "tak" or "wlacz":
- if {chat.global} is false:
- if {chat.vip} is false:
- set {chat.vip} to true
- set {chat.tryb} to "&6jest dostepny tylko dla VIPów"
- send "&6Chat dla vip zostal wlaczony!"
- stop
- if {chat.vip} is true:
- send "&cChat dla vip jest juz &awlaczony!"
- if {chat.global} is true:
- send "&cChat aktualnie jest wlaczony!"
- if arg 2 is "off" or "nie" or "wylacz":
- if {chat.global} is false:
- if {chat.vip} is true:
- set {chat.vip} to false
- set {chat.tryb} to "&cjest wylaczony"
- send "&6Chat dla vip zostal &cwylaczony!"
- stop
- if {chat.vip} is false:
- send "&cChat dla vip jest juz wylaczony!"
- if {chat.global} is true:
- send "&cChat globalny aktualnie jest wlaczony!"
- if arg 2 is not "on" or "tak" or "wlacz" or "off" or "nie" or "wylacz":
- send "&cPoprawne uzycie: &6/chat global &aon&6/&coff"
- if arg 2 is not set:
- send "&cPoprawne uzycie: &6/chat global &aon&6/&coff"
- if arg 1 is "ograniczenie":
- if arg 2 is set:
- if arg 2 is "tak" or "on" or "wlacz":
- if {ograniczenie} is false:
- set {ograniczenie} to true
- set {chat.ograniczenie.vip} to "&cto 2 sekundy"
- set {chat.ograniczenie.gracz} to "&c to 4 sekundy"
- set {chat.ograniczenie} to "&ajest wlaczone"
- broadcast "&aOgraniczenie zostalo wlaczone!"
- stop
- if {ograniczenie} is true:
- send "&cOgraniczenie jest juz wlaczone!"
- if arg 2 is "nie" or "off" or "wylacz":
- if {ograniczenie} is true:
- set {ograniczenie} to false
- set {chat.ograniczenie.vip} to "&caktulanie wylaczone"
- set {chat.ograniczenie.gracz} to "&caktulanie wylaczone"
- set {chat.ograniczenie} to "&cjest wylaczone"
- broadcast "&cOgraniczenie zostalo wylaczone!"
- stop
- if {ograniczenie} is false:
- send "&cOgraniczenie jest wylaczone!"
- if arg 2 is not "tak" or "on" or "wlacz" or "nie" or "off" or "wylacz":
- send "&cPoprawne uzycie: &6/chat ograniczenie &aon&6/&coff"
- if arg 2 is not set:
- send "&cPoprawne uzycie: &6/chat ograniczenie &aon&6/&coff"
- if arg 1 is "cc" or "czysc" or "wyczysc":
- loop 100 times:
- broadcast "&k"
- broadcast "&cChat zostal wyczyszczony przez administracje."
- if arg 1 is "p" or "help" or "pomoc":
- send "&6/chat global &aon&6/&coff &7- &eWlaczanie/wylaczanie chatu calkowicie."
- send "&6/chat vip &aon&6/&coff &7- &eWlaczanie/wylaczanie chatu dla vip (musi byc wylaczony chat global."
- send "&6/chat ograniczenie &aon&6/&coff &7- &eWlaczanie/wylaczanie ograniczenia na chacie."
- send "&6/chat czysc &7- &eCzyszczenie chatu."
- send "&6/chat pomoc &7- &ePomoc skryptu."
- if arg 1 is not "ograniczenie" or "global" or "vip" or "cc" or "czysc" or "wyczysc" or "help" or "pomoc" or "p":
- send "&6/chat global &aon&6/&coff &7- &eWlaczanie/wylaczanie chatu calkowicie."
- send "&6/chat vip &aon&6/&coff &7- &eWlaczanie/wylaczanie chatu dla vip (musi byc wylaczony chat global."
- send "&6/chat ograniczenie &aon&6/&coff &7- &eWlaczanie/wylaczanie ograniczenia na chacie."
- send "&6/chat czysc &7- &eCzyszczenie chatu."
- send "&6/chat pomoc &7- &ePomoc skryptu."
- else:
- send "&8&m------------------"
- send "&cChat aktualnie %{chat.tryb}%"
- send "&cOgraniczenie aktualnie jest %{chat.ograniczenie}%"
- send "&cOgraniczenie dla VIP %{chat.ograniczenie.vip}%"
- send "&cOgraniczenie dla gracza %{chat.ograniczenie.gracz}%"
- send "&8&m------------------"
- else:
- send "&8&m------------------"
- send "&cChat aktualnie %{chat.tryb}%"
- send "&cOgraniczenie aktualnie jest %{chat.ograniczenie}%"
- send "&cOgraniczenie dla VIP %{chat.ograniczenie.vip}%"
- send "&cOgraniczenie dla gracza %{chat.ograniczenie.gracz}%"
- send "&8&m------------------"
- on chat:
- if player has permissions "chat.nolimit" or "chat.admin":
- stop
- else:
- if {chat.vip} is true:
- if player has permissions "chat.vip":
- if {ograniczenie} is true:
- if {chat.%player%} is true:
- set {chat.%player%} to false
- set {chattime.%player%} to 2
- wait 1 second
- remove 1 from {chattime.%player%}
- wait 1 second
- remove 1 from {chattime.%player%}
- set {chat.%player%} to true
- else:
- cancel event
- if {chattime.%player%} is 2:
- send "&cMozesz napisac za &6%{chattime.%player%}% &csekundy!"
- if {chattime.%player%} is 1:
- send "&cMozesz napisac za &6%{chattime.%player%}% &csekunde!"
- else:
- if {ograniczenie} is true:
- if {chat.global} is true:
- if {chat.%player%} is true:
- set {chat.%player%} to false
- set {chattime.%player%} to 5
- wait 1 second
- remove 1 from {chattime.%player%}
- wait 1 second
- remove 1 from {chattime.%player%}
- wait 1 second
- remove 1 from {chattime.%player%}
- wait 1 second
- remove 1 from {chattime.%player%}
- wait 1 second
- remove 1 from {chattime.%player%}
- set {chat.%player%} to true
- else:
- cancel event
- if {chattime.%player%} is 2 or 3 or 4:
- send "&cMozesz napisac za &6%{chattime.%player%}% &csekundy!"
- if {chattime.%player%} is 1:
- send "&cMozesz napisac za &6%{chattime.%player%}% &csekunde!"
- else:
- cancel event
- send "&cPisanie na chacie zostalo zablokowane dla graczy!"
- send "&aAktualnie pisac mogą rangi &6VIP&c!"
- else:
- cancel event
- send "&cPisanie na chacie zostalo wylaczone!"
Advertisement
Add Comment
Please, Sign In to add comment