Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {zmienna3} = true
- {zmienna3} = false
- {dolacz2} = true
- {dolacz2} = false
- {koniec2} = true
- {koniec2} = false
- {trwa2} = true
- {trwa2} = false
- {klasysmierci} = true
- {klasysmierci} = false
- command /klasy [<text>]:
- trigger:
- if arg 1 is "ustaw":
- if player has permission "klasy.admin":
- send "&cPomyslnie ustawiono spawn klas"
- set {klasy.spawn} to location 370, 104, 38 in world "World"
- stop
- if arg 1 is "pomoc":
- send "&6/klasy pomoc &8[pokazuje ta wiadomosc]"
- send "&6/klasy dolacz &8[dolaczasz do eventu]"
- send "&6/klasy opusc &8[opuszczasz event]"
- send "&6/klasy info &8[pokazuje info o evencie]"
- execute console command "/pms play ENTITY_ITEM_PICKUP %PLAYER% 5 1"
- stop
- if arg 1 is not set:
- send "&cPoprawne uzycie: /klasy pomoc"
- execute console command "/pms play ENTITY_ITEM_PICKUP %PLAYER% 5 1"
- stop
- if arg 1 is "info":
- send "&7[&6Klasy&7] &8Osoba ktora zabije wszystkie osoby, wygrywa!"
- execute console command "/pms play ENTITY_ITEM_PICKUP %PLAYER% 5 1"
- stop
- if arg 1 is "dolacz":
- if {dolacz2} is true:
- execute console command "/pms play ENTITY_ITEM_PICKUP %PLAYER% 5 1"
- send "&6[Klasy] &cPomyslnie zapisano na event."
- add 1 to {startgry}
- add player to {uczestnicy2.eventu::*}
- add 1 to {zmienna}
- set {cmd::%player%} to true
- if {dolacz2} is false:
- execute console command "/pms play ENTITY_ITEM_PICKUP %PLAYER% 5 1"
- send "&6[Klasy] &cNie mozesz zapisac sie na event, poniewaz nie ma teraz eventu lub juz trwa."
- if arg 1 is "start":
- set {klasysmierci} to false
- set {zmienna3} to false
- execute command "klasy wyczysczmienne"
- execute command "klasy wyczysc"
- set {dolacz2} to true
- set {koniec2} to true
- execute command "/pms play ENTITY_GENERIC_EXPLODE * 10 1"
- broadcast "&6[Klasy] &7Wybila godzina 17!! Event rozpocznie sie za 30 sekund. Aby dolaczyc wpisz komende &6/klasy dolacz"
- wait 25 seconds
- broadcast "&6[Klasy] &7Rozpocznie sie za 5..."
- execute command "/pms play ENTITY_FIREWORK_ROCKET_BLAST * 10 1"
- wait 1 second
- broadcast "&6[Klasy] &7Rozpocznie sie za 4..."
- execute command "/pms play ENTITY_FIREWORK_ROCKET_BLAST * 10 1"
- wait 1 second
- broadcast "&6[Klasy] &7Rozpocznie sie za 3..."
- execute command "/pms play ENTITY_FIREWORK_ROCKET_BLAST * 10 1"
- wait 1 second
- broadcast "&6[Klasy] &7Rozpocznie sie za 2..."
- execute command "/pms play ENTITY_FIREWORK_ROCKET_BLAST * 10 1"
- wait 1 second
- broadcast "&6[Klasy] &7Rozpocznie sie za 1..."
- execute command "/pms play ENTITY_FIREWORK_ROCKET_BLAST * 10 1"
- wait 1 second
- set {dolacz2} to false
- set {trwa2} to true
- if {startgry} is higher than 1:
- broadcast "&6[Klasy] &7Event wlasnie sie rozpoczyna!!"
- execute command "/pms play ENTITY_FIREWORK_ROCKET_TWINKLE * 10 1"
- teleport {uczestnicy2.eventu::*} to {klasy.spawn}
- clear {startgry}
- stop
- if {startgry} is smaller than 2:
- broadcast "&6[Klasy] &7Event nie odbyl sie z powodu nie wystarczajacej liczby graczy."
- execute command "/pms play ENTITY_ITEM_PICKUP %PLAYER% 5 1"
- execute command "klasy wyczysczmienne"
- execute command "klasy wyczysc"
- clear {startgry}
- if arg 1 is "wyczysc":
- loop 10 times:
- remove all players from {uczestnicy2.eventu::*}
- stop
- if arg 1 is "opusc":
- if {trwa} is true:
- execute console command "/pms play ENTITY_ITEM_PICKUP %PLAYER% 5 1"
- remove player from {uczestnicy2.eventu::*}
- send "&6[Klasy] &cPomyslnie opuszczono event."
- execute command "/isd sendhome %player%"
- stop
- if {trwa} is false:
- execute console command "/pms play ENTITY_ITEM_PICKUP %PLAYER% 5 1"
- Send "&6[Klasy] &cNie mozesz opuscic eventu poniewaz w nim nie uczestniczysz albo nie trwa teraz event."
- stop
- if arg 1 is "koniec":
- teleport {uczestnicy2.eventu::*} to {klasykoniec.spawn}
- execute console command "/klasy wyczysc"
- stop
- if arg 1 is "ustawkoniec":
- if player has permission "klasy.admin":
- send "&cPomyslnie ustawiono spawn klas"
- set {klasykoniec.spawn} to location 20000039, 142, 61 in world "World"
- stop
- if arg 1 is "ustawmape":
- if player has permission "klasy.admin":
- send "&cPomyslnie ustawiono spawn klas"
- set {klasymapa.spawn} to location 403, 62, 54 in world "World"
- stop
- stop
- if arg 1 is "glosuj":
- if {cmd::%player%} is false:
- send "&6[Klasy] &cZaglosowales juz na start gry."
- if {cmd::%player%} is true:
- send "&6[Klasy] &aPomyslnie zaglosowano na start gry, czekanie na innych graczy."
- add 1 to {zmienna2}
- set {cmd::%player%} to false
- if {zmienna2} is equal to {zmienna}:
- set {klasysmierci} to true
- teleport {uczestnicy2.eventu::*} to {klasymapa.spawn}
- stop
- if arg 1 is "wyczysczmienne":
- clear {zmienna2}
- clear {zmienna}
- clear {startgry}
- if arg 1 is "ustawwina":
- if player has permission "klasy.admin":
- send "&cPomyslnie ustawiono miejsce wygranej."
- set {klasywygrana.spawn} to location 19999362, 159, 267 in world "World"
- stop
- on death:
- if {klasysmierci} is true:
- remove 1 from {zmienna2}
- remove player from {uczestnicy2.eventu::*}
- on any movement:
- if {zmienna3} is true:
- if {zmienna2} is equal to 1:
- clear inventory of {uczestnicy2.eventu::*}
- teleport {uczestnicy2.eventu::*} to {klasywygrana.spawn}
- remove player from {uczestnicy2.eventu::*}
- execute command "klasy wyczysc"
- execute command "time set day world"
- on entering region "strzelec":
- execute command "give %player% 301 1"
- execute command "give %player% 300 1"
- execute command "give %player% 299 1"
- execute command "give %player% 298 1"
- execute command "give %player% 261 1"
- execute command "give %player% 439 124"
- execute command "give %player% apple 64"
- execute command "tp %player% 358 110 65"
- send "&aPomyslnie wybrano klase &eStrzelec, &apoczekaj teraz na innych."
- stop
- on entering region "wojownik":
- execute command "give %player% 309 1"
- execute command "give %player% 308 1"
- execute command "give %player% 307 1"
- execute command "give %player% 306 1"
- execute command "give %player% 258 1"
- execute command "give %player% 364 64"
- execute command "give %player% 442 1"
- execute command "tp %player% 358 110 65"
- send "&aPomyslnie wybrano klase &eWojownik, &apoczekaj teraz na innych."
- stop
- on entering region "assasyn":
- execute command "give %player% 301 1"
- execute command "give %player% 300 1"
- execute command "give %player% 299 1"
- execute command "give %player% 298 1"
- execute command "give %player% 276 1"
- execute command "give %player% 424 64"
- execute command "tp %player% 358 110 65"
- send "&aPomyslnie wybrano klase &eAssasyn, &apoczekaj teraz na innych."
- stop
- on entering region "tank":
- execute command "give %player% 310 1"
- execute command "give %player% 311 1"
- execute command "give %player% 312 1"
- execute command "give %player% 313 1"
- execute command "give %player% 268 1"
- execute command "give %player% 424 64"
- execute command "give %player% 345 1"
- execute command "tp %player% 358 110 65"
- send "&aPomyslnie wybrano klase &eTank, &apoczekaj teraz na innych."
- stop
- on entering region "lobbyklasy":
- execute command "effect %player% invisibility 20000"
- execute command "time set night"
- on entering region "MapaKlasy":
- send player title "&fEvent sie zaczal" with subtitle "&fMinuta na rozstawienie"
- set {zmienna3} to true
- on entering region "wygranaklasy":
- send player title "&fWygrales event" with subtitle "&cGratulacje odbierz nagrode"
- execute command "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement