Guest User

Untitled

a guest
Sep 24th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. options:
  2. tag: &8[&6TEAM&8] #TAG pluginu
  3. variables:
  4. {gildia.%player%.status} = false
  5. {gildia.%player%.smr} = 0
  6. {gildia.%player%.zab} = 0
  7.  
  8.  
  9. command /gildia [<text>] [<text>] [<text>]:
  10. aliases: g, team
  11. trigger:
  12. if argument 1 is not set:
  13. message "---------- &3Diaxowo.pl&f----------"
  14. message "&8/&cteam zaloz &8[&cTag&8] [&cNazwa&8]&8 - &cZaklada team"
  15. message "&8/&cteam dolacz &8[&cTag&8]&8 - &cDolacza do teamu"
  16. message "&8/&cteam opusc &8- &cOpuszcza team"#
  17. message "&8/&cteam zapros &8[&cNick&8]&8 - &cZaprasza gracza do teamu"
  18. message "&8/&cteam wypros &8[&cNick&8]&8 - &cWyprasza gracza z teamu"
  19. message "&8/&cteam info &8[&cNick&8] &8 - &cInformacje o graczu"
  20. message "&f---------- &cRage,pl&f----------"
  21. argument 1 is "zaloz":
  22. if argument 2 is set:
  23. if argument 3 is set:
  24. if {gildia.%argument 2%.tag} is not set:
  25. if {gildia.%argument 3%.nazwa} is not set:
  26. if player has any:
  27. if {gildia.%player%.status} is false:
  28. set {gildia.%player%.status} to true
  29. set {gildia.%player%.tag} to argument 2
  30. set {gildia.%argument 2%.tag} to argument 2
  31. set {gildia.%argument 2%.nazwa} to argument 3
  32. set {gildia.%argument 2%.dom} to location of player
  33. set {gildia.%argument 2%.lider} to player
  34. message "{@tag} &7Utworzyles team &8%argument 3% &7o tagu &8%argument 2%"
  35. else:
  36. message "{@tag} &7Jestes juz w teamie!"
  37. else:
  38. message "{@tag} &7Aby utworzyc team, zdobadz potrzebne materialy!"
  39. else:
  40. message "{@tag} &7Istnieje juz team o nazwie &8%argument 3%"
  41. else:
  42. message "{@tag} &7Istnieje juz team o tagu &8%argument 2%"
  43. else:
  44. message "{@tag} &7Uzycie: &8/team zaloz [Tag] [Nazwa]"
  45. else:
  46. message "{@tag} &7Uzycie: &8/team zaloz [Tag] [Nazwa]"
  47. argument 1 is "dolacz":
  48. if argument 2 is set:
  49. if {gildia.%argument 2%.tag} is set:
  50. if {gildia.%player%.zapro} is argument 2:
  51. if {gildia.%player%.status} is false:
  52. set {gildia.%player%.status} to true
  53. delete {gildia.%player%.zapro}
  54. set {gildia.%player%.tag} to argument 2
  55. message "{@tag} &7Dolaczyles do teamu &8%{gildia.%argument 2%.nazwa}% &7o tagu &8%argument 2%"
  56. else:
  57. message "{@tag} &7Jestes juz w teamie!"
  58. else:
  59. message "{@tag} &7Ten team wcale Cie nie zaprosila!"
  60. else:
  61. message "{@tag} &7Nie znaleziono teamu o tagu &8%argument 2%"
  62. else:
  63. message "{@tag} &7Podaj tag teamu!"
  64. argument 1 is "opusc":
  65. if {gildia.%player%.status} is true:
  66. set {gildia.%player%.status} to false
  67. delete {gildia.%player%.tag}
  68. message "{@tag} &7Opusciles team"
  69. stop
  70. else:
  71. message "{@tag} &7Nie jestes w zadnym teamie!"
  72. argument 1 is "info":
  73. if argument 2 is not set:
  74. message "&3~~~~&a %player% &3~~~~"
  75. if {gildia.%player%.status} is true:
  76. message " &7Team: &f[&8%{gildia.%player%.tag}%&f]&b %{gildia.%{gildia.%player%.tag}%.nazwa}%"
  77. else:
  78. message " &7Team: &f-"
  79. message " &7Zabojstwa: &8%{gildia.%player%.zab}% "
  80. message " &7Smierci: &8%{gildia.%player%.smr}% "
  81. if argument 2 is set:
  82. if {gildia.%argument 2%.status} is true or false:
  83. message "&3~~~~&a %argument 2% &3~~~~"
  84. if {gildia.%argument 2%.status} is true:
  85. message " &7Gildia: &f[&8%{gildia.%argument 2%.tag}%&f]&b %{gildia.%{gildia.%argument 2%.tag}%.nazwa}%"
  86. else:
  87. message " &7Team: &f-"
  88. message " &7Zabojstwa: &8%{gildia.%argument 2%.zab}% "
  89. message " &7Smierci: &8%{gildia.%argument 2%.smr}%"
  90. else:
  91. message "{@tag} &7Nie znaleziono gracza o nicku &8%argument 2%"
  92. argument 1 is "zapros":
  93. if {gildia.%{gildia.%player%.tag}%.lider} is player:
  94. if argument 2 is set:
  95. set {gildia.%argument 2%.zapro} to {gildia.%player%.tag}
  96. message "{@tag} &7Zaprosiles gracza &8%argument 2%"
  97. else:
  98. message "{@tag} &7Podaj nick gracza!"
  99. else:
  100. message "{@tag} &7Aby zapraszac graczy musisz byc liderem gildi!"
  101. argument 1 is "wypros":
  102. if {gildia.%{gildia.%player%.tag}%.lider} is player:
  103. if argument 2 is set:
  104. if {gildia.%argument 2%.tag} is {gildia.%player%.tag}:
  105. set {gildia.%argument 2%.status} to false
  106. delete {gildia.%argument 2%.tag}
  107. message "{@tag} &7Wyrzuciles gracza &8%argument 2% &7ze swojego teamu!"
  108. stop
  109. else:
  110. message "{@tag} &7Nie znaleziono gracza o nicku &8%argument 2%"
  111. else:
  112. message "{@tag} &7Podaj nick gracza!"
  113. else:
  114. message "{@tag} &7Aby zapraszac graczy musisz byc liderem teamu!"
  115.  
  116. on damage:
  117. if {tp.%victim%} is true:
  118. set {tp.%victim%} to false
  119. stop
  120. on damage:
  121. if {gildia.%attacker%.tag} is {gildia.%victim%.tag}:
  122. cancel event
  123. message "{@tag} &7Nie mozesz bic &8%victim%" to attacker
  124. on death:
  125. add 1 to {gildia.%attacker%.zab}
  126. add 1 to {gildia.%player%.smr}
  127. on logout:
  128. if {gildia.%{gildia.%player%.tag}%.lider} is player:
  129. set {gildia.%player%.lider} to true
  130. on join:
  131. if {gildia.%player%.lider} is true:
  132. set {gildia.%{gildia.%player%.tag}%.lider} to player
Advertisement
Add Comment
Please, Sign In to add comment