#Wszelkie prawa zastrzezone skrypt adPB autor: maxcom1, wersja 2.0 function clearversionraw(txt: text): clear {allversions} clear {noneversion} clear {adpbactualversion} set {de} to {_txt} clear {de} on damage: if {ab} is true: if victim have permission "adpb.true.admin" or "adPB*": send "&c[&4&ladPB&c]&r &7Bicie administracji jest zablokowane!" to attacker cancel event push attacker horizontally backwards with speed 2 stop if {bm} is true: if victim's ip is attacker's ip: send "&c[&4&ladPB&c]&r &7Bicie multikont jest zablokowane!" to attacker cancel event command /adpb [] []: aliases: adpb:adpb trigger: if player have permission "adpb.help.admin" or "adPB*": if arg 1 is not set: send "&c[&4&ladPB&c]&r &6Uzyj &4switch/mac/autor/wsparcie/version/permisje/reload/help&6 jako argument" stop if arg 1 is "wsparcie" or "kontakt": set {actlink} to text from "https://pastebin.com/raw/WZdwpGc7" set {actlink2} to text from "https://pastebin.com/raw/nyR1HkT6" send "&c[&4&ladPB&c]&r Aktualny link do discorda wsparcia: %{actlink}%&6. Mail kontaktowy: %{actlink2}%&6." clear {actlink} clear {actlink2} if arg 1 is "switch": if {ab} is false: send "&c[&4&ladPB&c]&r &aWlaczono zablokowanie bicia administracji" set {ab} to true stop if {ab} is true: send "&c[&4&ladPB&c]&r &cWylaczono zablokowanie bicia administracji" set {ab} to false if arg 1 is "mac": if {bm} is false: send "&c[&4&ladPB&c]&r &aWlaczono zablokowanie bicia multikont" set {bm} to true stop if {bm} is true: send "&c[&4&ladPB&c]&r &cWylaczono zablokowanie bicia multikont" set {bm} to false if arg 1 is "help": send "&6========&cPomoc adPB&6========" send "&7/adpb switch &c- &6Wlacza/Wylacza mozliwosc bicia administracji." send "&7/adpb mac &c- &6Wlacza/Wylacza mozliwosc bicia sie multikont/graczy o tym samym ip." send "&7/adpb autor &c- &6Informacje o autorze." send "&7/adpb version &c- &6Pelne informacje o wersji." send "&7/adpb permisje &c- &6Wyswietla permisje i ich funkcje." send "&7/adpb reload &c- &6Przeladowuje skrypt." send "&7/adpb wsparcie &c- &6Wyswietla aktualny discord wsparcia oraz mail" send "&6========&cPomoc adPB&6========" if arg 1 is "autor": send "&c[&4&ladPB&c]&r &6Autorem skryptu &c&ladPB&6 na odpychanie i blokowanie uderzania administracji jest &7maxcom1" stop if arg 1 is "version": set {adpbactualversion} to text from "https://pastebin.com/raw/05KVZXcK" set {noneversion} to text from "https://pastebin.com/raw/Qh730M3z" set {allversions} to text from "https://pastebin.com/raw/Hrqbwj6y" if {allversions} contains "2.0": else: send "&c[&4&ladPB&c]&r &cuzywasz nie istniejacej lub zmodyfikowanej wersji skryptu. Prosimy pobrac skrypt z oryginalnej strony." clearversionraw("none") stop send "&c[&4&ladPB&c]&r &6Wesja &c&ladPB&6 to &72.0" if {noneversion} contains "2.0": send "&c[&4&ladPB&c]&r &cUzywasz za starej wersji skryptu uznanej za nie poprawnie dzialajaca. Prosimy zaktualizowac ja do najnowszej wersji &6(%{adpbactualversion}%)" clearversionraw("none") stop if {adpbactualversion} is "2.0": send "&c[&4&ladPB&c]&r &aUzywasz najnowszej wersji skryptu" else: send "&c[&4&ladPB&c]&r &cTwoja wersja jest nie aktualna. Prosimy zaktualizowac wersje do najnowszej &6(%{adpbactualversion}%)" clearversionraw("none") stop if arg 1 is "permisje": send "&c[&4&ladPB&c]&r &6Lista permisji:" send "&7adpb.true.admin &8 - &6Zablokowywanie odpychania gracza z ta permisja" send "&7adpb.help.admin &8- &6Dostep do wszystkich funkcji komendy /adpb" send "&7adpb.rl.admin &8- &6Widocznosc wiadomosci o reloadach pluginu" stop if arg 1 is "reload": execute console command "sk reload %script%" stop if arg 1 isn't "on" or "off" or "author" or "version" or "permisje" or "reload" or "kontakt": send "&c[&4&ladPB&c]&r &6Uzyj &4on/off/author/version/permisje/reload&6 jako argument" if arg 1 is not "switch" or "mac" or "wsparcie" or "version" or "permisje" or "reload" or "help": send "&c[&4&ladPB&c]&r &6Uzyj &4switch/mac/autor/wsparcie/version/permisje/reload/help&6 jako argument" if player don't have permission "adpb.help.admin" or "adPB*": send "&4Brak uprawnien :[" stop on load: wait 1 tick if {hl} isn't 1: set {hl} to 1 set {ab} to true loop all players: if loop-player have permission "adpb.rl.admin" or "adPB*": send "&c[&4&ladPB&c]&r &6Dodano skrypt &c&ladPB&6 (/adpb)" to loop-player stop if {bm} isn't set: set {bm} to false send "&c[&4&ladPB&c]&r &2Pomyslnie przeladowano" to console loop all players: if loop-player have permission "adpb.rl.admin" or "adPB*": send "&c[&4&ladPB&c]&r &2Pomyslnie przeladowano" to loop-player set {adpbactualversion} to text from "https://pastebin.com/raw/05KVZXcK" set {noneversion} to text from "https://pastebin.com/raw/Qh730M3z" set {allversions} to text from "https://pastebin.com/raw/Hrqbwj6y" if {allversions} contains "2.0": else: send "&c[&4&ladPB&c]&r &cuzywasz nie istniejacej lub zmodyfikowanej wersji skryptu. Prosimy pobrac skrypt z oryginalnej strony." to loop-player clearversionraw("none") stop send "&c[&4&ladPB&c]&r &6Wesja &c&ladPB&6 to &72.0" to loop-player if {noneversion} contains "2.0": send "&c[&4&ladPB&c]&r &cUzywasz za starej wersji skryptu uznanej za nie poprawnie dzialajaca. Prosimy zaktualizowac ja do najnowszej wersji &6(%{adpbactualversion}%)" to loop-player clearversionraw("none") stop if {adpbactualversion} is "2.0": send "&c[&4&ladPB&c]&r &aUzywasz najnowszej wersji." to loop-player else: send "&c[&4&ladPB&c]&r &cTwoja wersja jest nie aktualna. Prosimy zaktualizowac wersje do najnowszej &6(%{adpbactualversion}%)" to loop-player clearversionraw("none") stop