Guest User

;c

a guest
Jan 27th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.91 KB | None | 0 0
  1. on load:
  2. send "[TheWalls] Loading TheWalls v0.9" to console
  3. on unload:
  4. send "[TheWalls] Disabling TheWalls v0.9" to console
  5. variables:
  6. {team1::*} = 0
  7. {team2::*} = 0
  8. {team3::*} = 0
  9. {team4::*} = 0
  10. options:
  11. # Logo Skryptu
  12. logo: &7[&cWalls&7]
  13. # Glowna Komenda:
  14. maincommand: walls
  15.  
  16. command /team [<text>]:
  17. trigger:
  18. if arg 1 is not "1" or "2" or "3" or "4":
  19. send "{@logo}&7Musisz wybrac druzyne 1-4"
  20. if arg 1 is not set:
  21. send "{@logo}&7Poprawne uzycie: /team <1-4>"
  22. stop
  23. if arg 1 is "1":
  24. if {team1::*} is true:
  25. send "{@logo}&aNalezysz juz do druzyny &a1 &a!"
  26. stop
  27. if {team2::*} is true:
  28. if {team1::*} > 10:
  29. send "{@logo}Druzyna jest pelna!" to player
  30. else:
  31. remove player from {team2::*}
  32. set {team2::*} to false
  33. set the player's tablist name to "&a%name of player%"
  34. add player to {team1::*}
  35. send "{@logo}&aGratulacje, Udalo ci sie dolaczyc do druzyny 1 [%{team1::*}%/10] !"
  36. set {team1::*} to true
  37. stop
  38. if {team3::*} is true:
  39. if {team1::*} > 10:
  40. send "{@logo}Druzyna jest pelna!" to player
  41. else:
  42. remove player from {team3::*}
  43. set {team3::*} to false
  44. set the player's tablist name to "&a%name of player%"
  45. add player to {team1::*}
  46. send "{@logo}&aGratulacje, Udalo ci sie dolaczyc do druzyny 1 [%{team1::*}%/10] !"
  47. set {team1::*} to true
  48. stop
  49. if {team4::*} is true:
  50. if {team1::*} > 10:
  51. send "{@logo}Druzyna jest pelna!" to player
  52. else:
  53. remove player from {team4::*}
  54. set {team4::*} to false
  55. set the player's tablist name to "&a%name of player%"
  56. add player to {team1::*}
  57. send "{@logo}&aGratulacje, Udalo ci sie dolaczyc do druzyny 1 [%{team1::*}%/10] !"
  58. set {team1::*} to true
  59. stop
  60. if {team1::*} is false:
  61. if {team2::*} is false:
  62. if {team1::*} > 10:
  63. send "{@logo}Druzyna jest pelna!" to player
  64. else:
  65. add 1 to {team1::*}
  66. send "{@logo}&aGratulacje, Udalo ci sie dolaczyc do druzyny 1 [%{team1::*}%/10] !"
  67. set {team1::*} to true
  68. stop
  69. if {team3::*} is false:
  70. if {team1::*} > 10:
  71. send "{@logo}Druzyna jest pelna!" to player
  72. else:
  73. add 1 to {team1::*}
  74. send "{@logo}&aGratulacje, Udalo ci sie dolaczyc do druzyny 1 [%{team1::*}%/10] !"
  75. set {team1::*} to true
  76. stop
  77. if {team4::*} is false:
  78. if {team1::*} > 10:
  79. send "{@logo}Druzyna jest pelna!" to player
  80. else:
  81. add 1 to {team1::*}
  82. send "{@logo}&aGratulacje, Udalo ci sie dolaczyc do druzyny 1 [%{team1::*}%/10] !"
  83. set {team1::*} to true
  84. stop
  85. if arg 1 is "2":
  86. if {team1::*} is true:
  87. if {team2::*} > 10:
  88. send "{@logo}Druzyna jest pelna!" to player
  89. else:
  90. remove player from {team1::*}
  91. set {team1::*} to false
  92. set the player's tablist name to "&b%name of player%"
  93. add player to {team2::*}
  94. send "{@logo}&bGratulacje, Udalo ci sie dolaczyc do druzyny 2 [%{team2::*}%/10] !"
  95. set {team2::*} to true
  96. stop
  97. if {team2::*} is true:
  98. send "{@logo}&aNalezysz juz do druzyny &b2 &a!"
  99. stop
  100. if {team3::*} is true:
  101. if {team2::*} > 10:
  102. send "{@logo}Druzyna jest pelna!" to player
  103. else:
  104. remove player from {team3::*}
  105. set {team-3.%player%} to false
  106. set the player's tablist name to "&b%name of player%"
  107. add 1 to {team2::*}
  108. send "{@logo}&bGratulacje, Udalo ci sie dolaczyc do druzyny 2 [%{team2::*}%/10] !"
  109. set {team-2.%player%} to true
  110. stop
  111. if {team4::*} is true:
  112. if {team2::*} > 10:
  113. send "{@logo}Druzyna jest pelna!" to player
  114. else:
  115. remove player from {team4::*}
  116. set {team-4.%player%} to false
  117. set the player's tablist name to "&b%name of player%"
  118. add player to {team2::*}
  119. send "{@logo}&bGratulacje, Udalo ci sie dolaczyc do druzyny 2 [%{team2::*}%/10] !"
  120. set {team2::*} to true
  121. stop
  122. if {team2::*} is false:
  123. if {team1::*} is false:
  124. if {team2::*} > 10:
  125. send "{@logo}Druzyna jest pelna!" to player
  126. else:
  127. add player to {team2::*}
  128. send "{@logo}&bGratulacje, Udalo ci sie dolaczyc do druzyny 2 [%{team2::*}%/10] !"
  129. set {team2::*} to true
  130. stop
  131. if {team3::*} is false:
  132. if {team2::*} > 10:
  133. send "{@logo}Druzyna jest pelna!" to player
  134. else:
  135. add player to {team2::*}
  136. send "{@logo}&bGratulacje, Udalo ci sie dolaczyc do druzyny 2 [%{team2::*}%/10] !"
  137. set {team2::*} to true
  138. stop
  139. if {team4::*} is false:
  140. if {team2::*} > 10:
  141. send "{@logo}Druzyna jest pelna!" to player
  142. else:
  143. add player to {team2::*}
  144. send "{@logo}&bGratulacje, Udalo ci sie dolaczyc do druzyny 2 [%{team2::*}%/10] !"
  145. set {team2::*} to true
  146. stop
  147. if arg 1 is "3":
  148. if {team1::*} is true:
  149. if {team3::*} > 10:
  150. send "{@logo}Druzyna jest pelna!" to player
  151. else:
  152. remove player from {team1::*}
  153. set {team1::*} to false
  154. set the player's tablist name to "&c%name of player%"
  155. add player to {team3::*}
  156. send "{@logo}&cGratulacje, Udalo ci sie dolaczyc do druzyny 3 [%{team3::*}%/10] !"
  157. set {team3::*} to true
  158. stop
  159. if {team2::*} is true:
  160. if {team3::*} > 10:
  161. send "{@logo}Druzyna jest pelna!" to player
  162. else:
  163. remove player from {team2::*}
  164. set {team2::*} to false
  165. set the player's tablist name to "&c%name of player%"
  166. add player to {team3::*}
  167. send "{@logo}&cGratulacje, Udalo ci sie dolaczyc do druzyny 3 [%{team3::*}%/10] !"
  168. set {team3::*} to true
  169. stop
  170. if {team3::*} is true:
  171. send "{@logo}&aNalezysz juz do druzyny &c3 &a!"
  172. stop
  173. if {team4::*} is true:
  174. if {team3::*} > 10:
  175. send "{@logo}Druzyna jest pelna!" to player
  176. else:
  177. remove player from {team4::*}
  178. set {team4::*} to false
  179. set the player's tablist name to "&c%name of player%"
  180. add player to {team3::*}
  181. send "{@logo}&cGratulacje, Udalo ci sie dolaczyc do druzyny 3 [%{team3::*}%/10] !"
  182. set {team3::*} to true
  183. stop
  184. if {team3::*} is false:
  185. if {team1::*} is false:
  186. if {team3::*} > 10:
  187. send "{@logo}Druzyna jest pelna!" to player
  188. else:
  189. add player to {team3::*}
  190. send "{@logo}&cGratulacje, Udalo ci sie dolaczyc do druzyny 3 [%{team3::*}%/10] !"
  191. set {team3::*} to true
  192. stop
  193. if {team2::*} is false:
  194. if {team3::*} > 10:
  195. send "{@logo}Druzyna jest pelna!" to player
  196. else:
  197. add player to {team3::*}
  198. send "{@logo}&cGratulacje, Udalo ci sie dolaczyc do druzyny 3 [%{team3::*}%/10] !"
  199. set {team3::*} to true
  200. stop
  201. if {team4::*} is false:
  202. if {team3::*} > 10:
  203. send "{@logo}Druzyna jest pelna!" to player
  204. else:
  205. add player to {team3::*}
  206. send "{@logo}&cGratulacje, Udalo ci sie dolaczyc do druzyny 3 [%{team3::*}%/10] !"
  207. set {team3::*} to true
  208. stop
  209. if arg 1 is "4":
  210. if {team1::*} is true:
  211. if {team4::*} > 10:
  212. send "{@logo}Druzyna jest pelna!" to player
  213. else:
  214. remove 1 from {team1::*}
  215. set {team1::*} to false
  216. set the player's tablist name to "&e%name of player%"
  217. add 1 to {team4::*}
  218. send "{@logo}&eGratulacje, Udalo ci sie dolaczyc do druzyny 4 [%{team4::*}%/10] !"
  219. set {team4::*} to true
  220. stop
  221. if {team2::*} is true:
  222. if {team4::*} > 10:
  223. send "{@logo}Druzyna jest pelna!" to player
  224. else:
  225. remove 1 from {team2::*}
  226. set {team2::*} to false
  227. set the player's tablist name to "&e%name of player%"
  228. add 1 to {team4::*}
  229. send "{@logo}&eGratulacje, Udalo ci sie dolaczyc do druzyny 4 [%{team4::*}%/10] !"
  230. set {team4::*} to true
  231. stop
  232. if {team3::*} is true:
  233. if {team4::*} > 10:
  234. send "{@logo}Druzyna jest pelna!" to player
  235. else:
  236. remove 1 from {team3::*}
  237. set {team3::*} to false
  238. set the player's tablist name to "&e%name of player%"
  239. add 1 to {team4::*}
  240. send "{@logo}&eGratulacje, Udalo ci sie dolaczyc do druzyny 4 [%{team4::*}%/10] !"
  241. set {team4::*} to true
  242. stop
  243. if {team4::*} is true:
  244. send "{@logo}&aNalezysz juz do druzyny &64 &a!"
  245. stop
  246. if {team4::*} is false:
  247. if {team1::*} is false:
  248. if {team4::*} > 10:
  249. send "{@logo}Druzyna jest pelna!" to player
  250. else:
  251. add 1 to {team4::*}
  252. send "{@logo}&eGratulacje, Udalo ci sie dolaczyc do druzyny 4 [%{team4::*}%/10] !"
  253. set {team4::*} to true
  254. stop
  255. if {team2::*} is false:
  256. if {team4::*} > 10:
  257. send "{@logo}Druzyna jest pelna!" to player
  258. else:
  259. add 1 to {team4::*}
  260. send "{@logo}&eGratulacje, Udalo ci sie dolaczyc do druzyny 4 [%{team4::*}%/10] !"
  261. set {team4::*} to true
  262. stop
  263. if {team3::*} is false:
  264. if {team4::*} > 10:
  265. send "{@logo}Druzyna jest pelna!" to player
  266. else:
  267. add 1 to {team4::*}
  268. send "{@logo}&eGratulacje, Udalo ci sie dolaczyc do druzyny 4 [%{team4::*}%/10] !"
  269. set {team4::*} to true
  270. stop
  271.  
  272. command /teamspawn [<text>]:
  273. permission: walls.teamspawn
  274. trigger:
  275. if arg 1 is not set:
  276. send "{@logo}&7Aby ustawic spawn musisz wpisac argument"
  277. if arg 1 is "1":
  278. set {team1.pos} to location of player
  279. send "{@logo}&aUstawiono lokalizacje spawnu [Team 1] !"
  280. stop
  281. if arg 1 is "2":
  282. set {team2.pos} to location of player
  283. send "{@logo}&bUstawiono lokalizacje spawnu [Team 2] !"
  284. stop
  285. if arg 1 is "3":
  286. set {team3.pos} to location of player
  287. send "{@logo}&cUstawiono lokalizacje spawnu [Team 3] !"
  288. stop
  289. if arg 1 is "4":
  290. set {team4.pos} to location of player
  291. send "{@logo}&eUstawiono lokalizacje spawnu [Team 4] !"
  292. stop
  293. if arg 1 is "1-2":
  294. set {team1.pos2} to location of player
  295. send "{@logo}&aUstawiono lokalizacje spawnu [Team 1] !"
  296. stop
  297. if arg 1 is "2-2":
  298. set {team2.pos2} to location of player
  299. send "{@logo}&bUstawiono lokalizacje spawnu [Team 2] !"
  300. stop
  301. if arg 1 is "3-2":
  302. set {team3.pos2} to location of player
  303. send "{@logo}&cUstawiono lokalizacje spawnu [Team 3] !"
  304. stop
  305. if arg 1 is "4-2":
  306. set {team4.pos2} to location of player
  307. send "{@logo}&eUstawiono lokalizacje spawnu [Team 4] !"
  308. stop
  309. if arg 1 is "1-3":
  310. set {team1.pos3} to location of player
  311. send "{@logo}&aUstawiono lokalizacje spawnu [Team 1] !"
  312. stop
  313. if arg 1 is "2-3":
  314. set {team2.pos3} to location of player
  315. send "{@logo}&bUstawiono lokalizacje spawnu [Team 2] !"
  316. stop
  317. if arg 1 is "3-3":
  318. set {team3.pos3} to location of player
  319. send "{@logo}&cUstawiono lokalizacje spawnu [Team 3] !"
  320. stop
  321. if arg 1 is "4-3":
  322. set {team4.pos3} to location of player
  323. send "{@logo}&eUstawiono lokalizacje spawnu [Team 4] !"
  324. stop
  325.  
  326. command /falldown:
  327. permission: walls.falldown
  328. trigger:
  329. loop all blocks in region "team1-1":
  330. execute server command "rg flag team1-1 entry -w world allow"
  331. execute server command "rg flag team1-1 build -w world allow"
  332. set loop-blocks to air
  333. loop all blocks in region "team1-2":
  334. execute server command "rg flag team1-2 entry -w world allow"
  335. execute server command "rg flag team1-2 build -w world allow"
  336. set loop-blocks to air
  337. loop all blocks in region "team2-1":
  338. execute server command "rg flag team2-1 entry -w world allow"
  339. execute server command "rg flag team2-1 build -w world allow"
  340. set loop-blocks to air
  341. loop all blocks in region "team2-2":
  342. execute server command "rg flag team2-2 entry -w world allow"
  343. execute server command "rg flag team2-2 build -w world allow"
  344. set loop-blocks to air
  345. loop all blocks in region "team3-1":
  346. execute server command "rg flag team3-1 entry -w world allow"
  347. execute server command "rg flag team3-1 build -w world allow"
  348. set loop-blocks to air
  349. loop all blocks in region "team3-2":
  350. execute server command "rg flag team3-2 entry -w world allow"
  351. execute server command "rg flag team3-2 build -w world allow"
  352. set loop-blocks to air
  353. loop all blocks in region "team4-1":
  354. execute server command "rg flag team4-1 entry -w world allow"
  355. execute server command "rg flag team4-1 build -w world allow"
  356. set loop-blocks to air
  357. loop all blocks in region "team4-2":
  358. execute server command "rg flag team4-2 entry -w world allow"
  359. execute server command "rg flag team4-2 build -w world allow"
  360. set loop-blocks to air
  361. stop
  362.  
  363. command /tep [<text>]:
  364. permission: walls.tep
  365. trigger:
  366. if {arena} is true:
  367. if {team1::*} is true:
  368. execute server command "tp arg-player"
  369. send "Przeteleportowano do gracza %arg-player%" to player
  370. stop
  371. if {team1::*} is false:
  372. send "&4Nie mozesz teleportowac sie do gracza z innej druzyny!" to player
  373. stop
  374. if {team2::*} is true:
  375. execute server command "tp arg-player"
  376. send "Przeteleportowano do gracza %arg 1%" to player
  377. stop
  378. if {team2::*} is false:
  379. send "&4Nie mozesz teleportowac sie do gracza z innej druzyny!" to player
  380. stop
  381. if {team3::*} is true:
  382. execute server command "tp arg-player"
  383. send "Przeteleportowano do gracza %arg 1%" to player
  384. stop
  385. if {team3::*} is false:
  386. send "&4Nie mozesz teleportowac sie do gracza z innej druzyny!" to player
  387. stop
  388. if {team4::*} is true:
  389. execute server command "tp arg-player"
  390. send "Przeteleportowano do gracza %arg 1%" to player
  391. stop
  392. if {team4::*} is false:
  393. send "&4Nie mozesz teleportowac sie do gracza z innej druzyny!" to player
  394. stop
  395.  
  396. command /bc [<text>]:
  397. permission: walls.broadcast
  398. trigger:
  399. if arg 1 is not set:
  400. send "{@logo}Musisz wpisac argument!"
  401. if arg 1 is set:
  402. broadcast "{@logo}%coloured arg%"
  403. stop
  404.  
  405. command /bc2 [<text>]:
  406. permission: walls.broadcast2
  407. trigger:
  408. if arg 1 is not set:
  409. send "{@logo}Musisz wpisac argument!"
  410. if arg 1 is set:
  411. broadcast "%coloured arg%"
  412. stop
  413.  
  414. command /walls [<text>] [<text>]:
  415. aliases: w
  416. trigger:
  417. if arg 1 is not set:
  418. send " &b=-=-=-=-= TheWalls =-=-=-=-="
  419. send " &e/walls start - Startuje arene TheWalls"
  420. send " &e/walls help - Pomoc pluginu TheWalls"
  421. send " &e/walls - Pokazuje komendy TheWalls"
  422. send " &e/wyjdz - Startuje arene TheWalls"
  423. send " &e/team <1-4> - Startuje arene TheWalls"
  424. send " &e/tep <nick> - Startuje arene TheWalls"
  425. stop
  426. if arg 1 is "help":
  427. if arg 2 is "1":
  428. send " &2Strona 1/3"
  429. send " &b=-=-=-=-= TheWalls =-=-=-=-="
  430. send " &e/walls help - Pomoc pluginu TheWalls"
  431. send " &e/walls - Pokazuje komendy TheWalls"
  432. send " &e/wyjdz - Startuje arene TheWalls"
  433. send " &e/team <1-4> - Startuje arene TheWalls"
  434. send " &e/tep <nick> - Startuje arene TheWalls"
  435. stop
  436. if arg 2 is "2":
  437. send " &2Strona 2/3"
  438. send " &b=-=-=-=-= TheWalls =-=-=-=-="
  439. send " &eTheWalls to minigierka w ktorej sa cztery"
  440. send " &edruzyny: 1 - zielona, 2 - niebieska, "
  441. send " &e3 - czerwona, 4 - zolta. Jest 10 min."
  442. send " &ena zbieranie(kopanie, zbieranie drewna."
  443. send " &eSurowce wypadaja ze stone(kamienia)."
  444. send " &eNastepnie opadaja sciany i najlepiej"
  445. send " &ezebrac jak najwiecej skrzynek ze srodka."
  446. send " &eJesli przez 10 min. walki po opadnieciu"
  447. send " &escian jedna druzyna nie zostanie i nie"
  448. send " &ewygra rozpocznie sie DeathMatch. Tam"
  449. send " &eroztrzygnie sie bitwa"
  450. stop
  451. if arg 2 is "3":
  452. send " &cStrona 3/3"
  453. send " &b=-=-=-=-= TheWalls =-=-=-=-="
  454. send " &eZa zabicie gracza otrzymujemy +5 monet"
  455. send " &enatomiast za wygrana +15 monet. W czasie"
  456. send " &eeventow za zabicie bedzie +10 monet, a"
  457. send " &eza wygrana +30 monet. Eventy beda srednio"
  458. send " &eco 1 mies. i beda trwaly ok. caly weekend."
  459. stop
  460. if arg 1 is "start":
  461. if player has permission "walls.start":
  462. execute server command "bc Gra zacznie sie za 5 sekund!"
  463. execute server command "motd set &2&l: &6&ls1.mc-Walls.pl &2&l: &6Gra zacznie sie za 5 sekund!"
  464. wait 1 second
  465. execute server command "bc Gra zacznie sie za 4 sekund!"
  466. execute server command "motd set &2&l: &6&ls1.mc-Walls.pl &2&l: &6Gra zacznie sie za 4 sekund!"
  467. wait 1 second
  468. execute server command "bc Gra zacznie sie za 3 sekund!"
  469. execute server command "motd set &2&l: &6&ls1.mc-Walls.pl &2&l: &6Gra zacznie sie za 3 sekund!"
  470. wait 1 second
  471. execute server command "bc Gra zacznie sie za 2 sekund!"
  472. execute server command "motd set &2&l: &6&ls1.mc-Walls.pl &2&l: &6Gra zacznie sie za 2 sekund!"
  473. wait 1 second
  474. execute server command "bc Gra zacznie sie za 1 sekund!"
  475. execute server command "motd set &2&l: &6&ls1.mc-Walls.pl &2&l: &6Gra zacznie sie za 1 sekund!"
  476. wait 1 second
  477. execute server command "motd set &2&l: &6&ls1.mc-Walls.pl &2&l: &6Gra juz trwa!"
  478. set {arena} to true
  479. wait 2 tick
  480. if {team1::*} contains "player":
  481. teleport {team1::*} to {team1.pos}
  482. send "Znajdujesz się w Team1" to {team1::*}
  483. if {team2::*} contains "player":
  484. teleport {team2::*} to {team2.pos}
  485. send "Znajdujesz się w Team1" to {team2::*}
  486. if {team3::*} contains "player":
  487. teleport {team3::*} to {team3.pos}
  488. send "Znajdujesz się w Team1" to {team3::*}
  489. if {team4::*} contains "player":
  490. teleport {team4::*} to {team4.pos}
  491. send "Znajdujesz się w Team1" to {team4::*}
  492. wait 5 minutes
  493. execute server command "bc &7Sciany opadna za 5 minut!"
  494. wait 3 minutes
  495. execute server command "bc &7Sciany opadna za 2 minuty!"
  496. wait 1 minute
  497. execute server command "bc &7Sciany opadna za 1 minute!"
  498. wait 30 second
  499. execute server command "bc &7Sciany opadna za 30 sekund!"
  500. wait 10 second
  501. execute server command "bc &7Sciany opadna za 20 sekund!"
  502. wait 10 second
  503. execute server command "bc &7Sciany opadna za 10 sekund!"
  504. wait 1 second
  505. execute server command "bc &7Sciany opadna za 9 sekund!"
  506. wait 1 second
  507. execute server command "bc &7Sciany opadna za 8 sekund!"
  508. wait 1 second
  509. execute server command "bc &7Sciany opadna za 7 sekund!"
  510. wait 1 second
  511. execute server command "bc &7Sciany opadna za 6 sekund!"
  512. wait 1 second
  513. execute server command "bc &7Sciany opadna za 5 sekund!"
  514. wait 1 second
  515. execute server command "bc &7Sciany opadna za 4 sekundy!"
  516. wait 1 second
  517. execute server command "bc &7Sciany opadna za 3 sekundy!"
  518. wait 1 second
  519. execute server command "bc &7Sciany opadna za 2 sekundy!"
  520. wait 1 second
  521. execute server command "bc &7Sciany opadna za 1 sekunde!"
  522. wait 1 second
  523. execute server command "bc &7Sciany opadly!"
  524. execute server command "falldown"
  525. wait 10 minutes
  526. execute server command "bc &7Deathmatch rozpoczety!"
  527. loop {team1::*}:
  528. teleport loop-player to {team1.pos3}
  529. loop {team2::*}:
  530. teleport loop-player to {team2.pos3}
  531. loop {team3::*}:
  532. teleport loop-player to {team3.pos3}
  533. loop {team4::*}:
  534. teleport loop-player to {team4.pos3}
  535. if arg 1 is "reload":
  536. execute server command "skript reload TheWalls"
  537. remove all players from {team1::*}
  538. remove all players from {team2::*}
  539. remove all players from {team3::*}
  540. remove all players from {team4::*}
  541. set {arena} to false
  542. stop
  543. on chat:
  544. if {arena} is true:
  545. if {team1::*} is true:
  546. set the player's display name to "%player's prefix%&7[&aTeam 1&7]&f%player%"
  547. set the player's tablist name to "&a%name of player%"
  548. stop
  549. if {team2::*} is true:
  550. set the player's display name to "%player's prefix%&7[&bTeam 2&7]&f%player%"
  551. set the player's tablist name to "&b%name of player%"
  552. stop
  553. if {team3::*} is true:
  554. set the player's display name to "%player's prefix%&7[&cTeam 3&7]&f%player%"
  555. set the player's tablist name to "&c%name of player%"
  556. stop
  557. if {team4::*} is true:
  558. set the player's display name to "%player's prefix%&7[&eTeam 4&7]&f%player%"
  559. set the player's tablist name to "&e%name of player%"
  560. stop
  561. if {team1::*} is false:
  562. set the player's tablist name to "&f%name of player%"
  563. stop
  564. if {team2::*} is false:
  565. set the player's tablist name to "&f%name of player%"
  566. stop
  567. if {team3::*} is false:
  568. set the player's tablist name to "&f%name of player%"
  569. stop
  570. if {team4::*} is false:
  571. set the player's tablist name to "&f%name of player%"
  572. stop
  573. on quit:
  574. if {team1::*} is true:
  575. remove 1 from {team1::*}
  576. set {team1::*} to false
  577. set the player's tablist name to "&f%name of player%"
  578. stop
  579. if {team2::*} is true:
  580. remove 1 from {team2::*}
  581. set {team2::*} to false
  582. set the player's tablist name to "&f%name of player%"
  583. stop
  584. if {team3::*} is true:
  585. remove 1 from {team3::*}
  586. set {team3::*} to false
  587. set the player's tablist name to "&f%name of player%"
  588. stop
  589. if {team4::*} is true:
  590. remove 1 from {team4::*}
  591. set {team4::*} to false
  592. set the player's tablist name to "&f%name of player%"
  593. stop
  594. on death:
  595. if {arena} is true:
  596. if {team1::*} is true:
  597. remove 1 from {team1::*}
  598. set {team1::*} to false
  599. set the player's tablist name to "&f%name of player%"
  600. execute server command "kick %player% &7Zginales! &7Musisz czekac na zakonczenie rozgrywki. &7Jesli posiadasz range &6VIP&7/&3Super&6VIP &7mozesz obserwowac rozgrywke!"
  601. if attacker is player:
  602. if victim is player:
  603. send "&aGracz &e{team.%victim%}%victim% &azostał zabity przez gracza &e{team.%attacker%}%attacker% &az %attacker's tool%!"
  604. stop
  605. if {team2::*} is true:
  606. remove 1 from {team2::*}
  607. set {team2::*} to false
  608. set the player's tablist name to "&f%name of player%"
  609. execute server command "kick %player% &7Zginales! &7Musisz czekac na zakonczenie rozgrywki. &7Jesli posiadasz range &6VIP&7/&3Super&6VIP &7mozesz obserwowac rozgrywke!"
  610. if attacker is player:
  611. if victim is player:
  612. send "&aGracz &e{team.%victim%}%victim% &azostał zabity przez gracza &e{team.%attacker%}%attacker% &az %attacker's tool%!"
  613. stop
  614. if {team3::*} is true:
  615. remove 1 from {team3::*}
  616. set {team3::*} to false
  617. set the player's tablist name to "&f%name of player%"
  618. execute server command "kick %player% &7Zginales! &7Musisz czekac na zakonczenie rozgrywki. &7Jesli posiadasz range &6VIP&7/&3Super&6VIP &7mozesz obserwowac rozgrywke!"
  619. if attacker is player:
  620. if victim is player:
  621. send "&aGracz &e{team.%victim%}%victim% &azostał zabity przez gracza &e{team.%attacker%}%attacker% &az %attacker's tool%!"
  622. stop
  623. if {team4::*} is true:
  624. remove 1 from {team4::*}
  625. set {team4::*} to false
  626. set the player's tablist name to "&f%name of player%"
  627. execute server command "kick %player% &7Zginales! &7Musisz czekac na zakonczenie rozgrywki. &7Jesli posiadasz range &6VIP&7/&3Super&6VIP &7mozesz obserwowac rozgrywke!"
  628. if attacker is player:
  629. if victim is player:
  630. send "&aGracz &e{team.%victim%}%victim% &azostał zabity przez gracza &e{team.%attacker%}%attacker% &az %attacker's tool%!"
  631. stop
  632.  
  633. on damage:
  634. if {arena} is true:
  635. if {team1::%attacker%::*} is true:
  636. if {team1::%victim%::*} is true:
  637. cancel event
  638. if {team2::%attacker%::*} is true:
  639. if {team2::%victim%::*} is true:
  640. cancel event
  641. if {team3::%attacker%::*} is true:
  642. if {team3::%victim%::*} is true:
  643. cancel event
  644. if {team4::%attacker%::*} is true:
  645. if {team4::%victim%::*} is true:
  646. cancel event
  647. on join:
  648. if {arena} is true:
  649. execute server command "kick %player% &7Musisz czekac na zakończenie rozgrywki!"
  650. stop
  651. on command "team 1":
  652. if {arena} is true:
  653. cancel event
  654. send "{@logo}Nie mozesz wybierac teamu podczas rozgrywki!"
  655. on command "team 2":
  656. if {arena} is true:
  657. cancel event
  658. send "{@logo}Nie mozesz wybierac teamu podczas rozgrywki!"
  659. on command "team 3":
  660. if {arena} is true:
  661. cancel event
  662. send "{@logo}Nie mozesz wybierac teamu podczas rozgrywki!"
  663. on command "team 4":
  664. if {arena} is true:
  665. cancel event
  666. send "{@logo}Nie mozesz wybierac teamu podczas rozgrywki!"
  667. on command "team leave":
  668. if {arena} is true:
  669. cancel event
  670. send "{@logo}&7Nie mozesz wychodzic z teamu podczas rozgrywki!"
  671. on rightclick on sign:
  672. if line 1 is "&f&lZESTAW":
  673. if line 2 is "&f&lGORNIKA":
  674. if {team1::*} is true:
  675. execute server command "kit gornik %player%"
  676. teleport player to {team1.pos2}
  677. stop
  678. if {team2::*} is true:
  679. execute server command "kit gornik %player%"
  680. teleport player to {team2.pos2}
  681. stop
  682. if {team-3.%player%} is true:
  683. execute server command "kit gornik %player%"
  684. teleport player to {team3.pos2}
  685. stop
  686. if {team-4.%player%} is true:
  687. execute server command "kit gornik %player%"
  688. teleport player to {team4.pos2}
  689. stop
  690. if line 1 is "&6&lZESTAW":
  691. if line 2 is "&f&lGORNIKA":
  692. if {team-1.%player%} is true:
  693. execute server command "kit gornikvip %player%"
  694. teleport player to {team1.pos2}
  695. stop
  696. if {team-2.%player%} is true:
  697. execute server command "kit gornikvip %player%"
  698. teleport player to {team2.pos2}
  699. stop
  700. if {team-3.%player%} is true:
  701. execute server command "kit gornikvip %player%"
  702. teleport player to {team3.pos2}
  703. stop
  704. if {team-4.%player%} is true:
  705. execute server command "kit gornikvip %player%"
  706. teleport player to {team4.pos2}
  707. stop
  708. if line 1 is "&b&lZESTAW":
  709. if line 2 is "&f&lGORNIKA":
  710. if {team-1.%player%} is true:
  711. execute server command "kit gorniksupervip %player%"
  712. teleport player to {team1.pos2}
  713. stop
  714. if {team-2.%player%} is true:
  715. execute server command "kit gorniksupervip %player%"
  716. teleport player to {team2.pos2}
  717. stop
  718. if {team-3.%player%} is true:
  719. execute server command "kit gorniksupervip %player%"
  720. teleport player to {team3.pos2}
  721. stop
  722. if {team-4.%player%} is true:
  723. execute server command "kit gorniksupervip %player%"
  724. teleport player to {team4.pos2}
  725. stop
  726. if line 1 is "&f&lZESTAW":
  727. if line 2 is "&f&lLUCZNIKA":
  728. if {team-1.%player%} is true:
  729. execute server command "kit lucznik %player%"
  730. teleport player to {team1.pos2}
  731. stop
  732. if {team-2.%player%} is true:
  733. execute server command "kit lucznik %player%"
  734. teleport player to {team2.pos2}
  735. stop
  736. if {team-3.%player%} is true:
  737. execute server command "kit lucznik %player%"
  738. teleport player to {team3.pos2}
  739. stop
  740. if {team-4.%player%} is true:
  741. execute server command "kit lucznik %player%"
  742. teleport player to {team4.pos2}
  743. stop
  744. if line 1 is "&6&lZESTAW":
  745. if line 2 is "&f&lLUCZNIKA":
  746. if {team-1.%player%} is true:
  747. execute server command "kit lucznikvip %player%"
  748. teleport player to {team1.pos2}
  749. stop
  750. if {team-2.%player%} is true:
  751. execute server command "kit lucznikvip %player%"
  752. teleport player to {team2.pos2}
  753. stop
  754. if {team-3.%player%} is true:
  755. execute server command "kit lucznikvip %player%"
  756. teleport player to {team3.pos2}
  757. stop
  758. if {team-4.%player%} is true:
  759. execute server command "kit lucznikvip %player%"
  760. teleport player to {team4.pos2}
  761. stop
  762. if line 1 is "&b&lZESTAW":
  763. if line 2 is "&f&lLUCZNIKA":
  764. if {team-1.%player%} is true:
  765. execute server command "kit luczniksupervip %player%"
  766. teleport player to {team1.pos2}
  767. stop
  768. if {team-2.%player%} is true:
  769. execute server command "kit luczniksupervip %player%"
  770. teleport player to {team2.pos2}
  771. stop
  772. if {team-3.%player%} is true:
  773. execute server command "kit luczniksupervip %player%"
  774. teleport player to {team3.pos2}
  775. stop
  776. if {team-4.%player%} is true:
  777. execute server command "kit luczniksupervip %player%"
  778. teleport player to {team4.pos2}
  779. stop
  780. if line 1 is "&f&lZESTAW":
  781. if line 2 is "&f&lDRWALA":
  782. if {team-1.%player%} is true:
  783. execute server command "kit drwal %player%"
  784. teleport player to {team1.pos2}
  785. stop
  786. if {team-2.%player%} is true:
  787. execute server command "kit drwal %player%"
  788. teleport player to {team2.pos2}
  789. stop
  790. if {team-3.%player%} is true:
  791. execute server command "kit drwal %player%"
  792. teleport player to {team3.pos2}
  793. stop
  794. if {team-4.%player%} is true:
  795. execute server command "kit drwal %player%"
  796. teleport player to {team4.pos2}
  797. stop
  798. if line 1 is "&6&fZESTAW":
  799. if line 2 is "&f&lDRWALA":
  800. if {team-1.%player%} is true:
  801. execute server command "kit drwalvip %player%"
  802. teleport player to {team1.pos2}
  803. stop
  804. if {team-2.%player%} is true:
  805. execute server command "kit drwalvip %player%"
  806. teleport player to {team2.pos2}
  807. stop
  808. if {team-3.%player%} is true:
  809. execute server command "kit drwalvip %player%"
  810. teleport player to {team3.pos2}
  811. stop
  812. if {team-4.%player%} is true:
  813. execute server command "kit drwalvip %player%"
  814. teleport player to {team4.pos2}
  815. stop
  816. if line 1 is "&b&lZESTAW":
  817. if line 2 is "&f&lDRWALA":
  818. if {team-1.%player%} is true:
  819. execute server command "kit drwalsupervip %player%"
  820. teleport player to {team1.pos2}
  821. stop
  822. if {team-2.%player%} is true:
  823. execute server command "kit drwalsupervip %player%"
  824. teleport player to {team2.pos2}
  825. stop
  826. if {team-3.%player%} is true:
  827. execute server command "kit drwalsupervip %player%"
  828. teleport player to {team3.pos2}
  829. stop
  830. if {team-4.%player%} is true:
  831. execute server command "kit drwalsupervip %player%"
  832. teleport player to {team4.pos2}
  833. stop
  834. if line 1 is "&f&lZESTAW":
  835. if line 2 is "&f&lWOJOWNIKA":
  836. if {team-1.%player%} is true:
  837. execute server command "kit wojownik %player%"
  838. teleport player to {team1.pos2}
  839. stop
  840. if {team-2.%player%} is true:
  841. execute server command "kit wojownik %player%"
  842. teleport player to {team2.pos2}
  843. stop
  844. if {team-3.%player%} is true:
  845. execute server command "kit wojownik %player%"
  846. teleport player to {team3.pos2}
  847. stop
  848. if {team-4.%player%} is true:
  849. execute server command "kit wojownik %player%"
  850. teleport player to {team4.pos2}
  851. stop
  852. if line 1 is "&6&lZESTAW":
  853. if line 2 is "&f&lWOJOWNIKA":
  854. if {team-1.%player%} is true:
  855. execute server command "kit wojownikvip %player%"
  856. teleport player to {team1.pos2}
  857. stop
  858. if {team-2.%player%} is true:
  859. execute server command "kit wojownikvip %player%"
  860. teleport player to {team2.pos2}
  861. stop
  862. if {team-3.%player%} is true:
  863. execute server command "kit wojownikvip %player%"
  864. teleport player to {team3.pos2}
  865. stop
  866. if {team-4.%player%} is true:
  867. execute server command "kit wojownikvip %player%"
  868. teleport player to {team4.pos2}
  869. stop
  870. if line 1 is "&b&lZESTAW":
  871. if line 2 is "&f&lWOJOWNIKA":
  872. if {team-1.%player%} is true:
  873. execute server command "kit wojowniksupervip %player%"
  874. teleport player to {team1.pos2}
  875. stop
  876. if {team-2.%player%} is true:
  877. execute server command "kit wojowniksupervip %player%"
  878. teleport player to {team2.pos2}
  879. stop
  880. if {team-3.%player%} is true:
  881. execute server command "kit wojowniksupervip %player%"
  882. teleport player to {team3.pos2}
  883. stop
  884. if {team-4.%player%} is true:
  885. execute server command "kit wojowniksupervip %player%"
  886. teleport player to {team4.pos2}
  887. stop
  888. if line 1 is "&b&lZESTAW":
  889. if line 2 is "&f&lALCHEMIKA":
  890. if {team-1.%player%} is true:
  891. execute server command "kit alchemiksupervip %player%"
  892. teleport player to {team1.pos2}
  893. stop
  894. if {team-2.%player%} is true:
  895. execute server command "kit alchemiksupervip %player%"
  896. teleport player to {team2.pos2}
  897. stop
  898. if {team-3.%player%} is true:
  899. execute server command "kit alchemiksupervip %player%"
  900. teleport player to {team3.pos2}
  901. stop
  902. if {team-4.%player%} is true:
  903. execute server command "kit alchemiksupervip %player%"
  904. teleport player to {team4.pos2}
  905. stop
Advertisement
Add Comment
Please, Sign In to add comment