Advertisement
Haon

Ironman [SK]

Sep 10th, 2017
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. #===================================#
  2. #=---Ironman Skript by /u/haon35---=#
  3. #===================================#
  4.  
  5. options:
  6. C: §7Ironman §8»
  7.  
  8. command /ironman [<text>] [<offlineplayer>]:
  9. trigger:
  10. if arg 1 is not set:
  11. if {Ironman} is true:
  12. if {Ironman.list::*} is set:
  13. send "{@C} §7%{Ironman.list::*}%"
  14. else:
  15. send "{@C} §7The ironman list is not set !"
  16. else:
  17. send "{@C} §7Ironman is not set !"
  18. if arg 1 is "list":
  19. if {Ironman} is true:
  20. if {Ironman.list::*} is set:
  21. send "{@C} §7%{Ironman.list::*}%"
  22. else:
  23. send "{@C} §7The ironman list is not set !"
  24. else:
  25. send "{@C} §7Ironman is not set !"
  26. send "{@C} §7%{Ironman.list::*}%"
  27. if arg 1 is "start":
  28. if player is op:
  29. send "§7§o[%command sender% : started the ironman.]" to op
  30. set {Ironman} to true
  31. delete {Ironman.list::*}
  32. loop all players:
  33. add loop-player to {Ironman.list::*}
  34. broadcast "{@C} §7Every players has been added to the ironman list !"
  35. broadcast "{@C} §7%{Ironman.list::*}%"
  36. else:
  37. send "{@C} §7You are not allowed to change the list !"
  38. if arg 1 is "end":
  39. if player is op:
  40. send "§7§o[%command sender% : ended the ironman.]" to op
  41. set {Ironman} to false
  42. loop {Ironman.list::*}:
  43. remove loop-value from {Ironman.list::*}
  44. delete {Ironman.list::*}
  45. broadcast "{@C} §7Ironman list cleared !"
  46. else:
  47. send "{@C} §7You are not allowed to change the list !"
  48. if arg 1 is "add":
  49. if arg 2 is set:
  50. if {Ironman} is true:
  51. if player is op:
  52. send "§7§o[%command sender% : added %arg-2% to the ironman list.]" to op
  53. add arg 2 to {Ironman.list::*}
  54. send "{@C} §7You added %arg-2% to the ironman list !" to command sender
  55. send "{@C} §7You have been added to the ironman list !" to arg-2
  56. else:
  57. send "{@C} §7You are not allowed to change the list !"
  58. else:
  59. send "{@C} §7Ironman is not set !"
  60. else:
  61. send "{@C} §7You need to specify a player !"
  62.  
  63. on damage:
  64. if {Ironman} is true:
  65. remove victim from {Ironman.list::*}
  66. if size of {Ironman.list::*} is 1:
  67. broadcast "{@C} §r%{Ironman.list::*}% §7is the ironman !"
  68. set {Ironman} to false
  69. delete {Ironman.list::*}
  70.  
  71. on login:
  72. if {IronMan} is true:
  73. if {Ironman.list::%player%} is not set:
  74. add player to {Ironman.list::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement