Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on death:
- set {_arenacount} to 1
- loop {spleef.config.value.amount-of-arenas} times:
- if {player.%victim%.stats.status} is not "%{_arenacount}%":
- add 1 to {_arenacount}
- else:
- if {player.%victim%.stats.playing} is true:
- if {player.%victim%.stats.group} is 1:
- cancel event
- remove victim from {spleef.arena.%{_arenacount}%.players::list}
- remove 1 from {spleef.arena.%{_arenacount}%.players}
- add victim to {spleef.arena.%{_arenacount}%.spectators::list}
- add 1 to {spleef.arena.%{_arenacount}%.spectators}
- set victim's gamemode to spectator
- loop {spleef.arena.%{_arenacount}%.players::list}:
- message "%{spleef.config.value.prefix}% &7Do &e/leave &7if you want to quit"
- message "%{spleef.config.value.prefix}% &e%player% &7is eliminated! &8(&e%{spleef.arena.%{_arenacount}%.players}%&7/&e%{spleef.config.value.max-players-snow}%&8)" to loop-value
- if {spleef.arena.%{_arenacount}%.players} is 1:
- invoke "Winner" from loop-value
- loop {spleef.arena.%{_arenacount}%.spectators::list}:
- message "%{spleef.config.value.prefix}% &e%player% &7is eliminated! &8(&e%{spleef.arena.%{_arenacount}%.players}%&7/&e%{spleef.config.value.max-players-snow}%&8)" to loop-value
- clear victim's inventory
- teleport victim to {spleef.arena.%{_arenacount}%.specspawn}
- heal victim
- milk victim
- else:
- stop
- else if {player.%victim%.stats.waiting} is true:
- cancel event
- teleport victim to {spleef.arena.%{_arenacount}%.waitlobby}
- else:
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement