tsutitire2

Untitled

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