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:
- block is a sign
- if line 1 of clicked block is "[System]":
- if line 2 of clicked block is "2v2Duel":
- if line 3 of clicked block 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