lNockl

Untitled

Jan 5th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. on damage of player:
  2. if damage cause is attack:
  3. delete {lastdamage.%victim%}
  4. set {lastdamage.%victim%} to attacker
  5. wait 10 seconds
  6. delete {lastdamage.%victim%}
  7. if damage cause is fall, lava, fire, burning, potion, or suffocation, or block explosion:
  8. if damage is more than victim's health:
  9. if {lastdamage.%victim%} is set:
  10. cancel event
  11. make {lastdamage.%victim%} damage victim by 20
  12. on death of player:
  13. if name of minigame minigame of victim is "skywars":
  14. if damage cause is not fall, lava, fire, burning, potion, or suffocation, or block explosion:
  15. add 1 to {currentkills.%attacker%}
  16. add 1 to {kills.%attacker%}
  17. delete {lastdamage.%victim%}
  18. remove victim from {alive.%name of arena arena of victim%::*}
  19. set victim's gamemode to spectator
  20. teleport victim to {spectator.%name of arena arena of victim%}
  21. send victim title "&cVoce Morreu" with subtitle "&7Agora voce e um Spectador" for 2 seconds
  22. send attacker title "" with subtitle "&a+1 &6Kill" for 1 seconds
  23. hide victim from all players
  24. loop all players in arena of attacker:
  25. invoke "GameBoard" from loop-player and name of arena arena of attacker
  26. broadcast "&c%victim% &eFoi morto por &7%attacker%" in arena of victim
  27. if size of {alive.%name of arena arena of attacker%::*} <= 1:
  28. add 1 to {vitorias.%attacker%}
  29. set attacker's fly mode to true
  30. loop all players in arena of attacker:
  31. send loop-player title "&aO Jogo Acabou" with subtitle "&6%attacker% foi o Vencedor Parabens" for 10 seconds
  32. loop 80 times:
  33. launch ball firework colored red and blue and yellow at attacker timed 0
  34. wait 3 ticks
  35. wait 2 seconds
  36. stop current arena of attacker
  37. else:
  38. delete {lastdamage.%victim%}
  39. remove victim from {alive.%name of arena arena of victim%::*}
  40. teleport victim to {spectator.%name of arena arena of victim%}
  41. send victim title "&cVoce Morreu" with subtitle "&7Agora voce e um Spectador" for 2 seconds
  42. hide victim from all players
  43. loop all players in arena of victim:
  44. invoke "GameBoard" from loop-player and name of arena arena of attacker
  45. set {_damagecause} to "%damage cause%"
  46. replace all "fire" with "&c%victim% &eMorreu por Brincar com Fogo" in {_damagecause}
  47. replace all "lava" with "&c%victim% &eMorreu tentando nadar na Lava" in {_damagecause}
  48. replace all "block explosiu" with "&c%victim% &eMorreu em pedaços com uma Explosao" in {_damagecause}
  49. replace all "fall" with "&c%victim% &eBateu no chao com Força e morreu!" in {_damagecause}
  50. replace all "potion" with "&c%victim% &eMorreu por Magia" in {_damagecause}
  51. replace all "burning" with "&c%victim% &eMorreu por Brincar com Fogo" in {_damagecause}
  52. replace all "burning" with "&c%victim% &eMorreu Agonizando Sufocado!" in {_damagecause}
  53. broadcast "%{_damagecause}%" in arena of victim
  54. if size of {alive.%name of arena arena of victim%::*} <= 1:
  55. set {_winner} to {alive.%name of arena arena of victim%::1}
  56. add 1 to {vitorias.%{_winner}%}
  57. loop all players in arena of victim:
  58. send loop-player title "&aO Jogo Acabou" with subtitle "&6%{_winner}% foi o Vencedor Parabens" for 10 seconds
  59. loop 80 times:
  60. launch ball firework colored red and blue and yellow at {_winner} timed 0
  61. wait 3 ticks
  62. wait 2 seconds
  63. stop current arena of victim
Advertisement
Add Comment
Please, Sign In to add comment