Advertisement
Guest1221

Untitled

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