Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- tag: &7[&cZycia&7]
- komenda: zycia
- alias: lives
- variables:
- {zycia.%player%} = 3
- {zjedz.diament.prawyklik} = true
- {zjedz.diament.komenda} = false
- {smierc} = false
- on skript start:
- if {zjedz.diament.prawyklik} is true:
- send "&a-+=|=+- &cZycia &a-+=|=+-" to the console
- send "&b&lSkrypt Uruchomiono!" to the console
- send "&bDodawanie Zycia &6""Zjadaniem"" Diamentu &aUruchomione" to the console
- send "&bDodawanie Zycia &6 Komenda &cWylaczone" to the console
- send "&a-+=|=+- &cZycia &a-+=|+=-" to the console
- if {zjedz.diament.komenda} is true:
- send "&a-+=|=+- &cZycia &a-+=|=+-" to the console
- send "&b&lSkrypt Uruchomiono!" to the console
- send "&bDodawanie Zycia &6Komenda &aUruchomione" to the console
- send "&bDodawanie Zycia &6""Zjadaniem"" Diamentu &cWylaczone" to the console
- send "&a-+=|=+- &cZycia &a-+=|+=-" to the console
- on first join:
- wait 5 seconds
- send "&bMasz Na Start &a%{zycia.%player%}% zyc&b! &4Uwazaj Na Siebie!"
- stop
- on connect:
- if {smierc} is true:
- kick player due to "{@tag} &cMasz Nadal Bana!"
- else:
- stop
- on join:
- wait 5 second
- send "&bMasz Jeszcze &a%{zycia.%player%}% zyc&b! &4Uwazaj Na Siebie!" to player
- stop
- on death player:
- {zycia.%player%} is 1 or 2 or 3 or 4 or 5:
- send "{@tag} &4Straciles 1 Zycie..." to player
- remove 1 from {zycia.%player%}
- loop all players:
- send "{@tag} &4Gracz &6%player% &4stracil 1 zycie!" to loop-player
- execute console command "/playsound random.classic_hurt %loop-player%"
- {zycia.%player%} is smaller than 1:
- execute console command "/playsound random.anvil_break %player%"
- send "{@tag} &4Pozegnaj Sie z Serwerem. Masz 30 sekund"
- set {_czas.%player%} to 30
- while {czas.%player%} is smaller than 31:
- execute console command "/playsound mob.ghast.affectionate_scream %player%"
- remove 1 from {_czas}
- wait 1 second
- while {_czas} is between 1 and -1:
- set {smierc} to true
- kick player due to "{@tag} &cStraciles Wszystkie Zycia! Masz Bana na 3 Dni, lub czekaj az ktos odda ci zycie !"
- ban player
- wait 3 days
- unban player
- loop all players:
- send "{@tag} &4Gracz &6%player% &4stracil wszyskie zycia!" to loop-player
- execute console command "/playsound ambient.weather.thunder %loop-player%"
- exit loop
- command /{@komenda} [<text>] [<offlineplayer>]:
- aliases: {@alias}
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- send "&a-+=|=+- &cZycia &a-+=|+-" to player
- send "&3+-+-+-&4&l|&6POMOC&4&l|&3-+-+-+"
- send "&a/zycia info &b- &cWyswietla Informacje dot. Skryptu"
- if {zjedz.diament.komenda} is true:
- send "&a/zycia zjedz &b- &cDodaje Jedno Zycie za 1 Diament [Jezeli Ustawione w Configu]"
- else:
- send "&aNacisnij Prawy Przycisk Myszy trzymajac Diament, aby otrzymac dodatkowe zycie!"
- send "&a/zycia ilosc &b- &cTwoja Ilosc Zyc"
- send "&a/zycia oddaj &5[nick gracza] &b- &cOddajesz 1 Zycie [1 Zycie twoje = 1 Zycie kolegi]."
- if arg 1 is "info":
- arg 2 is not set:
- player has permission "zycia.admin":
- send "&a-+=|=+- &cZycia &a-+=|=+-"
- send "&3+-+-+-&4&l|&bINFO&4&l|&3-+-+-+"
- if {zjedz.diament.prawyklik} is true:
- send "&b1 Zycie = ""Zjedzenie"" Diamentu - &aUruchomione"
- else:
- send "&b1 Zycie = ""Zjedzenie"" Diamentu - &cZdezaktywowane"
- if {zjedz.diament.komenda} is true:
- send "&b1 Zycie = Uzycie Komendy - &aUruchomiono"
- else:
- send "&b1 Zycie = Uzycie Komendy - &cZdezaktywowane"
- send "&a-+=|=+- &cZycia &a-+=|=+-"
- else:
- send "&cNie masz uprawnien do zobaczenia sekcji konfiguracji"
- if arg 1 is "zjedz":
- {jedzenie.komenda} is true:
- if {zycia.%player%} is smaller than 6:
- remove 1 diamond from player
- wait 1 second
- add 1 to {zycia.%player%}
- send "{@tag} &bDodano 1 Zycie" to player
- stop
- else:
- wait 1 second
- send "{@tag} &cOsiagneles Limit Zyc!" to player
- stop
- else:
- wait 1 second
- send "{@tag} &4WYLACZONO DODAWANIE ZYC [Wykonawca Gracz] ZA POMOCA KOMENDY!" to player
- stop
- if arg 1 is "ilosc":
- if {zycia.%player%} is 1:
- send "&a-+=|=+- &cZycia &a-+=|=+-" to player
- send "&b&lMasz &3&l>>|&a%{zycia.%player%}%&3&l|<< &b&lzycie" to player
- send "&a-+=|=+- &cZycia &a-+=|=+-" to player
- stop
- if {zycia.%player%} is 2 or 3 or 4:
- send "&a-+=|=+- &cZycia &a-+=|=+-" to player
- send "&b&lMasz &3&l>>|&a%{zycia.%player%}%&3&l|<< &b&lzycia" to player
- send "&a-+=|=+- &cZycia &a-+=|=+-" to player
- stop
- if {zycia.%player%} is 5:
- send "&a-+=|=+- &cZycia &a-+=|=+-" to player
- send "&b&lMasz &3&l>>|&a%{zycia.%player%}%&3&l|<< &b&lzyc" to player
- send "&a-+=|=+- &cZycia &a-+=|=+-" to player
- stop
- if arg 1 is "oddaj":
- arg 2 is set:
- if {zycia.%player%} is smaller than 3:
- send "{@tag} &bMasz za malo zyc aby oddac mu zycie!" to player
- send "{@tag} &bGracz %player% chcial ci oddac zycie, ale ma ich za malo" to arg 2
- stop
- if {zycia.%arg 2%} is larger than 4:
- send "{@tag} &bTen Gracz osiagnal limit zyc" to player
- send "{@tag} &bGracz &6%player% &bchcial ci oddac 1 zycie, ale osiagneles juz limit" to arg 2
- stop
- else:
- send "&bDales &a1 zycie &bgraczowi &6%arg 2%" to player
- remove 1 from {zycia.%player%}
- add 1 to {zycia.%arg 2%}
- send "&bGracz &6%player% &boddal ci &a1 zycie" to arg 2
- stop
- on rightclick holding diamond:
- if {zycia.%player%} is larger than 4:
- send "{@tag} &bOsiagneles Limit Zyc."
- stop
- else:
- remove 1 diamond from player
- add 1 to {zycia.%player%}
- send "{@tag} &bDodales sobie &a1 zycie&b."
- stop
Add Comment
Please, Sign In to add comment