Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {Defusing::%player%} to "False"
- set {Defused::%player%} to "False"
- command /reset:
- permission: reset.admin
- trigger:
- set {Explode.Exploded} to "False"
- set {Defuse.Defused} to "False"
- set {Defusing::%player%} to "False"
- set {Defused::%player%} to "False"
- set action bar of player to "&8» &7Reset-all Complete."
- command /resetrounds:
- permission: reset.admin
- trigger:
- set {CTRoundsWon} to 0
- set {TRoundsWon} to 0
- set action bar of player to "&8» &7Reset-Rounds Complete."
- on place of a daylight sensor:
- set action bar of player to "&8» &7Bomb Planting in &e5 &7Seconds."
- wait 1 second
- set action bar of player to "&8» &7Bomb Planting in &e4 &7Seconds."
- wait 1 second
- set action bar of player to "&8» &7Bomb Planting in &e3 &7Seconds."
- wait 1 second
- set action bar of player to "&8» &7Bomb Planting in &e2 &7Seconds."
- wait 1 second
- set action bar of player to "&8» &7Bomb Planting in &e1 &7Seconds."
- wait 1 second
- broadcast "&8» &7The bomb has been planted!"
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7Bomb exploding in &e30 &7seconds."
- wait 5 seconds
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7Bomb exploding in &e25 &7seconds."
- wait 5 seconds
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7Bomb exploding in &e20 &7seconds."
- wait 5 seconds
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7Bomb exploding in &e15 &7seconds."
- wait 5 seconds
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7Bomb exploding in &e10 &7seconds."
- wait 5 seconds
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7Bomb exploding in &e5 &7seconds."
- wait 2 second
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7Bomb exploding in &e3 &7seconds."
- wait 1 second
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7Bomb exploding in &e2 &7seconds."
- wait 1 second
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7Bomb exploding in &e1 &7seconds."
- wait 1 second
- if {Defused::%player%} is "True":
- stop
- broadcast "&8» &7The bomb has exploded"
- set {Explode.Exploded} to "True"
- set event-block to air
- show large explosion at the event-block to the player
- show large explosion at the event-block to the player
- make console execute "reset"
- on rightclick on daylight sensor with shears:
- if player is holding shears named "&fDefuser":
- set {Defused::%player%} to "False"
- set {Defusing::%player%} to "True"
- if {Defusing::%player%} is "True":
- if {Defusing::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e8 &7seconds."
- wait 1 second
- if {Defusing::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e7 &7seconds."
- wait 1 second
- if {Defusing::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e6 &7seconds."
- wait 1 second
- if {Defusing::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e5 &7seconds."
- wait 1 second
- if {Defusing::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e4 &7seconds."
- wait 1 second
- if {Defusing::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e3 &7seconds."
- wait 1 second
- if {Defusing::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e2 &7seconds."
- wait 1 second
- if {Defusing::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e1 &7second."
- wait 1 second
- if {Defusin::.%player%} is "False":
- stop
- broadcast "&8» &7The bomb has been defused."
- set {Defuse.Defused} to "1"
- set event-block to air
- set {Defused::%player%} to "True"
- set {Defusing::%player%} to "False"
- make console execute "reset"
- on any movement:
- if {Defusing::%player%} is "True":
- remove all shears from player's inventory
- add 1 shears named "&fDefuser" to player's inventory
- set action bar of player to "&8» &cBomb defusing has been canceled, do not move!"
- set {Defusing::%player%} to "False"
- if {Defusing::%player%} is "True":
- remove all shears from player's inventory
- add 1 shears named "&fDefuser" to player's inventory
- set action bar of player to "&8» &cBomb defusing has been canceled, do not move!"
- set {Defusing::%player%} to "False"
- every second in world "Maps":
- if {Defuse.Complete} is "True":
- broadcast "&8» &eCounter-Terrorists &7have won the round"
- add 1 to {CTRoundsWon}
- set {Defuse.Complete} to "False"
- stop
- if {Exploded.Complete} is "True":
- broadcast "&8» &eTerrorists &7have won the round"
- add 1 to {TRoundsWon}
- set {Exploded.Complete} to "False"
- stop
- if {CTRoundsWon} = 8:
- broadcast "&8» &eCounter-Terrorists &7have won the game"
- set {CTRoundsWon} to 0
- make console execute "spawn @a"
- stop
- if {TRoundsWon} = 8:
- broadcast "&8» &eTerrorists &7have won the game"
- set {TRoundsWon} to 0
- make console execute "spawn @a"
- stop
Add Comment
Please, Sign In to add comment