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