WujcioCreeper

Skript Lives Private 0.3

Jan 31st, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Licencja Dla Użytkowników Tego Skryptu !#
  2. #Zezwalam Na:#
  3. #1.Zmianę wyglądu tagu#
  4. #2.Zmianę wyglądu wiadomości#
  5. #Nie Zezwalam Na:#
  6. #1. Edycję Autora,Wersji,Komendy,Aliasu#
  7. #2. Kopiowanie kodu skryptu bez zgody autora#
  8. #3. Zmianę czegokolwiek nie wymienionego w części 'Zezwalam Na:'#
  9. # Wszelkie Prawa Zastrzeżone przez Polskie Prawo! #
  10.  
  11.  
  12.  
  13. options:
  14. tag: &7[&cZycia&7]
  15. komenda: zycia
  16. alias: lives
  17. author: MC Helper Team ©
  18. stable.version: Public 0.1
  19. dev.version: Private 0.3
  20. uzywana: Private 0.3
  21. variables:
  22. {zycia.%player%} = 3
  23. {zjedz.diament.prawyklik} = true
  24. {zjedz.diament.komenda} = false
  25. {smierc} = false
  26. on skript start:
  27. if {zjedz.diament.prawyklik} is true:
  28. send "&a-+=|=+- &cZycia &a-+=|=+-" to the console
  29. send "&b&lSkrypt Uruchomiono!" to the console
  30. send "&bDodawanie Zycia &6""Zjadaniem"" Diamentu &aUruchomione" to the console
  31. send "&bDodawanie Zycia &6 Komenda &cWylaczone" to the console
  32. send "&a-+=|=+- &cZycia &a-+=|+=-" to the console
  33. if {zjedz.diament.komenda} is true:
  34. send "&a-+=|=+- &cZycia &a-+=|=+-" to the console
  35. send "&b&lSkrypt Uruchomiono!" to the console
  36. send "&bDodawanie Zycia &6Komenda &aUruchomione" to the console
  37. send "&bDodawanie Zycia &6""Zjadaniem"" Diamentu &cWylaczone" to the console
  38. send "&a-+=|=+- &cZycia &a-+=|+=-" to the console
  39.  
  40. on first join:
  41. wait 5 seconds
  42. send "&bMasz Na Start &a%{zycia.%player%}% zyc&b! &4Uwazaj Na Siebie!"
  43. stop
  44.  
  45. on connect:
  46. if {smierc.%player%} is true:
  47. kick player due to "{@tag} &cMasz Nadal Bana!"
  48. else:
  49. stop
  50.  
  51. on join:
  52. wait 5 second
  53. send "&bMasz Jeszcze &a%{zycia.%player%}% zyc&b! &4Uwazaj Na Siebie!" to player
  54. stop
  55.  
  56. on death of player:
  57. {zycia.%player%} is 1 or 2 or 3 or 4 or 5:
  58. send "{@tag} &4Straciles 1 Zycie..." to player
  59. remove 1 from {zycia.%player%}
  60. loop all players:
  61. send "{@tag} &4Gracz &6%player% &4stracil 1 zycie!" to loop-player
  62. execute console command "/playsound random.classic_hurt %loop-player%"
  63. {zycia.%player%} is smaller than 1:
  64. execute console command "/playsound random.anvil_break %player%"
  65. send "{@tag} &4Pozegnaj Sie z Serwerem. Masz 30 sekund"
  66. set {_czas.%player%} to 30
  67. while {czas.%player%} is smaller than 31:
  68. execute console command "/playsound mob.ghast.affectionate_scream %player%"
  69. remove 1 from {_czas}
  70. wait 1 second
  71. while {_czas} is between 1 and -1:
  72. set {smierc.%player%} to true
  73. kick player due to "{@tag} &cStraciles Wszystkie Zycia! Masz Bana na 3 Dni, lub czekaj az ktos odda ci zycie !"
  74. wait 3 days
  75. set {smierc.%player%} to false
  76. loop all players:
  77. send "{@tag} &4Gracz &6%player% &4stracil wszyskie zycia!" to loop-player
  78. execute console command "/playsound ambient.weather.thunder %loop-player%"
  79. exit loop
  80.  
  81. command /{@komenda} [<text>] [<offlineplayer>]:
  82. aliases: {@alias}
  83. trigger:
  84. if arg 1 is not set:
  85. if arg 2 is not set:
  86. send "&a-+=|=+- &cZycia &a-+=|+-" to player
  87. send "&3+-+-+-&4&l|&6POMOC&4&l|&3-+-+-+"
  88. send "&a/zycia info &b- &cWyswietla Informacje dot. Skryptu"
  89. if {zjedz.diament.komenda} is true:
  90. send "&a/zycia zjedz &b- &cDodaje Jedno Zycie za 1 Diament [Jezeli Ustawione w Configu]"
  91. else:
  92. send "&aNacisnij Prawy Przycisk Myszy trzymajac Diament, aby otrzymac dodatkowe zycie!"
  93. send "&a/zycia ilosc &b- &cTwoja Ilosc Zyc"
  94. send "&a/zycia oddaj &5[nick gracza] &b- &cOddajesz 1 Zycie [1 Zycie twoje = 1 Zycie kolegi]."
  95. if arg 1 is "info":
  96. arg 2 is not set:
  97. player has permission "zycia.admin":
  98. send "&a-+=|=+- &cZycia &a-+=|=+-"
  99. send "&3+-+-+-&4&l|&bINFO&4&l|&3-+-+-+"
  100. send "&5&lAutorzy: &b{@author}"
  101. send "&aWersja Uzywana: &c{@uzywana}"
  102. if {zjedz.diament.prawyklik} is true:
  103. send "&b1 Zycie = ""Zjedzenie"" Diamentu - &aUruchomione"
  104. else:
  105. send "&b1 Zycie = ""Zjedzenie"" Diamentu - &cZdezaktywowane"
  106. if {zjedz.diament.komenda} is true:
  107. send "&b1 Zycie = Uzycie Komendy - &aUruchomiono"
  108. else:
  109. send "&b1 Zycie = Uzycie Komendy - &cZdezaktywowane"
  110. send "&a-+=|=+- &cZycia &a-+=|=+-"
  111. else:
  112. send "&cNie masz uprawnien do zobaczenia sekcji konfiguracji"
  113. if arg 1 is "zjedz":
  114. {jedzenie.komenda} is true:
  115. if {zycia.%player%} is smaller than 6:
  116. remove 1 diamond from player
  117. wait 1 second
  118. add 1 to {zycia.%player%}
  119. send "{@tag} &bDodano 1 Zycie" to player
  120. stop
  121. else:
  122. wait 1 second
  123. send "{@tag} &cOsiagneles Limit Zyc!" to player
  124. stop
  125. else:
  126. wait 1 second
  127. send "{@tag} &4WYLACZONO DODAWANIE ZYC [Wykonawca Gracz] ZA POMOCA KOMENDY!" to player
  128. stop
  129. if arg 1 is "ilosc":
  130. if {zycia.%player%} is 1:
  131. send "&a-+=|=+- &cZycia &a-+=|=+-" to player
  132. send "&b&lMasz &3&l>>|&a%{zycia.%player%}%&3&l|<< &b&lzycie" to player
  133. send "&a-+=|=+- &cZycia &a-+=|=+-" to player
  134. stop
  135. if {zycia.%player%} is 2 or 3 or 4:
  136. send "&a-+=|=+- &cZycia &a-+=|=+-" to player
  137. send "&b&lMasz &3&l>>|&a%{zycia.%player%}%&3&l|<< &b&lzycia" to player
  138. send "&a-+=|=+- &cZycia &a-+=|=+-" to player
  139. stop
  140. if {zycia.%player%} is 5:
  141. send "&a-+=|=+- &cZycia &a-+=|=+-" to player
  142. send "&b&lMasz &3&l>>|&a%{zycia.%player%}%&3&l|<< &b&lzyc" to player
  143. send "&a-+=|=+- &cZycia &a-+=|=+-" to player
  144. stop
  145. if arg 1 is "oddaj":
  146. arg 2 is set:
  147. if {zycia.%player%} is smaller than 3:
  148. send "{@tag} &bMasz za malo zyc aby oddac mu zycie!" to player
  149. send "{@tag} &bGracz %player% chcial ci oddac zycie, ale ma ich za malo" to arg 2
  150. stop
  151. if {zycia.%arg 2%} is larger than 4:
  152. send "{@tag} &bTen Gracz osiagnal limit zyc" to player
  153. send "{@tag} &bGracz &6%player% &bchcial ci oddac 1 zycie, ale osiagneles juz limit" to arg 2
  154. stop
  155. else:
  156. send "&bDales &a1 zycie &bgraczowi &6%arg 2%" to player
  157. remove 1 from {zycia.%player%}
  158. add 1 to {zycia.%arg 2%}
  159. send "&bGracz &6%player% &boddal ci &a1 zycie" to arg 2
  160. set {smierc.%arg 2%} to false
  161. stop
  162.  
  163. on rightclick holding diamond:
  164. if {zycia.%player%} is larger than 4:
  165. send "{@tag} &bOsiagneles Limit Zyc."
  166. stop
  167. else:
  168. remove 1 diamond from player
  169. add 1 to {zycia.%player%}
  170. send "{@tag} &bDodales sobie &a1 zycie&b."
  171. stop
Add Comment
Please, Sign In to add comment