Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skrypt napisany przez Msczosnal
- #Wersja 2
- #Można ustawiac nieskonczenie wiele punktow respawnu
- #żeby ustawic miejsce na spawn zombie trzeba stworzyc region, ktory ustawic mozna w opcjach.
- options:
- czas: 5 #czas respawnu w sekundach, bedzie 1 sekunda wiecej poniewaz jest every 1 second!
- limit: 20 #limit zombie do zrespienia
- region: zombies #Nazwa regionu w ktorym maja sie respic zombie
- variables:
- {zombiaki} = 0
- {spawny} = 0
- command /usun:
- trigger:
- player has permission "zombie.usun"
- if {spawny} is greater or equal to 0:
- set {spawny} to 0
- set {zombiaki} to 0
- clear {zombie::*}
- loop all zombies:
- if name of loop-entity is "&7Zombie":
- delete loop-entity
- else:
- stop
- command /info:
- trigger:
- player has permission "zombie.info"
- send "&7Region - &c{@region}"
- send "&7Limit - &c{@limit}"
- set {_czas} to {@czas}+1
- loop all zombies:
- if name of loop-zombies is "&7Zombie":
- add 1 to {_wszystkie}
- send "&7Liczba zywych zombie - &c%{_wszystkie}%"
- send "&7Czas respawnu - &c%{_czas}% sekund"
- send "&7Ustawione spawny: &c%{spawny}%"
- send "&7Licznik zombie - &c%{zombiaki}%"
- loop {zombie::%{spawny}%::*}:
- send "&7%loop-value%"
- command /spawnzombie:
- trigger:
- player has permission "zombie.ustaw"
- if player is in "{@region}":
- add location of player to {zombie::%{spawny}%::*}
- set {_x} to {spawny}+1
- send "&aUstawiles &b%{_x}%&a spawn zombie"
- add 1 to {spawny}
- stop
- else:
- send "&cNie znajdujesz sie na regionie ''{@region}''"
- on spawn:
- if event-entity is not player:
- if event-entity is in "{@region}":
- delete event-entity
- on death of zombie:
- if name of victim is "&7Zombie":
- remove 1 from {zombiaki}
- stop
- every 1 second:
- if {zombie::0::*} is set:
- if {zombiaki} < {@limit}:
- broadcast "%{zombiaki}%"
- add 1 to {zombiaki}
- wait {@czas} seconds
- set {_szansa} to a random integer between 0 and {spawny}
- loop {zombie::%{_szansa}%::*}:
- spawn 1 zombie at location of loop-value
- set the name of last spawned entity to "&7Zombie"
- stop
- else:
- stop
- else:
- stop
- every 5 second:
- loop all zombies:
- if name of loop-zombies is "&7Zombie":
- loop-zombie is in "{@region}":
- apply fire resistance to loop-entity for 10 second
- else:
- kill loop-zombie
- every 10 minutes:
- loop all zombies:
- if name of loop-entity is "&7Zombie":
- delete loop-entity
- set {zombiaki} to 0
Advertisement
Add Comment
Please, Sign In to add comment