WujcioCreeper

Teamer © Version 0.1 Public BETA

Feb 9th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.15 KB | None | 0 0
  1. # -------+=| TEAMER © |=+--------- #
  2. # Autor >> Przewoz20011 / WujcioCreeper #
  3. # Wersja >> Beta 0.1 #
  4. # Stworzone Na Prosbe : S0L1D3R #
  5. # Stworzone Dla : www.mpcforum.pl #
  6. # Zezwalam na : #
  7. # 1. Zmianę Wyglądu TAG'u #
  8. # 2. Zmianę Wyglądu TAG'u na TABLIST #
  9. # 3. Zmianę Formatu Chatu #
  10. # -+-+-+-+-+-+-+-
  11. # Nie Zezwalam Na :
  12. # 1. Zmianę Danych Autora
  13. # 2. Zmianę Tytułu Skryptu
  14. # 3. Kopiowanie i wykorzystywanie kodu skryptu bez zgody autora
  15. # 4. Podszywanie się pod autora
  16. # 5. Zmianę Czegokolwiek NIE WYMIENIONEGO W 'Zezwalam Na:' !
  17. #
  18. # Nie zapoznanie się z regulaminem dot. Skryptu nie zwalnia
  19. # Z Jego Przestrzegania
  20. #
  21. # © - Copyrights 2014 for WujcioCreeper
  22. # Ta Część jest chroniona Polskim Prawem !
  23. #
  24.  
  25. options:
  26. # Możez Zmieniać Wygląd Od Tego Momentu -
  27. Teamer.tag: &7[&3Team&cer&7]
  28. Teamer.TablistTag.Red: &0|&c&lRed&0|
  29. Teamer.TablistTag.Blue: &0|&3&lBlue&0|
  30. Teamer.TablistTag.LiderBlue: &0|&b&lL&3&lBlue&0|
  31. Teamer.TablistTag.LiderRed: &0|&b&1L&c&lRed&0|
  32. Teamer.Chatformat: &0|&c=>&6%name of player% &5&l>> &7%message%
  33. # - Do Momentu wyżej
  34. Teamer.author: &fPrzewoz20011&8/&fWujcioCreeper
  35. Teamer.version: &aBeta 0.1
  36. Teamer.command: teamer
  37. Teamer.alias: tr
  38.  
  39. variables:
  40. # \/ Zmieniając tą funkcję na 'False' wyłączysz wyświetlanie się Tagu pod TAB'em
  41. {Teamer.Tablist.On} = true
  42. # \/ Zmieniając tą funkcję na 'False' wyłączysz Format Chatu na Serwerze [Z Tego Skryptu]
  43. {Teamer.Chatformat.On} = true
  44. # \/ Zmieniając tą funkcję na 'False' wyłączysz możliwość ustawiania spawnu drużyn
  45. {Teamer.Spawngroup} = true
  46. # \/ Zmieniajac tą funkcję na 'False' wyłączysz zapisywanie danych "Kto użył jakiej komendy z tego skryptu"
  47. {Teamer.LogCommands} = true
  48. # \/ NIE ZMIENIAJ FUNKCJI NIŻEJ
  49. {Teamer.Join.One.%player%} = true
  50.  
  51. # #
  52. # KOD SKRYPTU - NIE POTRAFISZ TUTAJ KONFIGUROWAĆ #
  53. # NIE RUSZAJ SIĘ NAWET, NIE BĘDE ODPOWIADAŁ ZA #
  54. # ŹLE SKONFIGUROWANY SKRYPT ORAZ ŹLE ZOPTYMALI- #
  55. # -ZOWANY SERWER #
  56. # #
  57.  
  58. on skript start:
  59. send "&b&l|-----|{@Teamer.tag}&b&l|-----|" to the console
  60. send "&b&l|-----|&aSkrypt Uruchomiony&b&l|-----|" to the console
  61. if {Teamer.Tablist.On} is true:
  62. send "&b&l|-----|&3Tag na TAB'ie &5- &aUruchomiony&b&l|-----|" to the console
  63. else:
  64. send "&b&l|-----|&3Tag na TAB'ie &5- &cWylaczony&b&l|-----|" to the console
  65. if {Teamer.Tablist.On} is true:
  66. send "&b&l|-----|&3Format Chatu &5- &aUruchomiony&b&l|-----|" to the console
  67. else:
  68. send "&b&l|-----|&3Format Chatu &5- &cWylaczony&b&l|-----|" to the console
  69. if {Teamer.Spawngroup} is true:
  70. send "&b&l|-----|&3Ustawianie spawnu Druzyn &5- &aUruchomiony&b&l|-----|" to the console
  71. else:
  72. send "&b&l|-----|&3Ustawianie Spawnu Druzyn &5- &cWylaczony&b&l|-----|" to the console
  73. send "&b&l|-----|&2Autor &5- {@Teamer.author}&b&l|-----|" to the console
  74. send "&b&l|-----|&2Wersja &5- {@Teamer.version}&b&l|-----|" to the console
  75. send "&b&l|-----|{@Teamer.tag}&b&l|-----|" to the console
  76. stop
  77.  
  78. on skript stop:
  79. send "&b&l|-----|{@Teamer.tag}&b&l|-----|" to the console
  80. send "&b&l|-----|&cSkrypt Wylaczony&b&l|-----|" to the console
  81. send "&b&l|-----|&3Tag na TAB'ie &5- &cWylaczony&b&l|-----|" to the console
  82. send "&b&l|-----|&3Format Chatu &5- &cWylaczony&b&l|-----|" to the console
  83. send "&b&l|-----|&3Ustawianie Spawnu Druzyn &5- &cWylaczony&b&l|-----|" to the console
  84. send "&b&l|-----|&2Autor &5- {@Teamer.author}&b&l|-----|" to the console
  85. send "&b&l|-----|&2Wersja &5- {@Teamer.version}&b&l|-----|" to the console
  86. send "&b&l|-----{@Teamer.tag}&b&l-----|" to the console
  87. stop
  88. every 5 seconds:
  89. loop all players:
  90. if loop-player has permission "teamer.default.red":
  91. add loop-player to {teamer.red::*}
  92. stop
  93. if loop-player has permission "teamer.default.blue":
  94. add loop-player to {teamer.blue::*}
  95. stop
  96. if loop-player has permission "teamer.lider.red":
  97. add loop-player to {teamer.liderred::*}
  98. stop
  99. if loop-player has permission "teamer.lider.blue":
  100. add loop-player to {teamer.liderblue::*}
  101. stop
  102. on chat:
  103. message contains "<none>" or "none":
  104. replace all "<none>" or "none" with "&4Nieobecny" in the message
  105. if {Teamer.ChatFormat.On} is true:
  106. player has permission "teamer.default.red":
  107. cancel event
  108. broadcast "&0|&cR{@Teamer.Chatformat}"
  109. stop
  110. player has permission "teamer.default.blue":
  111. cancel event
  112. broadcast "&0|&3B{@Teamer.Chatformat}"
  113. stop
  114. player has permission "teamer.lider.red":
  115. cancel event
  116. broadcast "&0|&6L&cR{@Teamer.Chatformat}"
  117. stop
  118. player has permission "teamer.lider.blue":
  119. cancel event
  120. broadcast "&0|&6L&3B{@Teamer.Chatformat}"
  121. stop
  122.  
  123. on damage:
  124. if attacker is player:
  125. attacker has permission "teamer.default.blue" or "teamer.lider.blue":
  126. victim has permission "teamer.default.blue" or "teamer.lider.blue":
  127. cancel event
  128. send "{@Teamer.tag} &5> &7Nie mozesz atakowac swojej druzyny!" to attacker
  129. stop
  130. if attacker is player:
  131. attacker has permission "teamer.default.red" or "teamer.lider.red":
  132. victim has permission "teamer.default.red" or "teamer.lider.red":
  133. cancel event
  134. send "{@Teamer.tag} &5 &7Nie mozesz atakowac swojej druzyny!" to attacker
  135. stop
  136.  
  137.  
  138. command /{@Teamer.command} [<text>]:
  139. aliases: {@Teamer.alias}
  140. trigger:
  141. if arg 1 is not set:
  142. send "&b&l|-----|{@Teamer.tag}&b&l|-----|" to player
  143. send "&b&l|-----|&6Pomoc&b&l|-----|" to player
  144. wait 0.2 second
  145. send "&5/teamer pomoc &6- &7Wyswietla Pomoc" to player
  146. wait 0.2 second
  147. send "&5/teamer red &6- &7Wyswietla Liste Druzyny &cRED" to player
  148. wait 0.2 second
  149. send "&5/teamer blue &6- &7Wyswietla Liste Druzyny &3BLUE" to player
  150. wait 0.2 second
  151. send "&5/teamer spawn &6- &7Wyswietla Informacje jak zakladac/uzywac Spawnow Druzyn" to player
  152. loop 2 times:
  153. send "" to player
  154. stop
  155.  
  156. if arg 1 is "pomoc":
  157. send "&b&l|-----|{@Teamer.tag}&b&l|-----|" to player
  158. send "&b&l|-----|&6Pomoc&b&l|-----|" to player
  159. wait 0.2 second
  160. send "&5/teamer pomoc &6- &7Wyswietla Pomoc" to player
  161. wait 0.2 second
  162. send "&5/teamer red &6- &7Wyswietla Liste Druzyny &cRED" to player
  163. wait 0.2 second
  164. send "&5/teamer blue &6- &7Wyswietla Liste Druzyny &3BLUE" to player
  165. wait 0.2 second
  166. send "&5/teamer spawn &6- &7Wyswietla Informacje jak zakladac/uzywac Spawnow Druzyn" to player
  167. if {Teamer.LogCommands} is true:
  168. log "Gracz %player% uzyl Komendy /teamer pomoc" to "teamer-uzyte-komendy.txt"
  169. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/teamer pomoc &7!!" to the console
  170. loop 2 times:
  171. send "" to player
  172. stop
  173. if arg 1 is "red":
  174. loop all players:
  175. if loop-player has permission "teamer.default.red":
  176. add loop-player to {_teamer.red::*}
  177. if loop-player has permission "teamer.default.blue":
  178. add loop-player to {_teamer.blue::*}
  179. if loop-player has permission "teamer.lider.red":
  180. add loop-player to {_teamer.liderred::*}
  181. if loop-player has permission "teamer.lider.blue":
  182. add loop-player to {_teamer.liderblue::*}
  183. send "&b&l|-----|{@Teamer.tag}&b&l|-----|" to player
  184. wait 0.2 second
  185. send "&8----|&6Lider &cRED&8|----" to player
  186. wait 0.2 second
  187. send "&2%{_teamer.liderred::*}%" to player
  188. wait 0.2 second
  189. send "&0-=-=-=-=-=-=-=-=-=-=-=-=" to player
  190. wait 0.2 second
  191. send "&8----|&6Czlonkowie &cRED&7|----" to player
  192. wait 0.2 second
  193. send "&2%{_teamer.red::*}%" to player
  194. if {Teamer.LogCommands} is true:
  195. log "Gracz %player% uzyl Komendy /teamer red" to "teamer-uzyte-komendy.txt"
  196. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/teamer red &7!!" to the console
  197. loop 2 times:
  198. send "" to player
  199. stop
  200.  
  201. if arg 1 is "blue":
  202. loop all players:
  203. if loop-player has permission "teamer.default.red":
  204. add loop-player to {_teamer.red::*}
  205. if loop-player has permission "teamer.default.blue":
  206. add loop-player to {_teamer.blue::*}
  207. if loop-player has permission "teamer.lider.red":
  208. add loop-player to {_teamer.liderred::*}
  209. if loop-player has permission "teamer.lider.blue":
  210. add loop-player to {_teamer.liderblue::*}
  211. send "&b&l|-----|{@Teamer.tag}&b&l|-----|" to player
  212. wait 0.2 second
  213. send "&8----|&6Lider &3BLUE&8|----" to player
  214. wait 0.2 second
  215. send "&2%{_teamer.liderblue::*}%" to player
  216. wait 0.2 second
  217. send "&0-=-=-=-=-=-=-=-=-=-=-=-=" to player
  218. wait 0.2 second
  219. send "&8----|&6Czlonkowie &3BLUE&7|----" to player
  220. wait 0.2 second
  221. send "&2%{_teamer.blue::*}%" to player
  222. if {Teamer.LogCommands} is true:
  223. log "Gracz %player% uzyl Komendy /teamer blue" to "teamer-uzyte-komendy.txt"
  224. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/teamer blue &7!!" to the console
  225. loop 2 times:
  226. send "" to player
  227. stop
  228. if arg 1 is "spawn":
  229. player is an op:
  230. send "&b&l|-----|{@Teamer.tag}&b&l|-----|"
  231. send "&b&l----|&6Pomoc dot. Spawnu Druzyn&b&l|----"
  232. wait 0.2 second
  233. send "&5/ustaw red &6- &bUstawiasz Spawn Druzyny &cRED"
  234. wait 0.2 second
  235. send "&5/ustaw blue &6- &bUstawiasz Spawn Druzyny &3BLUE"
  236. wait 0.2 second
  237. send "&5/ustaw globalspawn &6- &bUstawiasz Spawn Globalny"
  238. if {Teamer.LogCommands} is true:
  239. log "Gracz %player% uzyl Komendy /teamer spawn" to "teamer-uzyte-komendy.txt"
  240. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/teamer spawn &7!!" to the console
  241. loop 2 times:
  242. send "" to player
  243. stop
  244.  
  245. command /ustaw [<text>]:
  246. trigger:
  247. if arg 1 is not set:
  248. execute player command "/teamer spawn"
  249. stop
  250. if arg 1 is "red":
  251. player is an op:
  252. set {punktred} to location of player
  253. wait 0.2 second
  254. send "{@Teamer.tag} &5> &bUstawiles spawn dla druzyny &cRED" to player
  255. if {Teamer.LogCommands} is true:
  256. log "Gracz %player% uzyl Komendy /ustaw red" to "teamer-uzyte-komendy.txt"
  257. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/ustaw red &7!!" to the console
  258. loop 2 times:
  259. send "" to player
  260. stop
  261. else:
  262. send "{@Teamer.tag} &5> &4Nie Masz Uprawnien." to player
  263. stop
  264. if arg 1 is "blue":
  265. player is an op:
  266. set {punktblue} to location of player
  267. wait 0.2 second
  268. send "{@Teamer.tag} &5> &bUstawiles spawn dla druzyny &3BLUE" to player
  269. if {Teamer.LogCommands} is true:
  270. log "Gracz %player% uzyl Komendy /ustaw blue" to "teamer-uzyte-komendy.txt"
  271. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/ustaw blue &7!!" to the console
  272. loop 2 times:
  273. send "" to player
  274. stop
  275. else:
  276. send "{@Teamer.tag} &5 &4Nie Masz Uprawnien." to player
  277. stop
  278. if arg 1 is "globalspawn":
  279. player is an op:
  280. set {punktglobalny} to location of player
  281. wait 0.2 second
  282. send "{@Teamer.tag} &5> &bUstawiles spawn Globalny" to player
  283. if {Teamer.LogCommand} is true:
  284. log "Gracz %player% uzyl Komendy /ustaw globalspawn" to "teamer-uzyte-komendy.txt"
  285. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/ustaw globalspawn &7!!" to the console
  286. loop 2 times:
  287. send "" to player
  288. stop
  289.  
  290. on rightclick on sign:
  291. if line 1 is "Teamer Red":
  292. player is an op:
  293. set line 1 to "{@Teamer.tag}"
  294. set line 2 to "&6Teleport"
  295. set line 3 to "&7-|&cRED&7|-"
  296. wait 0.2 second
  297. send "{@Teamer.tag} &5> &bPomyslnie stworzono tabliczke z teleportem do druzyny czerwonej !" to player
  298. stop
  299. if line 1 is "Teamer Blue":
  300. player is an op:
  301. set line 1 to "{@Teamer.tag}"
  302. set line 2 to "&6Teleport"
  303. set line 3 to "&7-|&3BLUE&7|-"
  304. wait 0.2 second
  305. send "{@Teamer.tag} &5> &bPomyslnie stworzono tabliczke z teleportem do druzyny niebieskiej !" to player
  306. stop
  307. if line 3 is "&7-|&3BLUE&7|-":
  308. line 2 is "&6Teleport":
  309. player has permission "teamer.default.blue" or "teamer.lider.blue":
  310. send "{@Teamer.tag}&3Zostaniesz Przeteleportowany za 3 Sekundy" to player
  311. wait 3 seconds
  312. if {punktblue} is set:
  313. teleport player to {punktblue}
  314. stop
  315. if {punktblue} is not set:
  316. send "{@Teamer.tag} &5> &4Nie ustawiono SpawnPointu druzyny &3BLUE!" to player
  317. stop
  318. else:
  319. send "{@Teamer.tag} &5> &cNie Masz Uprawnien." to player
  320. stop
  321. if line 3 is "&7-|&cRED&7|-":
  322. line 2 is "&6Teleport":
  323. player has permission "teamer.default.red" or "teamer.lider.red":
  324. send "{@Teamer.tag}&3Zostaniesz Przeteleportowany za 3 Sekundy" to player
  325. wait 3 seconds
  326. if {punktred} is not set:
  327. send "{@Teamer.tag} &5> &4Nie ustawiono SpawnPointu druzyny &cRED" to player
  328. stop
  329. if {punktred} is set:
  330. teleport player to {punktred}
  331. stop
  332. stop
  333. else:
  334. send "{@Teamer.tag} &5> &cNie Masz Uprawnien." to player
  335. stop
  336.  
  337. command /spawn:
  338. trigger:
  339. send "{@Teamer.tag} &5>&6Za 3 sekundy zostaniesz przeteleportowany" to player
  340. wait 3 seconds
  341. if {punktglobalny} is not set:
  342. send "{@Teamer.tag} &5> &4Nie zostal ustawiony Spawn Globalny!" to player
  343. stop
  344. if {punktglobalny} is set:
  345. teleport player to {punktglobalny}
  346. stop
  347.  
  348. command /dolacz [<text>]:
  349. trigger:
  350. if arg 1 is not set:
  351. send "&b&l|-----|{@Teamer.tag}&b&l|-----|" to player
  352. send "&5/dolacz red &6- &7 Dolaczasz do druzyny &cRED" to player
  353. send "&5/dolacz blue &6- &7Dolaczasz do druzyny &3BLUE" to player
  354. if {Teamer.LogCommand} is true:
  355. log "Gracz %player% uzyl Komendy /teamer blue" to "teamer-uzyte-komendy.txt"
  356. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/teamer blue &7!!" to the console
  357. loop 2 times:
  358. send "" to player
  359. stop
  360.  
  361. if arg 1 is "red":
  362. if {Teamer.Join.One.%player%} is true:
  363. send "{@Teamer.tag} &5> &7Za &c5 &7sekund dolaczysz do druzyny &cRED" to player
  364. wait 5 seconds
  365. execute console command "/pex user %name of player% add teamer.default.red"
  366. wait 0.2 second
  367. send "{@Teamer.tag} &5> &7Dolaczyles do druzyny &cRED" to player
  368. set {Teamer.Join.One.%player%} to false
  369. if {Teamer.LogCommand} is true:
  370. log "Gracz %player% uzyl Komendy /dolacz red" to "teamer-uzyte-komendy.txt"
  371. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/dolacz red &7!!" to the console
  372. stop
  373. else:
  374. send "{@Teamer.tag} &5> &7JESTES JUZ W JAKIEJS DRUZYNIE" to player
  375. stop
  376.  
  377. if arg 1 is "blue":
  378. if {Teamer.Join.One.%player%} is true:
  379. send "{@Teamer.tag} &5> &7Za &c5 &7sekund dolaczysz do druzyny &3BLUE"
  380. wait 5 seconds
  381. execute console command "/pex user %name of player% add teamer.default.blue"
  382. wait 0.2 second
  383. send "{@Teamer.tag} &5> &7Dolaczyles do druzyny &3BLUE" to player
  384. set {Teamer.Join.One.%player%} to false
  385. if {Teamer.LogCommand} is true:
  386. log "Gracz %player% uzyl Komendy /dolacz blue" to "teamer-uzyte-komendy.txt"
  387. send "{@Teamer.tag} &5> &7Gracz &6%player% &7uzyl komendy &5/dolacz blue &7!!" to the console
  388. stop
  389. else:
  390. send "{@Teamer.tag} &5> &7JESTES JUZ W JAKIEJS DRUZYNIE" to player
  391. stop
  392.  
  393.  
  394. # #
  395. # KONIEC SKRYPTU #
  396. # © - Copyrights 2014 for WujcioCreeper #
  397. # #
Advertisement
Add Comment
Please, Sign In to add comment