SHARE
TWEET

Spleef5.0

Metexu Jan 20th, 2020 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on death:
  2.     set {_arenacount} to 1
  3.         loop {spleef.config.value.amount-of-arenas} times:
  4.             if {player.%victim%.stats.status} is not "%{_arenacount}%":
  5.                 add 1 to {_arenacount}
  6.             else:
  7.                 if {player.%victim%.stats.playing} is true:
  8.                     if {player.%victim%.stats.group} is 1:
  9.                         cancel event
  10.                         remove victim from {spleef.arena.%{_arenacount}%.players::list}
  11.                         remove 1 from {spleef.arena.%{_arenacount}%.players}
  12.                         add victim to {spleef.arena.%{_arenacount}%.spectators::list}
  13.                         add 1 to {spleef.arena.%{_arenacount}%.spectators}
  14.                         set victim's gamemode to spectator
  15.                         loop {spleef.arena.%{_arenacount}%.players::list}:
  16.                             message "%{spleef.config.value.prefix}% &7Do &e/leave &7if you want to quit"
  17.                             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
  18.                             if {spleef.arena.%{_arenacount}%.players} is 1:
  19.                                 invoke "Winner" from loop-value
  20.                         loop {spleef.arena.%{_arenacount}%.spectators::list}:
  21.                             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
  22.                         clear victim's inventory
  23.                         teleport victim to {spleef.arena.%{_arenacount}%.specspawn}
  24.                         heal victim
  25.                         milk victim
  26.                     else:
  27.                         stop
  28.                 else if {player.%victim%.stats.waiting} is true:
  29.                     cancel event
  30.                     teleport victim to {spleef.arena.%{_arenacount}%.waitlobby}
  31.                 else:
  32.                     stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top