Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- {T.begin} = 0
- {T.plcnt} = 0
- {T.%player%.al1} = 0
- {T.sec} = 0
- {R.1} = 0
- {R.2} = 0
- {R.3} = 0
- {B.1} = 0
- {B.2} = 0
- {B.3} = 0
- {B.sp} = 0
- {R.sp} = 0
- {R.pt} = 0
- {B.pt} = 0
- command /team <text>:
- trigger:
- #BEGIN
- if arg 1 is "begin":
- if {T.begin} is not 0:
- message "&c既に募集開始しています/始まっています"
- if {T.begin} = 0:
- set {T.begin} to 1
- broadcast "&a&l3V3PVP&r&b&lが始まります! &c&l/team join&r &b&lで参加できます!"
- #JOIN
- if arg 1 is "join":
- if {T.begin} is 0:
- message "&c募集が始まっていません! /team beginで募集開始できます"
- if {T.begin} is 1:
- if {T.%player%.al1} is 1:
- message "&c既に参加しています!"
- if {T.%player%.al1} is 0:
- set {T.plcnt} to {T.plcnt} + 1
- if {T.plcnt} is 1:
- set {R.1} to player
- set player's tablist name to "&c%player's tablist name%"
- if {T.plcnt} is 2:
- set {R.2} to player
- set player's tablist name to "&c%player's tablist name%"
- if {T.plcnt} is 3:
- set {R.3} to player
- set player's tablist name to "&c%player's tablist name%"
- if {T.plcnt} is 4:
- set {B.1} to player
- set player's tablist name to "&b%player's tablist name%"
- if {T.plcnt} is 5:
- set {B.2} to player
- set player's tablist name to "&b%player's tablist name%"
- if {T.plcnt} is 6:
- set {B.3} to player
- set player's tablist name to "&b%player's tablist name%"
- broadcast "&a&l&n試合が始まります!!少しお待ちください"
- teleport {R.1} to {R.sp}
- teleport {R.2} to {R.sp}
- teleport {R.3} to {R.sp}
- teleport {B.1} to {B.sp}
- teleport {B.2} to {B.sp}
- teleport {B.3} to {B.sp}
- wait 3 seconds
- broadcast "START!!!!"
- set {T.begin} to 2
- set {T.%player%.al1} to 1
- command /spset <int>:
- trigger:
- if arg 1 is 1:
- set {R.sp} to player's location
- if arg 1 is 2:
- set {B.sp} to player's location
- permission: skript.admin
- every seconds:
- if {T.begin} is 2:
- #timer
- set {T.sec} to {T.sec} + 1
- if {T.sec} is 300:
- broadcast "&a&lFINISH!!!!!!"
- broadcast "&c&lR:%{R.pt}% &b&lB:%{B.pt}% !!!"
- if {R.pt} is more than {B.pt}:
- broadcast "&c&lRED TEAM WIN!!!!"
- if {B.pt} is more than {R.pt}:
- broadcast "&b&lBLUE TEAM WIN!!!!"
- set {T.begin} to 0
- set {T.plcnt} to 0
- set {T.%{R.1}%.al1} to 0
- set {T.%{R.2}%.al1} to 0
- set {T.%{R.3}%.al1} to 0
- set {T.%{B.1}%.al1} to 0
- set {T.%{B.2}%.al1} to 0
- set {T.%{B.3}%.al1} to 0
- set {T.sec} to 0
- set {R.1} to 0
- set {R.2} to 0
- set {R.3} to 0
- set {B.1} to 0
- set {B.2} to 0
- set {B.3} to 0
- set {R.pt} to 0
- set {B.pt} to 0
- #respawning,and point counting
- On death:
- while victim is not alive:
- wait 1 seconds
- if {T.begin} is 2:
- if {B.1} or {B.2} or {B.3} is attacker:
- if {R.1} is victim:
- teleport victim to {R.sp}
- set {B.pt} to {B.pt} + 1
- execute console command "/effect %{R.1}% resistance 5 255"
- if {R.2} is victim:
- teleport victim to {R.sp}
- set {B.pt} to {B.pt} + 1
- execute console command "/effect %{R.2}% resistance 5 255"
- if {R.3} is victim:
- teleport victim to {R.sp}
- set {B.pt} to {B.pt} + 1
- execute console command "/effect %{R.3}% resistance 5 255"
- if {R.1} or {R.2} or {R.3} is attacker:
- if {B.1} is victim:
- teleport victim to {B.sp}
- execute console command "/effect %{B.1}% resistance 5 255"
- set {R.pt} to {R.pt} + 1
- if {B.2} is victim:
- teleport victim to {B.sp}
- set {R.pt} to {R.pt} + 1
- execute console command "/effect %{B.2}% resistance 5 255"
- if {B.3} is victim:
- teleport victim to {B.sp}
- execute console command "/effect %{B.3}% resistance 5 255"
- set {R.pt} to {R.pt} + 1
- On damage:
- if {T.begin} is 2:
- if {R.1} or {R.2} or {R.3} is attacker:
- if {R.1} or {R.2} or {R.3} is victim:
- cancel event
- if {B.1} or {B.2} or {B.3} is attacker:
- if {B.1} or {B.2} or {B.3} is victim:
- cancel event
- command /resetteam:
- trigger:
- set {T.begin} to 0
- set {T.plcnt} to 0
- set {T.%{R.1}%.al1} to 0
- set {T.%{R.2}%.al1} to 0
- set {T.%{R.3}%.al1} to 0
- set {T.%{B.1}%.al1} to 0
- set {T.%{B.2}%.al1} to 0
- set {T.%{B.3}%.al1} to 0
- set {T.sec} to 0
- set {R.1} to 0
- set {R.2} to 0
- set {R.3} to 0
- set {B.1} to 0
- set {B.2} to 0
- set {B.3} to 0
- set {R.pt} to 0
- set {B.pt} to 0
- command /resetteamp <player>:
- permission: skript.admin
- trigger:
- set {T.%arg 1%.al1} to 0
- command /member:
- trigger:
- message "&c%{R.1}%%{R.2}%%{R.3}%&b%{B.1}%%{B.2}%%{B.3}%"
Add Comment
Please, Sign In to add comment