Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- aliasess2v2sign: [gun2v2]
- prefix: &e[ &cGunPvP 2v2 &e]
- perm: skript.admin
- on rightclick on a sign:
- if line 1 is "{@aliasess2v2sign}":
- set line 1 of block to "[System]"
- set line 2 of block to "2v2Duel"
- set line 3 of block to "Join"
- on rightclick on a sign:
- if line 1 is "[System]":
- if line 2 is "2v2Duel":
- if line 3 is "Join":
- loop {_gun2v2.player::*}:
- if loop-value is less than or equal to 4:
- set {_gun2v2.player::%player%} to player
- send "{@prefix} &aDuelに参加しました"
- if loop-value is equal to 0:
- set {_gun2v2.red::%player%} to player
- if loop-value is equal to 1:
- set {_gun2v2.red::%player%} to player
- if loop-value is equal to 2:
- set {_gun2v2.blue::%player%} to player
- if loop-value is equal to 3:
- set {_gun2v2.blue::%player%} to player
- if loop-value is equal to 4:
- set {_gun2v2.battle} to true
- send "{@prefix} &a30秒後に試合を開始します" to {_gun2v2.player::*}
- wait 20 second
- if {_gun2v2.battle} is true:
- send "{@prefix} 試合開始10秒前" to {_gun2v2.player::*}
- wait 5 second
- if {_gun2v2.battle} is true:
- send "{@prefix} 試合開始5秒前" to {_gun2v2.player::*}
- wait 2 second
- if {_gun2v2.battle} is true:
- send "{@prefix} 試合開始3秒前" to {_gun2v2.player::*}
- wait a second
- if {_gun2v2.battle} is true:
- send "{@prefix} 試合開始2秒前" to {_gun2v2.player::*}
- wait a second
- if {_gun2v2.battle} is true:
- send "{@prefix} 試合開始1秒前" to {_gun2v2.player::*}
- wait a second
- if {_gun2v2.battle} is true:
- send "{@prefix} 試合開始" to {_gun2v2.player::*}
- teleport {_gun2v2.red::*} to the location {_gun2v2.spawn.red}
- teleport {_gun2v2.blue::*} to the location {_gun2v2.spawn.blue}
- wait 300 second
- if {_gun2v2.player::*} is set:
- send "{@prefix} 試合終了 引き分けです" to {_gun2v2.player::*}
- delete {_gun2v2.red::*}
- delete {_gun2v2.blue::*}
- delete {_gun2v2.player::*}
- else:
- send "{@prefix} &c参加人数に達しています"
- on quit:
- if player is {_gun2v2.player::*}:
- delete {_gun2v2.player::*}
- delete {_gun2v2.red::*}
- delete {_gun2v2.blue::*}
- set {_gun2v2.battle} to false
- loop {_gun2v2.player::*}:
- send "{@prefix} &c参加しているプレイヤーが退出したため試合開始を中止します" to {_gun2v2.player::*}
- on damage:
- if {_gun2v2.red::*} is attacker and victim:
- cancel event
- if {_gun2v2.blue::*} is attacker and victim:
- cancel event
- on death:
- if player is {_gun2v2.red::*}:
- wait a tick
- force respawn player
- wait a tick
- remove {_gun2v2.red::*} from player
- loop {_gun2v2.red::*}:
- if loop-value is equal to 0:
- loop {_gun2v2.player::*}:
- send "{@prefix} &b青チームの勝利!" to {_gun2v2.player::*}
- add 5 emerald to {_gun2v2.blue::*}
- delete {_gun2v2.red::*}
- delete {_gun2v2.blue::*}
- delete {_gun2v2.player::*}
- if player is {_gun2v2.blue::*}:
- force respawn player
- wait a tick
- remove {_gun2v2.blue::*} from player
- loop {_gun2v2.blue::*}:
- if loop-value is equal to 0:
- loop {_gun2v2.player::*}:
- send "{@prefix} &c赤チームの勝利!" to {_gun2v2.player::*}
- add 5 emerald to {_gun2v2.red::*}
- delete {_gun2v2.red::*}
- delete {_gun2v2.blue::*}
- delete {_gun2v2.player::*}
- command /gunduel [<text>] [<text>] [<text>]:
- permission: {@perm}
- aliases: /gd
- trigger:
- if arg-1 is "set":
- if arg-2 is "spawn":
- if arg-3 is "red":
- set {_gun2v2.spawn.red} to location of player
- if arg-3 is "blue":
- set {_gun2v2.spawn.blue} to location of player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement