Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {terminator} = false
- {terminatorkills} = 0
- command /terminator <text>:
- description: enables or disables terminator skript
- permission:skript.op
- trigger:
- if arg 1 is "enable":
- {terminator} is false:
- set {terminator} to true
- message "Terminator has been enabled."
- execute console command "/scoreboard teams add runners UHC_TERMINATOR_RUNNERS"
- execute console command "/scoreboard teams option runners friendlyfire false"
- wait 15 minutes
- set {_terminator} to a random player out of all players
- broadcast "%{_terminator}% is the new TERMINATOR!"
- execute console command "/scoreboard teams join @a runners"
- stop
- {terminator} is true:
- message "Terminator is already enabled."
- stop
- if arg 1 is "disable":
- {terminator} is true:
- set {terminator} to false
- message "Terminator has been disabled."
- stop
- {terminator} is false:
- message "Terminator has already been disabled."
- stop
- if arg 1 is "toggle":
- {terminator} is false:
- set {terminator} to true
- message "Terminator has been enabled"
- execute console command "/scoreboard teams add runners UHC_TERMINATOR_RUNNERS"
- execute console command "/scoreboard teams option runners friendlyfire false"
- wait 15 minutes
- set {_terminator} to a random player out of all players
- broadcast "%{_terminator}% is the new TERMINATOR!"
- execute console command "/scoreboard teams join @a runners"
- stop
- {terminator} is true:
- set {terminator} to false
- message "Terminator has been disabled."
- stop
- if arg 1 is "help":
- message "Use /terminator <enable:disable:toggle:help>"
- stop
- arg 1 is not set:
- message "Use /terminator <enable:disable:toggle:help>"
- on death of player:
- if {terminator} is true:
- if attacker is {_terminator}:
- add 1 to {terminatorkills}
- every 20 minutes:
- {terminator} is true:
- if {terminatorkills} = 0:
- broadcast "%{_terminator}% has failed!"
- execute console command "/clear {_terminator}"
- kill {_terminator}
- execute console command "/scoreboard teams leave @a"
- set {terminatorkills} to 0
- set {_terminator} to a random player out of all players
- broadcast "%{_terminator}% is the new TERMINATOR!"
- execute console command "/scoreboard teams join @a runners"
- stop
- else:
- broadcast "%{_terminator}% has passed"
- execute console command "/scoreboard teams leave @a"
- set {_terminator} to a random player out of all players
- broadcast "%{_terminator}% is the new TERMINATOR!"
- execute console command "/scoreboard teams join @a runners"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement