Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. options:
  2. P: &1[&cPotential&aDeath&1]
  3.  
  4.  
  5.  
  6. command /potentialdeath <text>:
  7. permission: sk.op
  8. trigger:
  9. if arg-1 is "enable" or "on":
  10. set {pot} to true
  11. broadcast "{@P} &6is now enabled!"
  12. loop all players:
  13. set {Kill::%loop-player%::Got} to 0
  14. else:
  15. else if {pot} is true:
  16. message "&6Already enabled!"
  17.  
  18. if arg-1 is "disable" or "off":
  19. delete {pot}
  20. broadcast "{@P} &6is now disabled!"
  21. loop all players:
  22. set {Kill::%loop-player%::Got} to 0
  23. else:
  24. else if {pot} is false:
  25. message "&6Already disabled!"
  26.  
  27.  
  28. on death of player:
  29. if {pot} is true:
  30. set {Kill::%victim%::Got} to 0
  31. add 1 to {Kill::%attacker%::Got}
  32. if {Kill::%attacker%::Got} is equal to 1:
  33. command "/setmaxhealth 22 %attacker%"
  34. else if {Kill::%attacker%::Got} is equal to 2:
  35. command "/setmaxhealth 24 %attacker%"
  36. else if {Kill::%attacker%::Got} is equal to 3:
  37. command "/setmaxhealth 26 %attacker%"
  38. else if {Kill::%attacker%::Got} is equal to 4:
  39. command "/setmaxhealth 28 %attacker%"
  40. else if {Kill::%attacker%::Got} is equal to 5:
  41. command "/setmaxhealth 30 %attacker%"
  42. else if {Kill::%attacker%::Got} is equal to 6:
  43. command "/setmaxhealth 32 %attacker%"
  44. else if {Kill::%attacker%::Got} is equal to 7:
  45. command "/setmaxhealth 34 %attacker%"
  46. else if {Kill::%attacker%::Got} is equal to 8:
  47. command "/setmaxhealth 36 %attacker%"
  48. else if {Kill::%attacker%::Got} is equal to 9:
  49. command "/setmaxhealth 38 %attacker%"
  50. else if {Kill::%attacker%::Got} is equal to 10:
  51. command "/setmaxhealth 40 %attacker%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement