Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # # # # # # # # # # # # # # # #
- # Script by PatisonPlayGames #
- # Name: WhiteList #
- # Version: Beta 1.0 #
- # Skript: 2.0.2 #
- # # # # # # # # # # # # # # # #
- #=============================================#
- # Licencja WhiteList by PatisonPlayGames! #
- # + Nie zezwalam na: #
- # - Usuwanie tresci o autorze! #
- # - Udostepnaniu skryptu innym! #
- # - Podszywanie sie pod autora! #
- # - Uzywanie kodu skryptu w swoich skryptach! #
- # - Zarabianie na skrypcie! #
- # + Zezwalam na: #
- # - Dodawanie kodu na swoja potrzebe! #
- # - Modyfikowanie wiadomosci! #
- #=============================================#
- options:
- # # # # # # # # # # # # # # #
- # #
- # General Config #
- # #
- # # # # # # # # # # # # # # #
- # Komenda uzywana w skrypcie:
- komenda: whitelist
- # Skroty do komendy wyzej:
- aliasy: wl
- # Tag wyswietlany przed wiadomosciami skryptu!
- tag: &8[&3WhiteList&8]
- #Nazwa pliku sk.Zanim wgrasz plik i zmieniles nazwe zmien ja takze tutaj i dopiero wgraj plik!:
- sk: WhiteList
- # # # # # # # # # # # # # #
- # #
- # Permissions #
- # #
- # # # # # # # # # # # # # #
- # Wiadomosc przy braku uprawnienia:
- permission: &4Nie masz uprawnien by uzywac tej komendy!
- # Autor Config
- version: Beta 1.1
- variables:
- {whitelist.%player%.allow} = true
- {whitelist.list::*} = 0
- {whitelist.on} = false
- # Basic WhiteList Command
- command /{@komenda} [<text>] [<text>]:
- aliases: {@aliasy}
- trigger:
- if arg 1 is not set:
- send "&7=========&cWhite-List&7============="
- send "&c/{@komenda} dodaj [Gracz] - &3Dodaje gracza do White-Listy!"
- send "&c/{@komenda} usun [Gracz] - &3Usuwa gracza z White-Listy!"
- send "&c/{@komenda} ustaw [Wiadomosc] - &3Ustawia wiadomosc wywalenia gdy gracz probuje wbic na serwa!"
- send "&c/{@komenda} on - &3Wlacza White-Liste!"
- send "&c/{@komenda} off - &3Wylacza White-Liste!"
- send "&c/{@komenda} lista - &3Pokazuje liste garczy na White-Liscie!"
- send "&c/{@komenda} autor - &3Pokazuje autora skryptu!"
- send "&c/{@komenda} reload - &3Przeladowywuje config!"
- stop
- if arg 1 is "help" or "pomoc":
- send "&7=========&cWhite-List&7============="
- send "&c/{@komenda} dodaj [Gracz] - &3Dodaje gracza do White-Listy!"
- send "&c/{@komenda} usun [Gracz] - &3Usuwa gracza z White-Listy!"
- send "&c/{@komenda} ustaw [Wiadomosc] - &3Ustawia wiadomosc wywalenia gdy gracz probuje wbic na serwa!"
- send "&c/{@komenda} on - &3Wlacza White-Liste!"
- send "&c/{@komenda} off - &3Wylacza White-Liste!"
- send "&c/{@komenda} lista - &3Pokazuje liste garczy na White-Liscie!"
- send "&c/{@komenda} autor - &3Pokazuje autora skryptu!"
- send "&c/{@komenda} reload - &3Przeladowywuje config!"
- stop
- if arg 1 is "dodaj" or "add":
- if player has permission "wl.admin":
- if arg 2 is player:
- set {_x} to arg 2 parsed as player
- send "{@tag} &aGracz &6%{_x}%&azostal dodany do whitelisty!"
- set {whitelist.%{_x}%.allow} to false
- add "%{_x}%" to {whitelist.list::*}
- stop
- else:
- send "{@tag} &cPodaj nick gracza!"
- stop
- else:
- send "{@tag} {@permission}"
- stop
- if arg 1 is "remove" or "usun":
- if player has permission "wl.admin":
- if arg 2 is player:
- set {_z} to arg 2 parsed as player
- if {whitelist.%{_z}%.allow} is false:
- remove "%{_z}%" from {whitelist.list::*}
- set {whitelist.%{_z}%.allow} to true
- send "{@tag} &aGracz &6%{_z}% &a zostal usuniety z whitelisty!"
- stop
- else:
- send "{@tag} &cTen gracz nie znajduje sie na whiteliscie!"
- stop
- else:
- send "{@tag} &cPodaj nick gracza!"
- stop
- else:
- send "{@tag} {@permission}"
- stop
- if arg 1 is "set" or "ustaw":
- if player has permission "wl.admin":
- if arg 2 is set:
- set {_y} to arg 2 parsed as text
- clear {kickmsg}
- set {kickmsg} to {_y}
- send "{@tag} &aWiadomosc zostala ustawiona na: &6%{kickmsg}%"
- stop
- else:
- send "{@tag} &cPodaj wiadomosc!"
- stop
- else:
- send "{@tag} {@permission}"
- stop
- if arg 1 is "on":
- if player has permission "wl.admin":
- if {whitelist.on} is false:
- set {whitelist.on} to true
- send "{@tag} &aWhiteLista zostala wlaczona!"
- stop
- else:
- send "{@tag} &cWhiteLista jest juz aktywna!"
- stop
- else:
- send "{@tag} {@permission}"
- stop
- if arg 1 is "off":
- if player has permission "wl.admin":
- if {whitelist.on} is true:
- set {whitelist.on} to false
- send "{@tag} &aWhiteLista zostala wylaczona!"
- stop
- else:
- send "{@tag} &cWhiteLista jest juz wylaczona!"
- stop
- else:
- send "{@tag} {@permission}"
- stop
- if arg 1 is "list" or "lista":
- if player has permission "wl.admin":
- send "{@tag} Gracze na white-liscie: &6%{whitelist.list::*}%"
- stop
- else:
- send "{@tag} {@permission}"
- stop
- if arg 1 is "reload" or "przeladuj":
- if player has permission "wl.admin":
- execute console command "skript reload {@sk}"
- send "{@tag} &aPrzeladowano!"
- stop
- else:
- send "{@tag} {@permission}"
- stop
- if arg 1 is "wersja" or "version":
- send "&7----------------------------------------------"
- send " &8Nazwa: &aWhiteList"
- send " &8Wersja: &a&n{@version}"
- send "&7----------------------------------------------"
- stop
- if arg 1 is "author" or "autor":
- send "&7----------------------------------------------"
- send " &8Autor: &aPatisonPlayGames"
- send " &8Nazwa: &aSWhiteList"
- send "&8 &8&nYou&4&nTube:&a &nwww.youtube.com/PatisonPlayGames"
- send "&7----------------------------------------------"
- stop
- if arg 1 is not "author" or "autor" or "wersja" or "version" or "reload" or "przeladuj" or "list" or "lista" or "off" or "on" or "set" or "ustaw" or "add" or "dodaj" or "remove" or "usun":
- send "{@tag} &4Nie ma takiej komendy! &aWpisz /{@komenda}!"
- stop
- on connect:
- if {whitelist.on} is true:
- if {whitelist.%player%.allow} is true:
- kick the player due to "%{kickmsg}%"
- stop
- on skript start:
- send "&8WhiteList wymaga wersji Skript 2.0.2 ..." to the console
- wait 1 seconds
- send "&8Serwer pracuje na wersji: %skript version%" to the console
- send "" to the console
- send "&8--------------------------------------------------------------" to the console
- send "&8| |" to the console
- send "&8| Enable &9WhiteList &8|" to the console
- send "&8| |" to the console
- send "&8--------------------------------------------------------------" to the console
- send "" to the console
- send "&8Autor: &ePatisonPlayGames" to the console
- send "&8Version: &7{@version}" to the console
- send "" to the console
- #------------------------------------------------ End of Script / Thanks for Use ---------------------------------#
- #-------------------------------- © by PationPlayGames - Author / YouTube www.youtube.com/PatisonPlayGames -------#
Advertisement
Add Comment
Please, Sign In to add comment