tsutitire2

Untitled

May 22nd, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. Variables:
  2. {T.begin} = 0
  3. {T.plcnt} = 0
  4. {T.%player%.al1} = 0
  5. {T.sec} = 0
  6. {R.1} = 0
  7. {R.2} = 0
  8. {R.3} = 0
  9. {B.1} = 0
  10. {B.2} = 0
  11. {B.3} = 0
  12. {B.sp} = 0
  13. {R.sp} = 0
  14. {R.pt} = 0
  15. {B.pt} = 0
  16. command /team <text>:
  17. trigger:
  18. #BEGIN
  19. if arg 1 is "begin":
  20. if {T.begin} is not 0:
  21. message "&c既に募集開始しています/始まっています"
  22. if {T.begin} = 0:
  23. set {T.begin} to 1
  24. broadcast "&a&l3V3PVP&r&b&lが始まります! &c&l/team join&r &b&lで参加できます!"
  25. #JOIN
  26. if arg 1 is "join":
  27. if {T.begin} is 0:
  28. message "&c募集が始まっていません! /team beginで募集開始できます"
  29. if {T.begin} is 1:
  30. if {T.%player%.al1} is 1:
  31. message "&c既に参加しています!"
  32. if {T.%player%.al1} is 0:
  33. set {T.plcnt} to {T.plcnt} + 1
  34. if {T.plcnt} is 1:
  35. set {R.1} to player
  36. set player's tablist name to "&c%player's tablist name%"
  37. if {T.plcnt} is 2:
  38. set {R.2} to player
  39. set player's tablist name to "&c%player's tablist name%"
  40. if {T.plcnt} is 3:
  41. set {R.3} to player
  42. set player's tablist name to "&c%player's tablist name%"
  43. if {T.plcnt} is 4:
  44. set {B.1} to player
  45. set player's tablist name to "&b%player's tablist name%"
  46. if {T.plcnt} is 5:
  47. set {B.2} to player
  48. set player's tablist name to "&b%player's tablist name%"
  49. if {T.plcnt} is 6:
  50. set {B.3} to player
  51. set player's tablist name to "&b%player's tablist name%"
  52. broadcast "&a&l&n試合が始まります!!少しお待ちください"
  53. teleport {R.1} to {R.sp}
  54. teleport {R.2} to {R.sp}
  55. teleport {R.3} to {R.sp}
  56. teleport {B.1} to {B.sp}
  57. teleport {B.2} to {B.sp}
  58. teleport {B.3} to {B.sp}
  59. wait 3 seconds
  60. broadcast "START!!!!"
  61. set {T.begin} to 2
  62. set {T.%player%.al1} to 1
  63.  
  64. command /spset <int>:
  65. trigger:
  66. if arg 1 is 1:
  67. set {R.sp} to player's location
  68. if arg 1 is 2:
  69. set {B.sp} to player's location
  70. permission: skript.admin
  71.  
  72. every seconds:
  73. if {T.begin} is 2:
  74. #timer
  75. set {T.sec} to {T.sec} + 1
  76. if {T.sec} is 300:
  77. broadcast "&a&lFINISH!!!!!!"
  78. broadcast "&c&lR:%{R.pt}% &b&lB:%{B.pt}% !!!"
  79. if {R.pt} is more than {B.pt}:
  80. broadcast "&c&lRED TEAM WIN!!!!"
  81. if {B.pt} is more than {R.pt}:
  82. broadcast "&b&lBLUE TEAM WIN!!!!"
  83. set {T.begin} to 0
  84. set {T.plcnt} to 0
  85. set {T.%{R.1}%.al1} to 0
  86. set {T.%{R.2}%.al1} to 0
  87. set {T.%{R.3}%.al1} to 0
  88. set {T.%{B.1}%.al1} to 0
  89. set {T.%{B.2}%.al1} to 0
  90. set {T.%{B.3}%.al1} to 0
  91. set {T.sec} to 0
  92. set {R.1} to 0
  93. set {R.2} to 0
  94. set {R.3} to 0
  95. set {B.1} to 0
  96. set {B.2} to 0
  97. set {B.3} to 0
  98. set {R.pt} to 0
  99. set {B.pt} to 0
  100. #respawning,and point counting
  101. On death:
  102. while victim is not alive:
  103. wait 1 seconds
  104. if {T.begin} is 2:
  105. if {B.1} or {B.2} or {B.3} is attacker:
  106. if {R.1} is victim:
  107. teleport victim to {R.sp}
  108. set {B.pt} to {B.pt} + 1
  109. execute console command "/effect %{R.1}% resistance 5 255"
  110. if {R.2} is victim:
  111. teleport victim to {R.sp}
  112. set {B.pt} to {B.pt} + 1
  113. execute console command "/effect %{R.2}% resistance 5 255"
  114. if {R.3} is victim:
  115. teleport victim to {R.sp}
  116. set {B.pt} to {B.pt} + 1
  117. execute console command "/effect %{R.3}% resistance 5 255"
  118. if {R.1} or {R.2} or {R.3} is attacker:
  119. if {B.1} is victim:
  120. teleport victim to {B.sp}
  121. execute console command "/effect %{B.1}% resistance 5 255"
  122. set {R.pt} to {R.pt} + 1
  123. if {B.2} is victim:
  124. teleport victim to {B.sp}
  125. set {R.pt} to {R.pt} + 1
  126. execute console command "/effect %{B.2}% resistance 5 255"
  127. if {B.3} is victim:
  128. teleport victim to {B.sp}
  129. execute console command "/effect %{B.3}% resistance 5 255"
  130. set {R.pt} to {R.pt} + 1
  131. On damage:
  132. if {T.begin} is 2:
  133. if {R.1} or {R.2} or {R.3} is attacker:
  134. if {R.1} or {R.2} or {R.3} is victim:
  135. cancel event
  136. if {B.1} or {B.2} or {B.3} is attacker:
  137. if {B.1} or {B.2} or {B.3} is victim:
  138. cancel event
  139. command /resetteam:
  140. trigger:
  141. set {T.begin} to 0
  142. set {T.plcnt} to 0
  143. set {T.%{R.1}%.al1} to 0
  144. set {T.%{R.2}%.al1} to 0
  145. set {T.%{R.3}%.al1} to 0
  146. set {T.%{B.1}%.al1} to 0
  147. set {T.%{B.2}%.al1} to 0
  148. set {T.%{B.3}%.al1} to 0
  149. set {T.sec} to 0
  150. set {R.1} to 0
  151. set {R.2} to 0
  152. set {R.3} to 0
  153. set {B.1} to 0
  154. set {B.2} to 0
  155. set {B.3} to 0
  156. set {R.pt} to 0
  157. set {B.pt} to 0
  158. command /resetteamp <player>:
  159. permission: skript.admin
  160. trigger:
  161. set {T.%arg 1%.al1} to 0
  162. command /member:
  163. trigger:
  164. message "&c%{R.1}%%{R.2}%%{R.3}%&b%{B.1}%%{B.2}%%{B.3}%"
Add Comment
Please, Sign In to add comment