Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {Rchat.off} = false
- {Rchat.vip} = false
- {Rchat.eye.%player%} = false
- options:
- chat: &7%display name of player%&8: &7%message%
- tag: &8[&3Rchat&8]
- tag2: &8&l»&m &8&l[&3&lRchat&8&l]&m &8&l«
- command /Rchat [<text>] [<text>] [<text>]:
- aliases: chat, rc
- trigger:
- if arg 1 is not "on" or "off" or "clear" or "vip" or "eye" or "cenzura" or "info" or "reload":
- send "{@tag} &7Poprawne uzycie: &3/Rchat"
- stop
- if arg 2 is not "on" or "off" or "dodaj" or "usun" or "lista":
- send "{@tag} &7Poprawne uzycie: &3/Rchat"
- stop
- if player has permission "Rchat.admin.*":
- if arg 1 is not set:
- send "{@tag2}"
- send "&8&l» &3/Rchat on/off &8- &7Wlacza/Wylacza Chat"
- send "&8&l» &3/Rchat clear &8- &7Czysci Chat"
- send "&8&l» &3/Rchat vip on/off &8- &7Wlacza/Wylacza chat dla Vip"
- send "&8&l» &3/Rchat eye &8- &7Wlacza/Wylacza wszystko widzace oko"
- send "&8&l» &3&m/Rchat cenzura dodaj <slowo>&8 - &7&mDodaje slowo do listy cenzurowanych"
- send "&8&l» &3&m/Rchat cenzura usun <slowo>&8 - &7&mUsuwa slowo z listy cenzurowanych"
- send "&8&l» &3&m/Rchat cenzura lista &8- &7&mLista slow cenzurowanych"
- send "&8&l» &3/Rchat info &8- &7Informacje na temamt Skryptu/Autora"
- send "&8&l» &3/Rchat reload &8- &7Przeladowanie Skryptu"
- stop
- else:
- send "{@tag2}"
- send "&8&l» &7Autorem skryptu jest &3RekitHD"
- send "&8&l» &7Skype autora &3piter3419"
- send "&8&l» &7Wersja &30.9 [Beta]"
- stop
- if player has permission "Rchat.admin.on" or "Rchat.admin.*":
- if arg 1 is "on":
- if {Rchat.off} is true:
- set {Rchat.off} to false
- loop 100 times:
- broadcast " "
- broadcast " {@tag}"
- broadcast "&7Chat zostal &aWlaczony &7przez &3&n%player%"
- stop
- else:
- send "{@tag} &7Koles ale chat jest juz &aWlaczony&7!"
- stop
- if player has permission "Rchat.admin.off" or "Rchat.admin.*":
- if arg 1 is "off":
- if {Rchat.off} is false:
- set {Rchat.off} to true
- loop 100 times:
- broadcast " "
- broadcast " {@tag}"
- broadcast "&7Chat zostal &4Wylaczony &7przez &3&n%player%"
- else:
- send "{@tag} &7Koles ale chat jest juz &4Wylaczony&7!"
- stop
- if player has permission "Rchat.admin.clear" or "Rchat.admin.*":
- if arg 1 is "clear":
- loop 100 times:
- broadcast " "
- broadcast " {@tag}"
- broadcast "&7Chat zostal wyczyszczony przez &3&n%player%"
- stop
- if player has permission "Rchat.admin.vip" or "Rchat.admin.*":
- if arg 1 is "vip":
- if arg 2 is not set:
- send "{@tag} &7Poprawne uzycie: &3/Rchat vip on/off"
- stop
- if arg 2 is "on":
- if {Rchat.off} is false:
- if {Rchat.vip} is false:
- send "{@tag} &7Koles ale chat glowny jest &aWlaczony&7!"
- stop
- else:
- send "{@tag} &7Koles ale chat glowny jest &aWlaczony&7!"
- stop
- if {Rchat.off} is true:
- if {Rchat.vip} is false:
- set {Rchat.vip} to true
- broadcast "{@tag} &7Chat dla &eVIP &7zostal &aWlaczony &7przez &3&n%player%"
- stop
- else:
- send "{@tag} &7Koles ale chat dla &eVIP &7jest juz &aWlaczony&7!"
- stop
- if arg 2 is "off":
- if {Rchat.off} is true:
- if {Rchat.vip} is true:
- set {Rchat.vip} to false
- broadcast "{@tag} &7Chat dla &eVIP &7zostal &4Wylaczony &7przez &3&n%player%"
- stop
- else:
- send "{@tag} &7Koles ale chat dla &eVIP &7jest juz &4Wylaczony&7!"
- stop
- if {Rchat.off} is false:
- if {Rchat.vip} is true:
- set {Rchat.vip} to false
- broadcast "{@tag} &7Chat dla &eVIP &7zostal &4Wylaczony &7przez &3&n%player%"
- stop
- else:
- send "{@tag} &7Koles ale chat dla &eVIP &7jest juz &4Wylaczony&7!"
- stop
- if player has permission "Rchat.admin.eye" or "Rchat.admin.*":
- if arg 1 is "eye":
- if {Rchat.eye.%player%} is false:
- set {Rchat.eye.%player%} to true
- send "{@tag} &aWlaczyles &7wszystko widzace oko!"
- stop
- else:
- set {Rchat.eye.%player%} to false
- send "{@tag} &4Wylaczyles &7wszystko widzace oko!"
- stop
- if player has permission "Rchat.admin.cenzura" or "Rchat.admin.*":
- if arg 1 is "cenzura":
- if arg 2 is not set:
- send "{@tag} &7Poprawne uzycie: &3/Rchat cenzura dodaj/usun/lista"
- stop
- if arg 2 is "dodaj":
- send "{@tag} &7Cenzure wprowadze w kolejnym update"
- stop
- if arg 2 is "usun":
- send "{@tag} &7Cenzure wprowadze w kolejnym update"
- stop
- if arg 2 is "lista":
- send "{@tag} &7Cenzure wprowadze w kolejnym update"
- stop
- if player has permission "Rchat.admin.info" or "Rchat.admin.*":
- if arg 1 is "info":
- send "{@tag2}"
- send "&8&l» &7Autorem skryptu jest &3RekitHD"
- send "&8&l» &7Skype autora &3piter3419"
- send "&8&l» &7Wersja &30.9 [Beta]"
- stop
- if player has permission "Rchat.admin.reload" or "Rchat.admin.*":
- if arg 1 is "reload":
- send "{@tag} &7Przeladowywanie..."
- execute console command "/sk reload %script%"
- wait 1 second
- send "{@tag} &7Pomyslnie przeladowano!"
- stop
- on command:
- loop all players:
- if {Rchat.eye.%loop-player%} is true:
- loop-player has permission "Rchat.admin.eye" or "Rchat.admin.*":
- send "{@tag} &c%player% &7Wywolal komende: &c/%command% %arguments%" to loop-player
- on chat:
- if {Rchat.off} is false:
- if {Rchat.vip} is false:
- set {_chat} to "{@chat}"
- replace all "{DISPLAY}" with "%display name of player%" in {_chat}
- replace all "{MESSAGE}" with "%message%" in {_chat}
- send "%{_chat}%" to all players
- cancel event
- if {Rchat.vip} is true:
- if player has permission "Rchat.vip":
- set {_vip} to "{@chat}"
- replace all "{DISPLAY}" with "%display name of player%" in {_vip}
- replace all "{MESSAGE}" with "%message%" in {_vip}
- send "%{_vip}%" to all players
- cancel event
- if {Rchat.off} is true:
- if {Rchat.vip} is true:
- if player has permission "Rchat.vip":
- set {_vip} to "{@chat}"
- replace all "{DISPLAY}" with "%display name of player%" in {_vip}
- replace all "{MESSAGE}" with "%message%" in {_vip}
- send "%{_vip}%" to all players
- cancel event
- else:
- send "{@tag} &7Chat jest &4Wylaczony&7!"
- cancel event
- if {Rchat.vip} is false:
- if player has permission "Rchat.admin.*":
- set {_admin} to "{@chat}"
- replace all "{DISPLAY}" with "%display name of player%" in {_admin}
- replace all "{MESSAGE}" with "%message%" in {_admin}
- send "%{_admin}%" to all players
- cancel event
- else:
- cancel event
- send "{@tag} &7Chat jest &4Wylaczony&7!"
Advertisement
Add Comment
Please, Sign In to add comment