Oxalist

Untitled

Jan 15th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. on first join:
  2. set {Defusing::%player%} to "False"
  3. set {Defused::%player%} to "False"
  4.  
  5. command /reset:
  6. permission: reset.admin
  7. trigger:
  8. set {Explode.Exploded} to "False"
  9. set {Defuse.Defused} to "False"
  10. set {Defusing::%player%} to "False"
  11. set {Defused::%player%} to "False"
  12. set action bar of player to "&8» &7Reset-all Complete."
  13.  
  14. command /resetrounds:
  15. permission: reset.admin
  16. trigger:
  17. set {CTRoundsWon} to 0
  18. set {TRoundsWon} to 0
  19. set action bar of player to "&8» &7Reset-Rounds Complete."
  20.  
  21. on place of a daylight sensor:
  22. set action bar of player to "&8» &7Bomb Planting in &e5 &7Seconds."
  23. wait 1 second
  24. set action bar of player to "&8» &7Bomb Planting in &e4 &7Seconds."
  25. wait 1 second
  26. set action bar of player to "&8» &7Bomb Planting in &e3 &7Seconds."
  27. wait 1 second
  28. set action bar of player to "&8» &7Bomb Planting in &e2 &7Seconds."
  29. wait 1 second
  30. set action bar of player to "&8» &7Bomb Planting in &e1 &7Seconds."
  31. wait 1 second
  32. broadcast "&8» &7The bomb has been planted!"
  33.  
  34.  
  35. if {Defused::%player%} is "True":
  36. stop
  37. broadcast "&8» &7Bomb exploding in &e30 &7seconds."
  38. wait 5 seconds
  39. if {Defused::%player%} is "True":
  40. stop
  41. broadcast "&8» &7Bomb exploding in &e25 &7seconds."
  42. wait 5 seconds
  43. if {Defused::%player%} is "True":
  44. stop
  45. broadcast "&8» &7Bomb exploding in &e20 &7seconds."
  46. wait 5 seconds
  47. if {Defused::%player%} is "True":
  48. stop
  49. broadcast "&8» &7Bomb exploding in &e15 &7seconds."
  50. wait 5 seconds
  51. if {Defused::%player%} is "True":
  52. stop
  53. broadcast "&8» &7Bomb exploding in &e10 &7seconds."
  54. wait 5 seconds
  55. if {Defused::%player%} is "True":
  56. stop
  57. broadcast "&8» &7Bomb exploding in &e5 &7seconds."
  58. wait 2 second
  59. if {Defused::%player%} is "True":
  60. stop
  61. broadcast "&8» &7Bomb exploding in &e3 &7seconds."
  62. wait 1 second
  63. if {Defused::%player%} is "True":
  64. stop
  65. broadcast "&8» &7Bomb exploding in &e2 &7seconds."
  66. wait 1 second
  67. if {Defused::%player%} is "True":
  68. stop
  69. broadcast "&8» &7Bomb exploding in &e1 &7seconds."
  70. wait 1 second
  71. if {Defused::%player%} is "True":
  72. stop
  73. broadcast "&8» &7The bomb has exploded"
  74. set {Explode.Exploded} to "True"
  75. set event-block to air
  76. show large explosion at the event-block to the player
  77. show large explosion at the event-block to the player
  78. make console execute "reset"
  79.  
  80. on rightclick on daylight sensor with shears:
  81. if player is holding shears named "&fDefuser":
  82. set {Defused::%player%} to "False"
  83. set {Defusing::%player%} to "True"
  84. if {Defusing::%player%} is "True":
  85. if {Defusing::%player%} is "False":
  86. stop
  87. set action bar of player to "&8» &7Defusing bomb in &e8 &7seconds."
  88. wait 1 second
  89. if {Defusing::%player%} is "False":
  90. stop
  91. set action bar of player to "&8» &7Defusing bomb in &e7 &7seconds."
  92. wait 1 second
  93. if {Defusing::%player%} is "False":
  94. stop
  95. set action bar of player to "&8» &7Defusing bomb in &e6 &7seconds."
  96. wait 1 second
  97. if {Defusing::%player%} is "False":
  98. stop
  99. set action bar of player to "&8» &7Defusing bomb in &e5 &7seconds."
  100. wait 1 second
  101. if {Defusing::%player%} is "False":
  102. stop
  103. set action bar of player to "&8» &7Defusing bomb in &e4 &7seconds."
  104. wait 1 second
  105. if {Defusing::%player%} is "False":
  106. stop
  107. set action bar of player to "&8» &7Defusing bomb in &e3 &7seconds."
  108. wait 1 second
  109. if {Defusing::%player%} is "False":
  110. stop
  111. set action bar of player to "&8» &7Defusing bomb in &e2 &7seconds."
  112. wait 1 second
  113. if {Defusing::%player%} is "False":
  114. stop
  115. set action bar of player to "&8» &7Defusing bomb in &e1 &7second."
  116. wait 1 second
  117. if {Defusin::.%player%} is "False":
  118. stop
  119. broadcast "&8» &7The bomb has been defused."
  120. set {Defuse.Defused} to "1"
  121. set event-block to air
  122. set {Defused::%player%} to "True"
  123. set {Defusing::%player%} to "False"
  124. make console execute "reset"
  125.  
  126. on any movement:
  127. if {Defusing::%player%} is "True":
  128. remove all shears from player's inventory
  129. add 1 shears named "&fDefuser" to player's inventory
  130. set action bar of player to "&8» &cBomb defusing has been canceled, do not move!"
  131. set {Defusing::%player%} to "False"
  132. if {Defusing::%player%} is "True":
  133. remove all shears from player's inventory
  134. add 1 shears named "&fDefuser" to player's inventory
  135. set action bar of player to "&8» &cBomb defusing has been canceled, do not move!"
  136. set {Defusing::%player%} to "False"
  137.  
  138. every second in world "Maps":
  139. if {Defuse.Complete} is "True":
  140. broadcast "&8» &eCounter-Terrorists &7have won the round"
  141. add 1 to {CTRoundsWon}
  142. set {Defuse.Complete} to "False"
  143. stop
  144.  
  145. if {Exploded.Complete} is "True":
  146. broadcast "&8» &eTerrorists &7have won the round"
  147. add 1 to {TRoundsWon}
  148. set {Exploded.Complete} to "False"
  149. stop
  150.  
  151. if {CTRoundsWon} = 8:
  152. broadcast "&8» &eCounter-Terrorists &7have won the game"
  153. set {CTRoundsWon} to 0
  154. make console execute "spawn @a"
  155. stop
  156.  
  157. if {TRoundsWon} = 8:
  158. broadcast "&8» &eTerrorists &7have won the game"
  159. set {TRoundsWon} to 0
  160. make console execute "spawn @a"
  161. stop
Add Comment
Please, Sign In to add comment