WujcioCreeper

Skript Lives

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