Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /teampvp [<text>] [<text>] [<player>] [<text>]:
- trigger:
- if arg-1 is not set:
- send "&9-------------------------------------"
- send "&a使用法: &e/teampvp <設定> <数値/設定>"
- send "&9-------------------------------------"
- if arg-1 is set:
- if arg-2 is not set:
- send "&9-------------------------------------"
- send "&a使用法: &e/teampvp <設定> <数値/設定>"
- send "&9-------------------------------------"
- if arg-1 is "join":
- if arg-2 is not set:
- send "&9-------------------------------------------"
- send "&a使用法: &e/teampvp join <RED/BLUE> <player>"
- send "&9-------------------------------------------"
- if arg-2 is "BLUE":
- if arg-3 is not set:
- send "&aプレイヤー名を記入してください。"
- if arg-3 is set:
- add arg-3 to {blue::*}
- set {join.%arg-3%} to true
- send "&9青 &aチームに参加しました!"
- broadcast "&6[&4Broadcast&6] &a%arg-3%さんが、&9青&aチームに加入しました!"
- execute console command "/nte player %arg-3% suffix &f &9[BLUE]"
- execute player command "/spawn"
- if arg-2 is "RED":
- if arg-3 is not set:
- send "&aプレイヤー名を記入してください。"
- if arg-3 is set:
- add arg-3 to {red::*}
- set {join.%arg-3%} to true
- send "&c赤 &aチームに参加しました!"
- broadcast "&6[&4Broadcast&6] &a%arg-3%さんが、&c赤&aチームに加入しました!"
- execute console command "/nte player %arg-3% suffix &f &c[RED]"
- execute player command "/spawn"
- if arg-2 is "LEAVE":
- if arg-3 is not set:
- send "&aプレイヤー名を記入してください。"
- if arg-3 is set:
- remove arg-3 from {red::*}
- remove arg-3 from {blue::*}
- set {join.%arg-3%} to false
- send "&aチームから抜けました。" to the arg-3
- execute console command "/nte player %arg-3% suffix &f"
- if arg-1 is "spawn":
- if player doesn't have permission "skript.admin":
- send "&cI'm sorry, but you do not have permission to perfrom this command. Please contact the server administrators if you believe that this is in error."
- else:
- if arg-2 is not set:
- send "&9-----------------------------------"
- send "&a使用法: &e/teampvp spawn <RED/BLUE>"
- send "&9-----------------------------------"
- if arg-2 is "RED":
- set {spawnred} to player's location
- send "&c赤 &aチームのスポーンを設定しました。"
- if arg-2 is "BLUE":
- set {spawnblue} to player's location
- send "&9青 &aチームのスポーンを設定しました。"
- command /join [<player>]:
- trigger:
- if arg-1 is not set:
- if player is {red::*}:
- teleport the arg-1 to location (435, 64, -482)
- if player is {blue::*}:
- teleport the player to location (557, 64, -631)
- if arg-1 is set:
- if arg-1 is {red::*}:
- teleport the arg-1 to location (435, 64, -482)
- if arg-1 is {blue::*}:
- teleport the arg-1 to location (557, 64, -631)
- on damage:
- if victim is {red::*}:
- if attacker is {red::*}:
- send "&c仲間には攻撃できません。"
- cancel event
- if victim is {blue::*}:
- if attacker is {blue::*}:
- send "&c仲間には攻撃できません。"
- cancel event
- on first join:
- set {join.%player%} to false
- teleport player to {firstspawn}
- send action bar "&6&l銃撃戦鯖&7へようこそ! まずチームを決めてください。" to player
- command /firstspawn:
- permission: skript.admin
- trigger:
- set {firstspawn} to player's location
- send "&a最初のスポーン地点を設定しました。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement