HugoZvPlayZ

RankingZ

Oct 27th, 2013
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.61 KB | None | 0 0
  1. #========================================================================================================#
  2. # LICENCJA #
  3. #========================================================================================================#
  4. # ZAKAZ: #
  5. # * Modyfikowania treści skryptu #
  6. # * Przywłaszczania sobie autorstwa skryptu #
  7. # * Zarabiania na skrypcie #
  8. # * Udostepniania skryptu w swoich paczkach serwerowych #
  9. # * Usuwania tresci zawierajacych informacje o autorze #
  10. # * Podszywania sie pod autora #
  11. # * Udostepniania skryptu w paczkach plikow serwerowch itp #
  12. # * Usuwania tresci zawierajacych autora #
  13. # * Dopisywania wszelkich dodatków typu strona www #
  14. #========================================================================================================#
  15. # POZWOLENIA: #
  16. # * Modyfikowanie wiadomości skryptu na wlasne potrzeby #
  17. # * Dopisywanie fragmentow na wlasne potrzeby #
  18. #========================================================================================================#
  19. # Mylnie odczytana licencja nie zwalnia z przestrzegania jej. #
  20. #========================================================================================================#
  21.  
  22. #========================================================================================================#
  23. # Skrypt stworzony przez HugoZvPlayZ #
  24. # Nazwa: RankingZ #
  25. # Wersja: 0.2 #
  26. # Skript: 2.0.2 #
  27. #========================================================================================================#
  28.  
  29. #--------------------------------------------------------------------------------------------------------#
  30. # WYMAGANIA #
  31. #--------------------------------------------------------------------------------------------------------#
  32. # Pluginy: #
  33. # ● Skript #
  34. #--------------------------------------------------------------------------------------------------------#
  35. #--------------------------------------------------------------------------------------------------------#
  36. # USTAWIENIA #
  37. #--------------------------------------------------------------------------------------------------------#
  38. options:
  39. # Tag Skryptu
  40. RankingZ.tag: &4&lRanking&0&lZ
  41. RankingZ.|: &7&l|
  42.  
  43. # Info | Wiadomosc po smierci gracza zabitego przez gracza | Zmienne: %victim% - ofiara | %attacker% - atakujacy | %{punkty}% - punkty
  44. RankingZ.msg.death.player.yes: &7Gracz &a%victim% &c(-%{punkty}%) &7zostal zabity przez gracza &a%attacker% &c(+%{punkty}%)
  45.  
  46. # Info | Wiadomosc po smierci gracza zabitego potwora | Zmienne: %victim% - ofiara | %attacker% - atakujacy | 50 - punkty
  47. RankingZ.msg.death.player.no: &7Gracz &a%victim% &c(-50) &7zostal zabity przez &a%attacker%
  48.  
  49. # Info | Ranking gracza zostal zresetowany Zmienne: %argument 2% - gracz resetu
  50. RankingZ.msg.reset: &7Punkty, fragi i zgony gracza &a%argument 2% &7zostaly zresetowane
  51.  
  52. # Info | Nie podales nazwy gracza
  53. RankingZ.msg.error.player: &4Nie podales nazwy gracza
  54.  
  55. # Info | Brak uprawnien
  56. RankingZ.msg.permission: &4Nie masz uprawnien
  57.  
  58. # Info | Reload skryptu
  59. RankingZ.msg.reload: &aSkrypt przeladowany pomyslnie
  60.  
  61. #--------------------------------------------------------------------------------------------------------#
  62. # UPRAWNIEIA #
  63. #--------------------------------------------------------------------------------------------------------#
  64. # /RankingZ pomoc ● Pomoc ● RankingZ.gracz | RankingZ.admin #
  65. # /RankingZ ranking [<player>] ● Ranking ● RankingZ.gracz | RankingZ.admin #
  66. # /RankingZ reset <player> ● Reset punktow, fragow i zgonow ● RankingZ.admin #
  67. # /RankingZ info ● Informacje ● RankingZ.gracz | RankingZ.admin #
  68. # /RankingZ reload ● Reload ● RankingZ.admin #
  69. # [] - opcjonalnie | <> - wymagane #
  70. #--------------------------------------------------------------------------------------------------------#
  71. #--------------------------------------------------------------------------------------------------------#
  72. # KOD #
  73. #--------------------------------------------------------------------------------------------------------#
  74. on first join:
  75. set {RankingZ.punkty.%player%} to 1000
  76. set {RankingZ.fragi.%player%} to 0
  77. set {RankingZ.zgony.%player%} to 0
  78. set {RankingZ.save.%player%} to true
  79.  
  80. on join:
  81. if {RankingZ.save.%player%} is false:
  82. set {RankingZ.punkty.%player%} to 1000
  83. set {RankingZ.fragi.%player%} to 0
  84. set {RankingZ.zgony.%player%} to 0
  85. set {RankingZ.save.%player%} to true
  86. if {RankingZ.save.%player%} is not set:
  87. set {RankingZ.punkty.%player%} to 1000
  88. set {RankingZ.fragi.%player%} to 0
  89. set {RankingZ.zgony.%player%} to 0
  90. set {RankingZ.save.%player%} to true
  91.  
  92. on death:
  93. if victim is player:
  94. if attacker is a player:
  95. add {RankingZ.punkty.%victim%}*0.30 to {RankingZ.punkty.%attacker%}
  96. remove {RankingZ.punkty.%victim%}*0.30 from {RankingZ.punkty.%victim%}
  97. add {RankingZ.punkty.%victim%}*0.30 to {punkty}
  98. broadcast "{@RankingZ.msg.death.player.yes}"
  99. set {punkty} to 0
  100. add 1 to {RankingZ.fragi.%attacker%}
  101. add 1 to {RankingZ.zgony.%victim%}
  102. message "&7Frag: &2+1" to attacker
  103. message "&7Zgon: &2+1" to victim
  104. else:
  105. remove 50 from {RankingZ.punkty.%victim%}
  106. add 1 to {RankingZ.zgony.%victim%}
  107. broadcast "{@RankingZ.msg.death.player.no}"
  108. message "&7Zgon: &2+1" to victim
  109.  
  110. on rightclick on player with sword:
  111. execute player command "RankingZ ranking %clicked player%"
  112.  
  113. command /RankingZ [<text>] [<text>]:
  114. aliases: rz, ranking
  115. trigger:
  116. if argument 1 is not set:
  117. execute player command "RankingZ pomoc"
  118. if argument 1 is "pomoc":
  119. if player has permission "RankingZ.gracz" or "RankingZ.admin":
  120. message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
  121. message "&e&l* &2/RankingZ pomoc &f- &7Pomoc"
  122. message "&e&l* &2/RankingZ ranking [<player>] &f- &7Ranking"
  123. message "&e&l* &2/RankingZ reset <player> &f- &7Reset punktow, fragow i zgonow"
  124. message "&e&l* &2/RankingZ info &f- &7Informacje"
  125. message "&e&l* &2/RankingZ reload &f- &7Reload"
  126. message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
  127. else:
  128. message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
  129. if argument 1 is "ranking":
  130. if player has permission "RankingZ.gracz" or "RankingZ.admin":
  131. if argument 2 is set:
  132. message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
  133. message "&e&l* &4&lGracz: &a&l%argument 2%"
  134. message "&e&l* &4&lPunkty: &a&l%{RankingZ.punkty.%argument 2%}%"
  135. message "&e&l* &4&lFragi: &a&l%{RankingZ.fragi.%argument 2%}%"
  136. message "&e&l* &4&lZgony: &a&l%{RankingZ.zgony.%argument 2%}%"
  137. message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
  138. else:
  139. message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
  140. message "&e&l* &4&lGracz: &a&l%player%"
  141. message "&e&l* &4&lPunkty: &a&l%{RankingZ.punkty.%player%}%"
  142. message "&e&l* &4&lFragi: &a&l%{RankingZ.fragi.%player%}%"
  143. message "&e&l* &4&lZgony: &a&l%{RankingZ.zgony.%player%}%"
  144. message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
  145. else:
  146. message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
  147. if argument 1 is "reset":
  148. if player has permission "RankingZ.admin":
  149. if argument 2 is set:
  150. set {RankingZ.punkty.%argument 2%} to 1000
  151. set {RankingZ.fragi.%argument 2%} to 0
  152. set {RankingZ.zgony.%argument 2%} to 0
  153. message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.reset}"
  154. else:
  155. message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.error.player}"
  156. else:
  157. message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
  158. if argument 1 is "info":
  159. if player has permission "RankingZ.gracz" or "RankingZ.admin":
  160. message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
  161. message "&e&l* &2&lSkrypt: &4&lRanking&0&lZ"
  162. message "&e&l* &2&lWersja: &c&l0.2"
  163. message "&e&l* &2&lAutor: &c&lHugoZvPlayZ"
  164. message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
  165. else:
  166. message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
  167. if argument 1 is "reload" or "rl":
  168. if player has permission "RankingZ.admin":
  169. execute console command "skript reload RankingZ"
  170. message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.reload}"
  171. else:
  172. message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
  173. #-------------------------------------------- Koniec skryptu --------------------------------------------#
  174. #------------------------------- © by HugoZvPlayZ - Strona: www.HvZ.ugu.pl ------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment