Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-----------------------#
- #Autor: xN0MANDx #
- #Skrypt: OperatorServer #
- #Wersja: 1.2 #
- #Wymagania: #
- #Skript I WildSkript #
- #-----------------------#
- variables:
- {ocenaD.%player%} = false
- {ocena1} = 0
- {ocena2} = 0
- {ocena3} = 0
- {ocena4} = 0
- {ocena5} = 0
- {ocena1Z.%player%} = 0
- {ocena2Z.%player%} = 0
- {ocena3Z.%player%} = 0
- {ocena4Z.%player%} = 0
- {ocena5Z.%player%} = 0
- {Gracze} = 0
- {Szczotka} = false
- {Killarka} = false
- {Oceniarka} = false
- {Firebalka} = false
- {Lisciarnia} = false
- {Krwiarnia} = false
- {Joniarka} = false
- {Reklamiarka} = false
- {Potworniarka} = false
- Options:
- Pasek: &9&m[----------------------------------------------------------]
- # Musialem zrobic drugiego options bo w 1 wywalalo ciagle bledy z jakiegos powodu
- Options:
- xMin: -2000 #X Od ilu ma byc spawn potworow? (kratek) #
- xMax: 2000 #X Do ilu ma byc spawn potworow? (kratek) #
- zMin: -2000 #Z Od ilu ma byc spawn potworow? (kratek) #
- zMax: 2000 #Z Do ilu ma byc spawn potworow? (kratek) #
- on connect:
- if {Joniarka} is true:
- if {gracz::%player%} is set:
- stop
- kick player due to "&2Anty&f&lBot &a- &cWejdz do gry ponownie!"
- set {gracz::%player%} to now
- on damage:
- if {Krwiarnia} is true:
- spawn 15 of particle blockcrack_152_0:30 offset by 0.3, 0.7, 0.3 at victim
- every 2 minute:
- if {Potworniarka} is true:
- wait a tick
- Set {_targetx} to a random integer between {@xMin} and {@xMax}
- Set {_targetz} to a random integer between {@zMin} and {@zMax}
- wait 1 second
- Execute console command "summon Giant %{_targetx}% 70 %{_targetz}%"
- wait a tick
- Set {_targetx} to a random integer between {@xMin} and {@xMax}
- Set {_targetz} to a random integer between {@zMin} and {@zMax}
- wait 1 second
- Execute console command "summon EntityHorse %{_targetx}% 70 %{_targetz}% {Type:4}"
- wait a tick
- Set {_targetx} to a random integer between {@xMin} and {@xMax}
- Set {_targetz} to a random integer between {@zMin} and {@zMax}
- wait 1 second
- Execute console command "summon EntityHorse %{_targetx}% 70 %{_targetz}% {Type:3}"
- wait a tick
- Set {_targetx} to a random integer between {@xMin} and {@xMax}
- Set {_targetz} to a random integer between {@zMin} and {@zMax}
- wait 1 second
- Execute console command "summon Creeper %{_targetx}% 70 %{_targetz}% {powered:1}"
- on leaves decay:
- if {Lisciarnia} is true:
- cancel event
- on chat:
- if {Reklamiarka} is true:
- if message contains "ench pl" or "maxc pl" or "hostmc pl" or "maxc" or "fhmc" or "fsrv" or "Wbijajcie Na Serwer" or "Wbijać Na Server" or "Wbijać Na Serwer" or "Wbijac Na Serwer" or "en ch . p l" or "e n c h" or "e nch p l" or "iq pl" or ".pl":
- cancel event
- send " "
- loop all players:
- if loop-players has permission "KidMod":
- send "&c&lUWAGA: &r%player%: %message%" to loop-player
- send "&c&lWykryto Reklame Serwera"
- send "&c&lAdministracja Sprawdzi"
- send "&c&lTwoje Słowa!"
- send "&c&lDostajesz Blokade Pisania Na 3 Minuty"
- send " "
- execute console command "mute %player% 3m"
- send " "
- on damage of ghast fireball:
- if {Firebalka} is true:
- cancel event
- command /ocen [<text>]:
- trigger:
- if {Oceniarka} is true:
- if {ocenaD.%player%} is false:
- if arg 1 is not set:
- send " "
- send "&aDostępne oceny + opis co oznaczają:"
- send "&b/ocen 1 &6[Okropny]"
- send "&b/ocen 2 &6[Głupi]"
- send "&b/ocen 3 &6[taki sobie]"
- send "&b/ocen 4 &6[Fajny]"
- send "&b/ocen 5 &6[Bardzo Fajny]"
- send "&b/usun ocene &6[Pozwala usunąć ocenę i dać na nowo"
- send " "
- if arg 1 is "1":
- add 1 to {ocena1}
- send "&2Oceniłeś serwer na okropny"
- set {ocenaD.%player%} to true
- add 1 to {ocena1Z.%player%}
- stop
- if arg 1 is "2":
- add 1 to {ocena2}
- send "&2Oceniłeś serwer na głupi"
- set {ocenaD.%player%} to true
- add 1 to {ocena2Z.%player%}
- stop
- if arg 1 is "3":
- add 1 to {ocena3}
- send "&2Oceniłeś serwer na taki sobie"
- set {ocenaD.%player%} to true
- add 1 to {ocena3Z.%player%}
- stop
- if arg 1 is "4":
- add 1 to {ocena4}
- send "&2Oceniłeś serwer na Fajny"
- set {ocenaD.%player%} to true
- add 1 to {ocena4Z.%player%}
- stop
- if arg 1 is "5":
- add 1 to {ocena5}
- send "&2Oceniłeś serwer na Bardzo Fajny"
- set {ocenaD.%player%} to true
- add 1 to {ocena5Z.%player%}
- stop
- else:
- send "&c&lTy już oceniałeś serwer nie możesz znowu!"
- command /Usun [<text>]:
- trigger:
- if {Oceniarka} is true:
- if arg 1 is "ocene":
- if {ocenaD.%player%} is true:
- if {ocena5Z.%player%} is more than 0:
- remove 1 from {ocena5}
- set {ocena5Z.%player%} to 0
- set {ocenaD.%player%} to false
- send " "
- send "&c&lUsunałeś decyzje o ocenie możesz znowu ocenić! &5/ocen"
- send " "
- stop
- if {ocena4Z.%player%} is more than 0:
- remove 1 from {ocena4}
- set {ocena4Z.%player%} to 0
- set {ocenaD.%player%} to false
- send " "
- send "&c&lUsunałeś decyzje o ocenie możesz znowu ocenić! &5/ocen"
- send " "
- stop
- if {ocena3Z.%player%} is more than 0:
- remove 1 from {ocena3}
- set {ocena3Z.%player%} to 0
- set {ocenaD.%player%} to false
- send " "
- send "&c&lUsunałeś decyzje o ocenie możesz znowu ocenić! &5/ocen"
- send " "
- stop
- if {ocena2Z.%player%} is more than 0:
- remove 1 from {ocena2}
- set {ocena2Z.%player%} to 0
- set {ocenaD.%player%} to false
- send " "
- send "&c&lUsunałeś decyzje o ocenie możesz znowu ocenić! &5/ocen"
- send " "
- stop
- if {ocena1Z.%player%} is more than 0:
- remove 1 from {ocena1}
- set {ocena1Z.%player%} to 0
- set {ocenaD.%player%} to false
- send " "
- send "&c&lUsunałeś decyzje o ocenie możesz znowu ocenić! &5/ocen"
- send " "
- stop
- else:
- send "&c&lNie możesz usunąć oceny ponieważ nie oceniłeś serwera! &b/ocen"
- command /oceny:
- trigger:
- if {Oceniarka} is true:
- send " "
- send "&8--&7--&6--&e-- &2&lOceny Serwera &e--&6--&7--&8--"
- send "&5Okropny &7- &e%{ocena1}%"
- send "&5Głupi &7- &e%{ocena2}%"
- send "&5Taki Sobie &7- &e%{ocena3}%"
- send "&5Fajny &7- &e%{ocena4}%"
- send "&5Bardzo Fajny &7- &e%{ocena5}%"
- send " "
- every 3 minute:
- if {Szczotka} is true:
- wait 120 second
- broadcast "{@Pasek}"
- broadcast "&d&lCzyszczenie światów z itemów na ziemi za 1 minute"
- broadcast "{@Pasek}"
- wait 60 second
- broadcast "{@Pasek}"
- loop all dropped Items:
- Item is not Item Frame:
- clear dropped Items
- broadcast "&d&lWyczyszczono swiaty z itemow lezacych na ziemi"
- broadcast "{@Pasek}"
- if {Killarka} is true:
- wait 240 second
- broadcast "{@Pasek}"
- broadcast "&d&lCzyszczenie światów z potworow za 1 minute"
- broadcast "{@Pasek}"
- wait 60 second
- broadcast "{@Pasek}"
- loop all entities:
- if loop-entity is not cow and chicken and pig and sheep and Item Frame:
- delete loop-entity
- broadcast "&d&lWyczyszczono swiaty z potworow"
- broadcast "{@Pasek}"
- on join:
- add 1 to {Gracze}
- stop
- on quit:
- remove 1 from {Gracze}
- stop
- on skript load:
- set {Gracze} to 0
- stop
- command /OS [<text>] [<text>] [<text>]:
- permission: OS
- trigger:
- if arg 1 is not set:
- send "{@Pasek}"
- send "&f&o/OS Lagi &8&o- &b&oKomendy zwiazane z lagami na serwerze"
- send "&f&o/OS Dodatki &8&o- &b&oKomendy zwiazane z dodatkami na serwerze"
- send "&f&o/OS Fizyka &8&o- &b&oKomendy zwiazane z fizyka gry"
- send "&f&o/OS Serwer &8&o- &b&oKomendy zwiazane z serwerem"
- send "&e&oWersja Skryptu: 1.2"
- send "&e&oNazwa Skryptu: OS.sk (Operator Server)"
- send "{@Pasek}"
- if arg 1 is "Lagi":
- if arg 2 is not set:
- send "{@Pasek}"
- send "&f&o/OS Lagi Pomiary &8&o- &b&oPokazuje pomiary lagow serwera"
- send "&f&o/OS Lagi Clear &8&o- &b&oUsuwa przedmioty z ziemi na wszystkich swiatach wokol graczy"
- send "&f&o/OS Lagi Clear Wlacz &8&o- &b&oWlacza automatyczne czyszczenie podlogi co 3 minuty"
- send "&f&o/OS Lagi Clear Wylacz &8&o- &b&oWylacza automatyczne czyszczenie podlogi"
- send "&f&o/OS Lagi Kill &8&o- &b&oZabija wszystkie potwory na wszystkich swiatach wokol graczy"
- send "&f&o/OS Lagi Kill Wlacz &8&o- &b&oWlacza automatyczne zabijanie wszystkich potworow na wszystkich swiatach wokol graczy co 5 minuty"
- send "&f&o/OS Lagi Kill Wylacz &8&o- &b&oWylacza automatyczne zabijanie wszystkich potworow na wszystkich swiatach wokol graczy"
- send "&f&o/OS Lagi Usun &8&o- &b&oUsuwa wszystkie lagi z serwera czyli itemy, potwory i detale"
- send "{@Pasek}"
- if arg 2 is "Pomiary":
- send "{@Pasek}"
- set {_tps} to tps
- send "&f&oTPS Serwera&8&o: &b&o%{_tps}%"
- send "&f&oIlosc Graczy Online&8&o: &b&o%{Gracze}% &5&o[Moze sie zaliczac konsola]"
- send "&f&oSwiaty Na Serwerze&8&o: &b&o%WORLDS%"
- set {_free} to free memory
- send "&f&oPamiec serwera&8&o: &b&o%{_free}%&7&o/&b&o%max memory%"
- send "{@Pasek}"
- if arg 2 is "Clear":
- if arg 3 is not set:
- send "{@Pasek}"
- loop all dropped Items:
- Item is not Item Frame:
- clear dropped Items
- send "&d&lWyczyszczono twoj swiat z smieci lezacych na podlodze"
- send "{@Pasek}"
- if arg 2 is "Kill":
- if arg 3 is not set:
- send "{@Pasek}"
- loop all entities:
- if loop-entity is not cow and chicken and pig and sheep and Item Frame:
- delete loop-entity
- send "&d&lWyczyszczono twoj swiat z potworow"
- send "{@Pasek}"
- if arg 2 is "Clear":
- if arg 3 is "Wlacz":
- set {Szczotka} to true
- send "{@Pasek}"
- send "&d&lWłączono czyszczenie światów z itemow"
- send "{@Pasek}"
- if arg 3 is "Wylacz":
- set {Szczotka} to false
- send "{@Pasek}"
- send "&d&lWyłączono czyszczenie światów z itemow"
- send "{@Pasek}"
- if arg 2 is "kill":
- if arg 3 is "Wlacz":
- set {Killarka} to true
- send "{@Pasek}"
- send "&d&lWłączono czyszczenie światów z potworow"
- send "{@Pasek}"
- if arg 3 is "Wylacz":
- set {Killarka} to false
- send "{@Pasek}"
- send "&d&lWyłączono czyszczenie światów z potworow"
- send "{@Pasek}"
- if arg 2 is "Usun":
- send "{@Pasek}"
- loop all entities:
- if loop-entity is not cow and chicken and pig and sheep and Item Frame:
- delete loop-entity
- loop all dropped Items:
- Item is not Item Frame:
- clear dropped Items
- loop all worlds:
- clear weather in loop-worlds
- send "&d&lWyczyszczono serwer z lagow"
- send "{@Pasek}"
- if arg 1 is "Dodatki":
- if arg 2 is not set:
- send "{@Pasek}"
- send "&b&o/OS Dodatki Oceny Wlacz/Wylacz &8&o- &f&oWlacza i wylacza ocenianie serwera przez graczy"
- send "&b&o/OS Dodatki Krew Wlacz/Wylacz &8&o- &f&oWlacza i wylacza lanie sie krwi"
- send "&b&o/OS Dodatki AntyBot Wlacz/Wylacz &8&o- &f&oWlacza i wylacza antybota"
- send "&b&o/OS Dodatki AntyReklamy Wlacz/Wylacz &8&o- &f&oWlacza i wylacza antyreklamy"
- send "&b&o/OS Dodatki Potwory Wlacz/Wylacz &8&o- &f&oWlacza spawnowanie sie gigantow, ultra creeperow, kon szkielet, kon zombie"
- send "{@Pasek}"
- if arg 2 is "Oceny":
- if arg 3 is "Wlacz":
- set {Oceniarka} to true
- send "{@Pasek}"
- send "&d&lWlaczono oceniarke"
- send "{@Pasek}"
- if arg 3 is "Wylacz":
- set {Oceniarka} to false
- send "{@Pasek}"
- send "&d&lWylaczono oceniarke"
- send "{@Pasek}"
- if arg 2 is "krew":
- if arg 3 is "Wlacz":
- set {Krwiarnia} to true
- send "{@Pasek}"
- send "&d&lWlaczono Krew"
- send "{@Pasek}"
- if arg 3 is "Wylacz":
- set {Krwiarnia} to false
- send "{@Pasek}"
- send "&d&lWylaczono Krew"
- send "{@Pasek}"
- if arg 2 is "AntyBot":
- if arg 3 is "Wlacz":
- set {Joniarka} to true
- send "{@Pasek}"
- send "&d&lWlaczono AntyBota"
- send "{@Pasek}"
- if arg 3 is "Wylacz":
- set {Joniarka} to false
- send "{@Pasek}"
- send "&d&lWylaczono AntyBot"
- send "{@Pasek}"
- if arg 2 is "AntyReklamy":
- if arg 3 is "Wlacz":
- set {Reklamiarka} to true
- send "{@Pasek}"
- send "&d&lWlaczono AntyReklamy"
- send "{@Pasek}"
- if arg 3 is "Wylacz":
- set {Reklamiarka} to false
- send "{@Pasek}"
- send "&d&lWylaczono AntyReklamy"
- send "{@Pasek}"
- if arg 2 is "Potwory":
- if arg 3 is "Wlacz":
- set {Potwoniarka} to true
- send "{@Pasek}"
- send "&d&lWlaczono Spawnowanie Potworow"
- send "{@Pasek}"
- if arg 3 is "Wylacz":
- set {Potworniarka} to false
- send "{@Pasek}"
- send "&d&lWylaczono Spawnowanie Potworow"
- send "{@Pasek}"
- if arg 1 is "Fizyka":
- if arg 2 is not set:
- send "{@Pasek}"
- send "&b&o/OS Fizyka Fireball Wlacz &8&o- &f&oWlacza odbijanie kuli ghasta"
- send "&b&o/OS Fizyka Fireball Wylacz &8&o- &f&oWylacza odbijanie kuli ghasta"
- send "&b&o/OS Fizyka Liscie Wlacz &8&o- &f&oWlacza odpadanie lisci"
- send "&b&o/OS Fizyka Liscie Wylacz &8&o- &f&oWylacza odpadanie lisci"
- send "{@Pasek}"
- if arg 2 is "Fireball":
- if arg 3 is "Wlacz":
- send "{@Pasek}"
- send "&e&lTeraz kule ghasta da sie odbijac"
- set {Firebalka} to false
- send "{@Pasek}"
- if arg 3 is "Wylacz":
- send "{@Pasek}"
- send "&e&lTeraz kuli ghasta nie da sie odbijac"
- set {Firebalka} to true
- send "{@Pasek}"
- if arg 2 is "Liscie":
- if arg 3 is "Wlacz":
- send "{@Pasek}"
- send "&e&lLiscie teraz odpadaja"
- set {Lisciarnia} to false
- send "{@Pasek}"
- if arg 3 is "Wylacz":
- send "{@Pasek}"
- send "&e&lLiscie teraz nie odpadaja"
- set {Lisciarnia} to true
- send "{@Pasek}"
- if arg 1 is "Serwer":
- if arg 2 is not set:
- send "{@Pasek}"
- send "&b&o/OS Serwer Restart &8&o- &f&o"
- send "{@Pasek}"
- if arg 2 is "Restart":
- execute console command "save-all"
- broadcast "&b&lZapisano Gre"
- broadcast "&c&lZa 10 sekund zostanie przeprowadzony restart serwera"
- wait 5 second
- broadcast "&c&lZa 5 sekund zostanie przeprowadzony restart serwera"
- wait 1 second
- broadcast "&c&lZa 4 sekund zostanie przeprowadzony restart serwera"
- wait 1 second
- broadcast "&c&lZa 3 sekund zostanie przeprowadzony restart serwera"
- wait 1 second
- broadcast "&c&lZa 2 sekund zostanie przeprowadzony restart serwera"
- wait 1 second
- broadcast "&c&lZa 1 sekund zostanie przeprowadzony restart serwera"
- wait 1 second
- broadcast "&c&lZa 0 sekund zostanie przeprowadzony restart serwera"
- loop all players:
- kick loop-player due to "&d&lRestart serwera zaloguj sie za pare sekund"
- wait a tick
- execute console command "reload"
- loop 50 times:
- broadcast " "
- wait 3 second
- broadcast "&a&lPomyślnie zakończono restart serwera"
- # Koniec skryptu ale bedzie ulepszany
Advertisement
Add Comment
Please, Sign In to add comment