Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- set {queue1} to 0
- delete {queue::*}
- command /resetqueue:
- trigger:
- delete {queue::*}
- set {queue1} to 0
- broadcast "&8» &7Queue was reset by &e%player%"
- command /setloc:
- trigger:
- set {spawn} to location of player
- command /queue [<text="check">]:
- usage: You can either use &c/queue join &for &c/queue leave
- trigger:
- if arg-1 is "check":
- send "&8» &7There are &e%{queue1}%/10 &7players in the queue!" to player
- if arg-1 is "join":
- set {checkqueue} to "True"
- if {queue1} >= 10:
- send "&8» &7The queue is full!" to player
- else if "%{queue::*}%" contains "%player%":
- send "&8» &7You are already in the queue!" to player
- stop
- else:
- add 1 to {queue1}
- add "%player%" to {queue::*}
- set {queue.%player%} to 1
- broadcast "&8» &7There are now &e%{queue1}%/10 &7players in the queue!"
- if executor is console:
- if arg-1 is "start":
- if {queue1} <= 1:
- broadcast "&8» &7Not enough players to start!"
- else:
- broadcast "&8» &7The match is about to start!"
- wait 1 second
- broadcast "&8» &7The match will begin in &e15 &7seconds.."
- wait 10 seconds
- broadcast "&8» &7The match will begin in &e5 &7seconds.."
- wait 1 seconds
- broadcast "&8» &7The match will begin in &e4 &7seconds.."
- wait 1 seconds
- broadcast "&8» &7The match will begin in &e3 &7seconds.."
- wait 1 seconds
- broadcast "&8» &7The match will begin in &e2 &7seconds.."
- wait 1 seconds
- broadcast "&8» &7The match will begin in &e1 &7seconds.."
- wait 1 second
- if {queue1} >= 2:
- broadcast "&8» &7The game has now started"
- loop {queue::*}:
- teleport loop-value parsed as player to {spawn}
- delete {queue::*}
- delete {queue1}
- else:
- broadcast "&8» &7Not enough players to start."
- if arg-1 is "leave":
- if {queue1} <= 0:
- send "&8» &7You are not in the queue."
- stop
- else if {queue.%player%} is 1:
- remove 1 from {queue1}
- send "&8» &7You have left the queue!"
- broadcast "&8» &7There are now &e%{queue1}%/10 &7players in the queue!"
- remove "%player%" from {queue::*}
- else:
- send "&8» &7You are not currently in a queue!"
- command /test:
- trigger:
- send "%{queue::*}%" to player
- send "%{queue1}%" to player
- command /test2:
- trigger:
- add 1 to {queue1}
- broadcast "&8» &7There are now &e%{queue1}%/10 &7players in the queue!"
- on death:
- if {queue.%player%} is 1:
- remove 1 from {queue1}
- set {queue.%player%} to 0
- if {queue1} is 0:
- broadcast "&8» &7The game is now over!"
- broadcast "&cUse &e/queue join &cto join the next queue!"
- on join:
- set {queue.%player%} to 0
- every 1 second:
- if {checkqueue} is "True":
- if {queue1} >= 2:
- make console execute "/queue start"
- set {checkqueue} to "False"
- stop
- command /score:
- trigger:
- send ""
- send "&3Counter-Terrorists Have Won %{CTRoundsWon}% Round(s)"
- send "&cTerrorists Have Won %{TRoundsWon}% Round(s)"
- send ""
- command /resetdefuser:
- permission: reset.admin
- trigger:
- set {DefusingBomb::%player%} to "False"
- set {Defused.Bomb} to "False"
- command /reset:
- permission: reset.admin
- trigger:
- set {Bomb.Explode} to "False"
- set {Bomb.Defuse} to "False"
- set {BombIs.Defused} to "False"
- set {DefusingBomb::%player%} to "False"
- set {Defused.Bomb} 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 {BombIs.Defused} is "True":
- make console execute "/reset"
- stop
- broadcast "&8» &7Bomb exploding in &e30 &7seconds."
- wait 10 seconds
- if {BombIs.Defused} is "True":
- make console execute "/reset"
- stop
- broadcast "&8» &7Bomb exploding in &e20 &7seconds."
- wait 10 seconds
- if {BombIs.Defused} is "True":
- make console execute "/reset"
- stop
- broadcast "&8» &7Bomb exploding in &e10 &7seconds."
- wait 5 seconds
- if {BombIs.Defused} is "True":
- make console execute "/reset"
- stop
- broadcast "&8» &7Bomb exploding in &e5 &7seconds."
- wait 2 second
- if {BombIs.Defused} is "True":
- make console execute "/reset"
- stop
- broadcast "&8» &7Bomb exploding in &e3 &7seconds."
- wait 1 second
- if {BombIs.Defused} is "True":
- make console execute "/reset"
- stop
- broadcast "&8» &7Bomb exploding in &e2 &7seconds."
- wait 1 second
- if {BombIs.Defused} is "True":
- make console execute "/reset"
- stop
- broadcast "&8» &7Bomb exploding in &e1 &7seconds."
- wait 1 second
- if {BombIs.Defused} is "True":
- make console execute "/reset"
- stop
- broadcast "&8» &7The bomb has exploded"
- set {DefusingBomb::%player%} to "False"
- set {Defused.Bomb} to "False"
- set {BombIs.Defused} to "False"
- set {Bomb.Explode} 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
- on rightclick on daylight sensor with shears:
- if player is holding shears named "&fDefuser":
- set {Defused.Bomb} to "False"
- set {DefusingBomb::%player%} to "True"
- if {DefusingBomb::%player%} is "True":
- if {DefusingBomb::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e8 &7seconds."
- wait 1 second
- if {DefusingBomb::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e7 &7seconds."
- wait 1 second
- if {DefusingBomb::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e6 &7seconds."
- wait 1 second
- if {DefusingBomb::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e5 &7seconds."
- wait 1 second
- if {DefusingBomb::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e4 &7seconds."
- wait 1 second
- if {DefusingBomb::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e3 &7seconds."
- wait 1 second
- if {DefusingBomb::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e2 &7seconds."
- wait 1 second
- if {DefusingBomb::%player%} is "False":
- stop
- set action bar of player to "&8» &7Defusing bomb in &e1 &7seconds."
- wait 1 second
- if {DefusingBomb::%player%} is "False":
- stop
- broadcast "&8» &7The bomb has been defused."
- set {Bomb.Defuse} to "True"
- set {BombIs.Defused} to "True"
- set event-block to air
- show red dust at the event-block to the player
- show red dust at the event-block to the player
- show red dust at the event-block to the player
- set {Defused.Bomb} to "False"
- set {DefusingBomb::%player%} to "False"
- on any move:
- if {DefusingBomb::%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 {Defusingbomb::%player%} to "False"
- every second:
- if {Bomb.Defuse} is "True":
- broadcast ""
- broadcast "&8» &eCounter-Terrorists &7have won the round"
- broadcast ""
- add 1 to {CTRoundsWon}
- set {Bomb.Defuse} to "False"
- stop
- if {Bomb.Explode} is "True":
- broadcast ""
- broadcast "&8» &eTerrorists &7have won the round"
- broadcast ""
- add 1 to {TRoundsWon}
- set {Bomb.Explode} to "False"
- stop
- if {CTRoundsWon} = 8:
- broadcast ""
- broadcast "&8» &eCounter-Terrorists &7have won the game"
- broadcast ""
- set {CTRoundsWon} to 0
- set {TRoundsWon} to 0
- make console execute "/spawn @a"
- stop
- if {TRoundsWon} = 8:
- broadcast ""
- broadcast "&8» &eTerrorists &7have won the game"
- broadcast ""
- set {TRoundsWon} to 0
- set {CTRoundsWon} to 0
- make console execute "/spawn @a"
- stop
- command /CTSpawn:
- permission: spawn.admin
- trigger:
- set {CTSpawn} to player's location
- send "&8» &7Counter Terrorist Spawn Set"
- command /TSpawn:
- permission: spawn.admin
- trigger:
- set {TSpawn} to player's location
- send "&8» &7Terrorist Spawn Set"
- command /timer:
- permission: timer.admin
- trigger:
- set {timer} to 300
- if {timer} = 300:
- broadcast ""
- broadcast "&8» &75:00 remaining"
- broadcast ""
- while {timer} > 270:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 270:
- broadcast ""
- broadcast "&8» &74:30 remaining"
- broadcast ""
- while {timer} > 240:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 240:
- broadcast ""
- broadcast "&8» &74:00 remaining"
- broadcast ""
- while {timer} > 210:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 210:
- broadcast ""
- broadcast "&8» &73:30 remaining"
- broadcast ""
- while {timer} > 180:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 180:
- broadcast ""
- broadcast "&8» &73:00 remaining"
- broadcast ""
- while {timer} > 150:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 150:
- broadcast ""
- broadcast "&8» &72:30 remaining"
- broadcast ""
- while {timer} > 120:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 120:
- broadcast ""
- broadcast "&8» &72:00 remaining"
- broadcast ""
- while {timer} > 90:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 90:
- broadcast ""
- broadcast "&8» &71:30 remaining"
- broadcast ""
- while {timer} > 60:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 60:
- broadcast ""
- broadcast "&8» &71:00 remaining"
- broadcast ""
- while {timer} > 30:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 30:
- broadcast ""
- broadcast "&8» &70:30 remaining"
- broadcast ""
- while {timer} > 10:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 10:
- broadcast ""
- broadcast "&8» &70:10 remaining"
- broadcast ""
- while {timer} > 3:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 3:
- broadcast ""
- broadcast "&8» &70:03 remaining"
- broadcast ""
- while {timer} > 2:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 2:
- broadcast ""
- broadcast "&8» &70:02 remaining"
- broadcast ""
- while {timer} > 1:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 1:
- broadcast ""
- broadcast "&8» &70:01 remaining"
- broadcast ""
- while {timer} > 0:
- wait 1 second
- remove 1 from {timer}
- if {timer} = 0:
- broadcast ""
- broadcast "&8» &7Round Over. &eCounter-Terrorists Win!"
- broadcast ""
- command /time:
- permission: timer.access
- trigger:
- if {timer} = 0:
- send "&8» &7There are currently no games running."
- else:
- send "&8» &e%{timer}% &7seconds remaining"
- command /resettimer:
- permission: timer.admin
- trigger:
- set {timer} to 0
Advertisement
Add Comment
Please, Sign In to add comment