SHOW:
|
|
- or go back to the newest paste.
| 1 | #KillerCaptains | |
| 2 | #By Winter | |
| 3 | #There is a few things to set up while doing this, please contact me on skype @ sketchypeanut if you need any help! | |
| 4 | #Setup Tutorial | |
| 5 | ||
| 6 | options: | |
| 7 | P: &8[&6KillerCaptains&8]&c | |
| 8 | Op: jdawgiscute.admin | |
| 9 | PM: &4You don't have the required permission to use this command. | |
| 10 | ||
| 11 | command /resetkillercap: | |
| 12 | permission: {@Op}
| |
| 13 | permission message: {@PM}
| |
| 14 | trigger: | |
| 15 | delete {slayees::*}
| |
| 16 | loop all players: | |
| 17 | add loop-player to {slayees::*}
| |
| 18 | loop all players: | |
| 19 | set {killercap.%loop-player%.role} to "slayee"
| |
| 20 | broadcast "{@P} reset!"
| |
| 21 | stop | |
| 22 | ||
| 23 | command /killcap <integer> <player>: | |
| 24 | permission: {@Op}
| |
| 25 | permission message: {@PM}
| |
| 26 | trigger: | |
| 27 | set {killercap.%player%.role} to "captain"
| |
| 28 | set {_killercaptain} to arg 2
| |
| 29 | remove {_killercaptain} from {slayees::*}
| |
| 30 | add arg 2 to {slayers::*}
| |
| 31 | execute console command "/warp killercaptain%arg 1% %arg 2%" | |
| 32 | broadcast "{@P} %arg 2% is now Captain of Team %arg 1%"
| |
| 33 | set {teambox.%arg 2%} to the player's location
| |
| 34 | set {teamnumber.%player%} to arg 1
| |
| 35 | ||
| 36 | command /killcapgo: | |
| 37 | permission: {@Op}
| |
| 38 | permission message: {@PM}
| |
| 39 | trigger: | |
| 40 | set {slay.inprogress} to true
| |
| 41 | loop {slayees::*}:
| |
| 42 | execute console command "warp slayeesspawn %loop-value%" | |
| 43 | loop {slayers::*}:
| |
| 44 | execute console command "warp slayersspawn %loop-value%" | |
| 45 | broadcast "{@P} will start in 10 seconds! Get ready to kill! (Or run!)"
| |
| 46 | wait 5 seconds | |
| 47 | command sender command "/freeze" | |
| 48 | command "/playsoundkc note.harp" | |
| 49 | broadcast "{@P} 5..."
| |
| 50 | broadcast "{@P} 4..."
| |
| 51 | broadcast "{@P} 3..."
| |
| 52 | command sender command "killcapunfreeze" | |
| 53 | command sender command "freeze" | |
| 54 | broadcast "{@P} 2..."
| |
| 55 | broadcast "{@P} 1..."
| |
| 56 | broadcast "{@P} GO! Slay, slay, slay!"
| |
| 57 | ||
| 58 | command /killcapunfreeze: | |
| 59 | permission: {@Op}
| |
| 60 | permission message: {@PM}
| |
| 61 | trigger: | |
| 62 | loop all players: | |
| 63 | command sender command "effect clear %loop-player%" | |
| 64 | ||
| 65 | on death of player: | |
| 66 | if {captain.%victim%.role} is "slayee":
| |
| 67 | - | teleport victim to {teambox.%attacker%}
|
| 67 | + | if {captain.%attacker%.role} is "slayer":
|
| 68 | - | message "{@P} You were killed by %attacker%! You have joined Team %{teamnumber.%attacker%}%" |
| 68 | + | teleport victim to {teambox.%attacker%}
|
| 69 | message "{@P} You were killed by %attacker%! You have joined Team %{teamnumber.%attacker%}%" to the victim
| |
| 70 | ||
| 71 | command /playsoundkc <text>: | |
| 72 | permission: {@Op}
| |
| 73 | permission message: {@PM}
| |
| 74 | trigger: | |
| 75 | loop all players: | |
| 76 | execute console command "/playsound %arg 1% %loop-player%" |