Advertisement
yukki10

Untitled

May 26th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.74 KB | None | 0 0
  1. command /sanka:
  2. trigger:
  3. if {team.%player%} is 0:
  4. if {redp} is less than {grep}:
  5. set {team.%player%} to 1
  6. set player tab name to " &c%player%"
  7. add 1 to {redp}
  8. send "&c━━━━━━━━━━━━━━━━━━━━━" to player
  9. send "&c⬛ &7You are the Red team &c⬛" to player
  10. send "&c━━━━━━━━━━━━━━━━━━━━━" to player
  11. if {wm} is 1:
  12. teleport player to {rspawn1}
  13. if {wm} is 2:
  14. teleport player to {rspawn2}
  15. if {wm} is 3:
  16. teleport player to {rspawn3}
  17. if {wm} is 4:
  18. teleport player to {rspawn4}
  19. else if {grep} is less than {redp}:
  20. set {team.%player%} to 2
  21. add 1 to {grep}
  22. set player tab name to " &a%player%"
  23. send "&a━━━━━━━━━━━━━━━━━━━━━━━" to player
  24. send "&a⬛ &7You are the Green team &a⬛" to player
  25. send "&a━━━━━━━━━━━━━━━━━━━━━━━" to player
  26. if {wm} is 1:
  27. teleport player to {gspawn1}
  28. if {wm} is 2:
  29. teleport player to {gspawn2}
  30. if {wm} is 3:
  31. teleport player to {gspawn3}
  32. if {wm} is 4:
  33. teleport player to {gspawn4}
  34. else:
  35. set {teamn} to random integer between 1 and 10
  36. if {teamn} is between 1 and 5:
  37. set {team.%player%} to 1
  38. add 1 to {redp}
  39. set player tab name to " &c%player%"
  40. send "&c━━━━━━━━━━━━━━━━━━━━━" to player
  41. send "&c⬛ &7You are the Red team &c⬛" to player
  42. send "&c━━━━━━━━━━━━━━━━━━━━━" to player
  43. if {wm} is 1:
  44. teleport player to {rspawn1}
  45. if {wm} is 2:
  46. teleport player to {rspawn2}
  47. if {wm} is 3:
  48. teleport player to {rspawn3}
  49. if {wm} is 4:
  50. teleport player to {rspawn4}
  51. if {teamn} is between 6 and 10:
  52. set {team.%player%} to 2
  53. add 1 to {grep}
  54. set player tab name to " &a%player%"
  55. send "&a━━━━━━━━━━━━━━━━━━━━━━━" to player
  56. send "&a⬛ &7You are the Green team &a⬛" to player
  57. send "&a━━━━━━━━━━━━━━━━━━━━━━━" to player
  58. if {wm} is 1:
  59. teleport player to {gspawn1}
  60. if {wm} is 2:
  61. teleport player to {gspawn2}
  62. if {wm} is 3:
  63. teleport player to {gspawn3}
  64. if {wm} is 4:
  65. teleport player to {gspawn4}
  66. command /warmap:
  67. permission:admin
  68. trigger:
  69. if {wm} is 0:
  70. set {wmn} to random integer between 1 and 40
  71. if {wmn} is between 1 and 10:
  72. set {wm} to 1
  73. if {wmn} is between 10 and 20:
  74. set {wm} to 2
  75. if {wmn} is between 20 and 30:
  76. set {wm} to 3
  77. if {wmn} is between 30 and 40:
  78. set {wm} to 4
  79.  
  80.  
  81. command /wms <number>:
  82. permission:admin
  83. trigger:
  84. set {wm} to arg-1
  85. command /rwss1:
  86. permission:admin
  87. trigger:
  88. set {rspawn1} to location of player
  89.  
  90. command /gwss1:
  91. permission:admin
  92. trigger:
  93. set {gspawn1} to location of player
  94. command /rwss2:
  95. permission:admin
  96. trigger:
  97. set {rspawn2} to location of player
  98.  
  99. command /gwss2:
  100. permission:admin
  101. trigger:
  102. set {gspawn2} to location of player
  103. command /rwss3:
  104. permission:admin
  105. trigger:
  106. set {rspawn3} to location of player
  107.  
  108. command /gwss3:
  109. permission:admin
  110. trigger:
  111. set {gspawn3} to location of player
  112. command /rwss4:
  113. permission:admin
  114. trigger:
  115. set {rspawn4} to location of player
  116.  
  117. command /gwss4:
  118. permission:admin
  119. trigger:
  120. set {gspawn4} to location of player
  121. command /wcsr:
  122. permission:admin
  123. trigger:
  124. set {wcs} to 0
  125. command /ptr:
  126. permission:admin
  127. trigger:
  128. set {team.%player%} to 0
  129.  
  130.  
  131. command /wcs:
  132. permission:admin
  133. trigger:
  134. if {wcs} is 0:
  135. set {wcs} to 1
  136. set {wsc} to 0
  137. set {gteamsc} to 0
  138. set {rteamsc} to 0
  139. set {redp} to 0
  140. set {grep} to 0
  141. command /lset:
  142. permission:admin
  143. trigger:
  144. set {lobby} to location of player
  145.  
  146. command /wst:
  147. permission:admin
  148. trigger:
  149. if {wcs} is 1:
  150. set {wcs} to 0
  151. set {wsc} to 0
  152. set {gteamsc} to 0
  153. set {rteamsc} to 0
  154. set {redp} to 0
  155. set {grep} to 0
  156. command /gmoney <player> <number>:
  157. permission:admin
  158. trigger:
  159. add arg-2 to {money.%arg-1%}
  160. command /smoney <player> <number>:
  161. permission:admin
  162. trigger:
  163. set {money.%arg-1%} to arg-2
  164.  
  165. command /tmoney <player> <number>:
  166. permission:admin
  167. trigger:
  168. subtract arg-2 from {money.%arg-1%}
  169.  
  170. command /gtmoney <number>:
  171. trigger:
  172. if arg-1 is less than {money.%player%}:
  173. subtract arg-1 from {money.%player%}
  174. give arg-1 of diamond named "&8&l1 Money" to player
  175.  
  176. else:
  177. send "金が足りません!!" to player
  178.  
  179. command /tgmoney <number>:
  180. trigger:
  181. loop all items in player's inventory:
  182. if name of loop-item contains "&8&l1 Money":
  183. if loop-item is equal to diamond:
  184. if number of diamond in the player's inventory is less than arg-1:
  185. stop
  186. remove arg-1 of loop-item from player
  187. add arg-1 to {money.%player%}
  188.  
  189.  
  190.  
  191.  
  192.  
  193. command /money:
  194. trigger:
  195. send "&e⛃&7Money you have &8%{money.%player%}%&7 Money" to player
  196.  
  197. command /gemoney:
  198. trigger:
  199. if 1 is less than {money.%player%}:
  200. give player diamond named "&8&l1 Money"
  201. subtract 1 from {money.%player%}
  202. else:
  203. send "金が足りません!!" to player
  204.  
  205. on first join:
  206. set {team.%player%} to 0
  207. set {money.%player%} to 50
  208.  
  209.  
  210. every 1 seconds:
  211. if {wcs} is 1:
  212. if {wsc} is 300:
  213. set {wcs} to 0
  214. if {gteamsc} is less than {rteamsc}:
  215. loop all players:
  216. send loop-player title "&c&lRed Team &6&lWIN!" for 5 seconds
  217. if {team.%loop-player%} is 1:
  218. teleport loop-player to {lobby}
  219. set loop-player tab name to " &f%loop-player%"
  220. set {team.%loop-player%} to 0
  221. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  222. set {pksc.%loop-player%} to 0
  223.  
  224. if {team.%loop-player%} is 2:
  225. teleport loop-player to {lobby}
  226. set loop-player tab name to " &f%loop-player%"
  227. set {team.%loop-player%} to 0
  228. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  229. set {pksc.%loop-player%} to 0
  230. command "/wcs"
  231.  
  232. else if {rteamsc} is less than {gteamsc}:
  233. loop all players:
  234. send loop-player title "&a&lGreen Team &6&lWIN!" for 5 seconds
  235. if {team.%loop-player%} is 1:
  236. teleport loop-player to {lobby}
  237. set loop-player tab name to " &f%loop-player%"
  238. set {team.%loop-player%} to 0
  239. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  240. set {pksc.%loop-player%} to 0
  241. if {team.%loop-player%} is 2:
  242. teleport loop-player to {lobby}
  243. set loop-player tab name to " &f%loop-player%"
  244. set {team.%loop-player%} to 0
  245. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  246. set {pksc.%loop-player%} to 0
  247. command "/wcs"
  248. else:
  249. loop all players:
  250.  
  251. send loop-player title "&6&lBoth Teams &f&lDraw" for 5 seconds
  252. if {team.%loop-player%} is 1:
  253. teleport loop-player to {lobby}
  254. set loop-player tab name to " &f%loop-player%"
  255. set {team.%loop-player%} to 0
  256. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  257. set {pksc.%loop-player%} to 0
  258. if {team.%loop-player%} is 2:
  259. teleport loop-player to {lobby}
  260. set loop-player tab name to " &f%loop-player%"
  261. set {team.%loop-player%} to 0
  262. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  263. set {pksc.%loop-player%} to 0
  264. command "/wcs"
  265. add 1 to {wsc}
  266. loop all players:
  267. send action bar from "&a&l⬛ &7&l%{gteamsc}% ━ %{rteamsc}% &c&l⬛ &6&l残り時間 %(300-{wsc})%" to loop-players
  268.  
  269.  
  270. on damage:
  271. attacker is a player
  272. victim is a player
  273. if {team.%attacker%} is 1:
  274. if {team.%victim%} is 1:
  275. cancel the event
  276.  
  277. if {team.%attacker%} is 2:
  278. if {team.%victim%} is 2:
  279. cancel the event
  280.  
  281. on crackshot damage:
  282. shooter is a player
  283. event-entity is a player
  284. if {team.%shooter%} is 1:
  285. if {team.%event-entity%} is 1:
  286. cancel the event
  287. if {team.%shooter%} is 2:
  288. if {team.%event-entity%} is 2:
  289. cancel the event
  290.  
  291.  
  292. on death of player:
  293. if {team.%victim%} is 1:
  294. add 1 to {gteamsc}
  295. add 1 to {pksc.%victim%}
  296. if {team.%victim%} is 2:
  297. add 1 to {rteamsc}
  298. add 1 to {pksc.%victim%}
  299.  
  300.  
  301. on respawn:
  302. if {team.%player%} is 1:
  303. if {wm} is 1:
  304. teleport player to {rspawn1}
  305. if {wm} is 2:
  306. teleport player to {rspawn2}
  307. if {wm} is 3:
  308. teleport player to {rspawn3}
  309. if {wm} is 4:
  310. teleport player to {rspawn4}
  311. if {team.%player%} is 2:
  312. if {wm} is 1:
  313. teleport player to {gspawn1}
  314. if {wm} is 2:
  315. teleport player to {gspawn2}
  316. if {wm} is 3:
  317. teleport player to {gspawn3}
  318. if {wm} is 4:
  319. teleport player to {gspawn4}
  320. on log out:
  321. set {team.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement