Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {ChatEx.%player%.chatMessageOff} = false
- {ChatEx.jezykPolski} = true
- {ChatEx.langEnglish} = false
- {ChatEx.%player%.chatMessagePlayerOn} = true
- options:
- chatLangPL: &cAdministrator wylaczyl mozliwosc pisania na chacie/czacie
- chatLangEN: &cAdministrator has disabled the ability to write in chat
- permissionLangPL: &cNie posiadasz uprawnien do tej komendy
- permissionLangEN: &cYou dont have permission to this command
- niemozeszpisacnaChatcieLangPL: &cZostales zmutowany przez admina. Pisz do niego na /helpop
- niemozeszpisacnaChatcieLangEN: &cZostales zmutowany przez admina. Pisz do niego na /helpop
- niemozeszpisacnaChatcieLangPLown: &cAdministrator serwera wylaczyl chat. Pisz na /helpop
- niemozeszpisacnaChatcieLangENown: &cThe server administrator has got stuck writing the opportunity to chat
- SkriptName: chat2
- #/>---<=><Skript-Code><=>---<\
- command /chat [<text>] [<text>]:
- aliases: lc, c
- trigger:
- if arg 1 is not set:
- if {ChatEx.jezykPolski} is true:
- message "&7 Komendy KChat "
- message "<gold>/chat wylacz - Wylacza czat"
- message "<gold>/chat wlacz - Wlacza czat"
- message "<gold>/chat zablokuj Nick - Wylacza czat dla danego gracza"
- message "<gold>/chat odblokuj Nick - Wlacza czat dla danego gracza"
- message "<gold>/chat wyczysc - Wyczyszczenie czata"
- message "<gold>/chat przeladuj - Przeladowanie skryptu"
- stop
- if {ChatEx.langEnglish} is true:
- message "&7 Commands KChat "
- message "<gold>/chat off - Off chat"
- message "<gold>/chat on - On chat"
- message "<gold>/chat lock Nick - Disable chat for a player"
- message "<gold>/chat unlock Nick - Enable chat for a player"
- message "<gold>/chat clear - Clear chat"
- message "<gold>/chat polish/english - Change language"
- message "<gold>/chat reload - Reload skript"
- stop
- if arg 1 is "wylacz" or "off":
- player has permission "KChat.*":
- if {ChatEx.jezykPolski} is true:
- set {ChatEx.%all players%.chatMessageOff} to true
- broadcast "&4Chat zostal zablokowany przez admina %player%"
- stop
- if {ChatEx.langEnglish} is true:
- set {ChatEx.%all players%.chatMessageOff} to true
- broadcast "&4Chat zostal zablokowany przez admina %player%"
- stop
- else:
- if {ChatEx.jezykPolski} is true:
- message "{@permissionLangPL}"
- stop
- if {ChatEx.langEnglish} is true:
- message "{@permissionLangEN}"
- stop
- if arg 1 is "wlacz" or "on":
- player has permission "KChat.*":
- if {ChatEx.jezykPolski} is true:
- set {ChatEx.%all players%.chatMessageOff} to false
- broadcast "&aChat zostal odblokowany przez admina %player%"
- stop
- if {ChatEx.langEnglish} is true:
- set {ChatEx.%all players%.chatMessageOff} to false
- broadcast "&aChat zostal odblokowany przez admina %player%"
- stop
- else:
- if {ChatEx.jezykPolski} is true:
- message "{@permissionLangPL}"
- stop
- if {ChatEx.langEnglish} is true:
- message "{@permissionLangEN}"
- stop
- if arg 1 is "wyczysc" or "clear":
- player has permission "KChat.*":
- if {ChatEx.jezykPolski} is true:
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- broadcast "&6Chat zostal wyczyszczony %player%"
- stop
- if {ChatEx.langEnglish} is true:
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- message " " to all players
- broadcast "&6Chat zostal wyczyszczony %player%"
- stop
- else:
- if {ChatEx.jezykPolski} is true:
- message "{@permissionLangPL}"
- stop
- if {ChatEx.langEnglish} is true:
- message "{@permissionLangEN}"
- stop
- if arg 1 is "zablokuj" or "lock":
- player has permission "KChat.*":
- if {ChatEx.jezykPolski} is true:
- set {ChatEx.%arg 2%.chatMessagePlayerOn} to false
- message "&cZablokowales mozliwosc pisania na czacie graczowi <gold>%arg 2%"
- stop
- if {ChatEx.langEnglish} is true:
- set {ChatEx.%arg 2%.chatMessagePlayerOn} to false
- message "&cYou have blocked the possibility of writing in the chat player <gold>%arg 2%"
- stop
- else:
- if {ChatEx.jezykPolski} is true:
- message "{@permissionLangPL}"
- stop
- if {ChatEx.langEnglish} is true:
- message "{@permissionLangPL}"
- stop
- if arg 1 is "odblokuj" or "unlock":
- player has permission "Kchat.*":
- if {ChatEx.jezykPolski} is true:
- set {ChatEx.%arg 2%.chatMessagePlayerOn} to true
- message "&aOdblokowales mozliwosc pisania na czacie graczowi <gold>%arg 2%"
- stop
- if {ChatEx.langEnglish} is true:
- set {ChatEx.%arg 2%.chatMessagePlayerOn} to true
- message "&aYou hane enable the possiblity of writing on the chat player <gold>%arg 2%"
- stop
- else:
- if {ChatEx.jezykPolski} is true:
- message "{@permissionLangPL}"
- stop
- if {ChatEx.langEnglish} is true:
- message "{@permissionLangEN}"
- stop
- if arg 1 is "polski" or "polish":
- player has permission "KChat.*":
- if {ChatEx.jezykPolski} is true:
- set {ChatEx.jezykPolski} to true
- set {ChatEx.langEnglish} to false
- message "&aZmieniles jezyk na &4Pol&fski"
- stop
- if {ChatEx.langEnglish} is true:
- set {ChatEx.jezykPolski} to true
- set {ChatEx.langEnglish} to false
- message "&aYou have change language to &4Polish"
- stop
- else:
- if {ChatEx.jezykPolski} is true:
- message "{@permissionLangPL}"
- stop
- if {ChatEx.langEnglish} is true:
- message "{@permissionLangEN}"
- stop
- if arg 1 is "english":
- player has permission "KChat.*":
- if {ChatEx.jezykPolski} is true:
- set {ChatEx.jezykPolski} to false
- set {ChatEx.langEnglish} to true
- message "&aZmieniles jezyk na &4Angielski"
- stop
- if {ChatEx.langEnglish} is true:
- set {ChatEx.jezykPolski} to false
- set {ChatEx.langEnglish} to true
- message "&aYou have change language to &4English"
- stop
- if arg 1 is "reload" or "przeladuj":
- player has permission "chatex.admin":
- if {ChatEx.jezykPolski} is true:
- execute console command "/sk reload {@SkriptName}"
- message "&aPrzeladowywanie skryptu"
- wait 2 second
- message "&aPrzeladowano skrypt"
- stop
- if {ChatEx.langEnglish} is true:
- execute console command "/sk reload {@SkriptName}"
- message "&aReloading skript"
- wait 2 second
- message "&aSkript has been reload"
- stop
- else:
- if {ChatEx.jezykPolski} is true:
- message "{@permissionLangPL}"
- stop
- if {ChatEx.langEnglisg} is true:
- message "{@permissionLangEN}"
- stop
- on chat:
- if {ChatEx.%all players%.chatMessageOff} is true:
- if {ChatEx.jezykPolski} is true:
- cancel event
- message "{@niemozeszpisacnaChatcieLangPLown}"
- stop
- if {ChatEx.langEnglisg} is true:
- cancel event
- message "{@niemozeszpisacnaChatcieLangENown}"
- stop
- if {ChatEx.%player%.chatMessagePlayerOn} is false:
- if {ChatEx.jezykPolski} is true:
- cancel event
- message "{@niemozeszpisacnaChatcieLangPL}"
- stop
- if {ChatEx.langEnglisg} is true:
- cancel event
- message "{@niemozeszpisacnaChatcieLangEN}"
- stop
- #-------------------------[][][]{Skript-Code-End}[][][]-------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement