Advertisement
miyasoku

Untitled

Jun 22nd, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. command /teampvp [<text>] [<text>] [<player>] [<text>]:
  2. trigger:
  3. if arg-1 is not set:
  4. send "&9-------------------------------------"
  5. send "&a使用法: &e/teampvp <設定> <数値/設定>"
  6. send "&9-------------------------------------"
  7. if arg-1 is set:
  8. if arg-2 is not set:
  9. send "&9-------------------------------------"
  10. send "&a使用法: &e/teampvp <設定> <数値/設定>"
  11. send "&9-------------------------------------"
  12. if arg-1 is "join":
  13. if arg-2 is not set:
  14. send "&9-------------------------------------------"
  15. send "&a使用法: &e/teampvp join <RED/BLUE> <player>"
  16. send "&9-------------------------------------------"
  17. if arg-2 is "BLUE":
  18. if arg-3 is not set:
  19. send "&aプレイヤー名を記入してください。"
  20. if arg-3 is set:
  21. add arg-3 to {blue::*}
  22. set {join.%arg-3%} to true
  23. send "&9青 &aチームに参加しました!"
  24. broadcast "&6[&4Broadcast&6] &a%arg-3%さんが、&9青&aチームに加入しました!"
  25. execute console command "/nte player %arg-3% suffix &f &9[BLUE]"
  26. execute player command "/spawn"
  27. if arg-2 is "RED":
  28. if arg-3 is not set:
  29. send "&aプレイヤー名を記入してください。"
  30. if arg-3 is set:
  31. add arg-3 to {red::*}
  32. set {join.%arg-3%} to true
  33. send "&c赤 &aチームに参加しました!"
  34. broadcast "&6[&4Broadcast&6] &a%arg-3%さんが、&c赤&aチームに加入しました!"
  35. execute console command "/nte player %arg-3% suffix &f &c[RED]"
  36. execute player command "/spawn"
  37. if arg-2 is "LEAVE":
  38. if arg-3 is not set:
  39. send "&aプレイヤー名を記入してください。"
  40. if arg-3 is set:
  41. remove arg-3 from {red::*}
  42. remove arg-3 from {blue::*}
  43. set {join.%arg-3%} to false
  44. send "&aチームから抜けました。" to the arg-3
  45. execute console command "/nte player %arg-3% suffix &f"
  46. if arg-1 is "spawn":
  47. if player doesn't have permission "skript.admin":
  48. 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."
  49. else:
  50. if arg-2 is not set:
  51. send "&9-----------------------------------"
  52. send "&a使用法: &e/teampvp spawn <RED/BLUE>"
  53. send "&9-----------------------------------"
  54. if arg-2 is "RED":
  55. set {spawnred} to player's location
  56. send "&c赤 &aチームのスポーンを設定しました。"
  57. if arg-2 is "BLUE":
  58. set {spawnblue} to player's location
  59. send "&9青 &aチームのスポーンを設定しました。"
  60.  
  61. command /join [<player>]:
  62. trigger:
  63. if arg-1 is not set:
  64. if player is {red::*}:
  65. teleport the arg-1 to location (435, 64, -482)
  66. if player is {blue::*}:
  67. teleport the player to location (557, 64, -631)
  68. if arg-1 is set:
  69. if arg-1 is {red::*}:
  70. teleport the arg-1 to location (435, 64, -482)
  71. if arg-1 is {blue::*}:
  72. teleport the arg-1 to location (557, 64, -631)
  73.  
  74. on damage:
  75. if victim is {red::*}:
  76. if attacker is {red::*}:
  77. send "&c仲間には攻撃できません。"
  78. cancel event
  79. if victim is {blue::*}:
  80. if attacker is {blue::*}:
  81. send "&c仲間には攻撃できません。"
  82. cancel event
  83.  
  84. on first join:
  85. set {join.%player%} to false
  86. teleport player to {firstspawn}
  87. send action bar "&6&l銃撃戦鯖&7へようこそ! まずチームを決めてください。" to player
  88.  
  89. command /firstspawn:
  90. permission: skript.admin
  91. trigger:
  92. set {firstspawn} to player's location
  93. send "&a最初のスポーン地点を設定しました。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement