Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {ingame.%player%} is not set:
- set {ingame.%player%} to false
- command /lobby:
- trigger:
- if player is op:
- set {lobby} to location of player
- command /arenar:
- trigger:
- if player is op:
- set {arenar} to location of player
- command /arenab:
- trigger:
- if player is op:
- set {arenab} to location of player
- command /arenapvpr:
- trigger:
- if player is op:
- set {arenapvpr} to location of player
- command /arenapvpb:
- trigger:
- if player is op:
- set {arenapvpb} to location of player
- command /add:
- trigger:
- if player is op:
- add 1 to {players}
- command /remove:
- trigger:
- if player is op:
- add -1 to {players}
- command /join:
- trigger:
- if {ingame.%player%} is false:
- if {stage} is smaller than 6:
- if {players} is smaller than 7:
- clear player's inventory
- set {ingame.%player%} to true
- broadcast "&7+ %player% (%{players}%)"
- add -1 to {players}
- set {teams.%player%} to not set
- teleport player to {lobby}
- command /leave:
- trigger:
- if {ingame.%player%} is true:
- clear player's inventory
- set {ingame.%player%} to false
- broadcast "&7- %player% (%{players}%)"
- add 1 to {players}
- set {pt.%player%} to 0
- set {teams.%player} to not set
- on quit:
- make player execute command "/leave"
- set {teams.%player%} to not set
- every 1 second:
- if {stage} is 7:
- if {teamblue} is smaller than 1:
- broadcast "Red wygrali!"
- set {teamred} to 0
- set {teamblue} to 0
- set {stage} to 0
- set {czas} to 10
- set {czasgejm} to 300
- loop all players:
- set {teams.%loop-player%} to not set
- loop {teamredp::*}:
- add {pt.%loop-value%} to {pkt.%loop-value%}
- make loop-value execute command "/leave"
- clear {teamredp::*}
- clear {teambluep::*}
- else if {teamred} is smaller than 1:
- broadcast "Blue wygrali!"
- set {teamred} to 0
- set {teamblue} to 0
- set {stage} to 0
- set {czas} to 10
- set {czasgejm} to 300
- loop all players:
- set {teams.%loop-player%} to not set
- loop {teambluep::*}:
- add {pt.%loop-value%} to {pkt.%loop-value%}
- make loop-value execute command "/leave"
- clear {teamredp::*}
- clear {teambluep::*}
- if {players} is smaller than 5:
- set {stage} to 0
- set {czas} to 10
- set {czasgejm} to 300
- else if {players} is bigger than 5:
- if {stage} is 0:
- set {stage} to 1
- loop 5 times:
- add -1 to {czas}
- wait 1 second
- if {czas} is smaller than 6:
- if {stage} is 1:
- set {stage} to 2
- loop 2 times:
- add -1 to {czas}
- wait 1 second
- if {czas} is smaller than 4:
- if {stage} is 2:
- set {stage} to 3
- add -1 to {czas}
- wait 1 second
- if {czas} is smaller than 3:
- if {stage} is 3:
- set {stage} to 4
- add -1 to {czas}
- wait 1 second
- if {czas} is smaller than 2:
- if {stage} is 4:
- set {stage} to 5
- add -1 to {czas}
- wait 1 second
- if {czas} is smaller than 1:
- if {stage} is 5:
- set {playerscheck} to 0
- loop all players:
- if {teams.%loop-player%} is set:
- add 1 to {playerscheck}
- wait 5 ticks
- if {playerscheck} is {players}:
- set {stage} to 6
- loop all players:
- if {ingame.%loop-player%} is true:
- if {teams.%loop-player%} is 2:
- teleport loop-player to {arenar}
- if {teams.%loop-player%} is 1:
- teleport loop-player to {arenab}
- loop 300 times:
- add -1 to {czasgejm}
- loop all players:
- if {ingame.%loop-player%} is true:
- display "&lPozostaly czas: %{czasgejm}%" on bossbar with 100 percent by 1 seconds for loop-player
- wait 1 second
- if {czasgejm} is smaller than 1:
- if {stage} is 6:
- clear {serki::*}
- set {stage} to 7
- make server execute command "/saver regen arena1"
- loop all players:
- if {ingame.%loop-player%} is true:
- if {teams.%loop-player%} is 2:
- teleport loop-player to {arenapvpr}
- if {teams.%loop-player%} is 1:
- teleport loop-player to {arenapvpb}
- add loop-player to {serki::*}
- if {playerscheck} is smaller than {players}:
- broadcast "Odliczanie zrestartowane - ktos z graczy nie wybral team'u"
- set {stage} to 0
- on death of player:
- if {ingame.%player%} is true:
- remove player from {serki::*}
- set {ingame.%player%} to false
- add -1 to {players}
- set {pt.%player%} to 0
- set {teams.%player%} to not set
- on rightclick:
- if {ingame.%player%} is true:
- if block is red wool:
- if {teamred} is smaller than 4:
- if {teams.%player%} is 1:
- set {teams.%player%} to 2
- add player to {teamredp::*}
- remove player from {teambluep::*}
- add 1 to {teamred}
- add -1 to {teamblue}
- else {teams.%player%} is not set:
- set {teams.%player%} to 2
- add player to {teamredp::*}
- remove player from {teambluep::*}
- add 1 to {teamred}
- else if block is blue wool:
- if {teamblue} is smaller than 4:
- if {teams.%player%} is 2:
- set {teams.%player%} to 1
- add player to {teambluep::*}
- remove player from {teamredp::*}
- add 1 to {teamblue}
- add -1 to {teamred}
- else {teams.%player%} is not set:
- set {teams.%player%} to 1
- add player to {teambluep::*}
- remove player from {teamredp::*}
- add 1 to {teamblue}
- on damage:
- if {teams.%victim%} is 1:
- if {teams.%attacker%} is 1:
- cancel event
- if {teams.%victim%} is 2:
- if {teams.%attacker%} is 2:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment