Skocz do zawartości
  • 0

problem z skryptem pvp


fabi19876

Pytanie

witam mam problem z skryptem pvp jest 8 błenduw i ktoś wie jak je naprawić

zdjencia błenduw

Bez-tytu-u.png

 

Bez-tytu-u.png

 

 

skrypt:

#
#PvP
options:
	countdown: 3
 
variables:
	{duel::status::%player%} = "before"
	{duel::player::%player%::kill} = 0
	{duel::player::%player%::death} = 0
 
on damage of player:
	if attacker is a player:
		if attacker is in world "pvp":
			if {duel::status::%attacker%} is "before":
				cancel event
				if {duel::status::%victim%} is "before":
					if {duel::opponent::%victim%} is "%attacker%":
						set {duel::status::%attacker%} to "countdown"
						set {duel::status::%victim%} to "countdown"
						set {duel::opponent::%victim%} to "%attacker%"
						set {_sec%attacker%} to {@countdown}
						hide all players from attacker
						hide all players from victim
						reveal victim to attacker
						reveal attacker to victim
						loop {@countdown} times:
							if {duel::status::%attacker%} is "countdown":
								send "&a&lPrzygotuj sie! Walka z &6&l%victim% &a&lZacznie sie za &6&l%{_sec%attacker%}% &a&lsek!" to attacker
								send "&a&lPrzygotuj sie! Walka z &6&l%attacker% &a&lZacznie sie za &6&l%{_sec%attacker%}% &a&lsek!" to victim
								play raw sound "note.pling" at attacker with pitch 69 volume 100
	                            play raw sound "note.pling" at player with pitch 69 volume 100
								wait 1 seconds
								remove 1 from {_sec%attacker%}
							else:
								exit loop
						if {duel::status::%attacker%} is "countdown":
							play raw sound "note.pling" at attacker with pitch 2 volume 5
							play raw sound "note.pling" at victim with pitch 2 volume 5
							set {duel::status::%attacker%} to "during"
							set {duel::status::%victim%} to "during"
					else if {duel::opponent::%victim%} is not "%attacker%":
						if {duel::opponent::%attacker%} is not "%victim%":
							send "&2Zaproszenie do walki zostalo wyslane do gracza &6&l%victim%" to attacker
							send "&2Zostales zaproszony do walki przez gracza &6&l%attacker%" to victim
							set {duel::opponent::%attacker%} to "%victim%"
						else if {duel::opponent::%attacker%} is "%victim%":
							send "&2Ten gracz otrzymal juz zaproszenie do walki!" to attacker
				else if {duel::status::%victim%} is "during" or "countdown":
					send "&2Ten gracz jest juz podczas walki!" to attacker
			if {duel::status::%attacker%} is "countdown":
				cancel event
on death of player:
	if attacker is a player:
		if attacker is in world "pvp":
			launch flickering trailing ball firework colored white at attacker timed 2
			clear drops
			set {duel::status::%attacker%} to "before"
			set {duel::status::%victim%} to "before"
			set {duel::opponent::%victim%} to "none"
			set {duel::opponent::%attacker%} to "none"
			add 1 to {duel::player::%attacker%::kill}
			add 1 to {duel::player::%victim%::death}
			reveal all players to attacker
			reveal all players to victim
			send "&6&l%attacker% &c&lzabil &6&l%victim% &7&l(%attacker's health%&4&l❤&7&l)" to all players in world "pvp"
			heal attacker
on quit:
	reveal all players to {duel::status::%{duel::opponent::%player%}%}
	set {duel::status::%player%} to "before"
	set {duel::status::%{duel::opponent::%player%}%} to "before"
	set {duel::opponent::%{duel::opponent::%player%}%} to "none"
	set {duel::opponent::%player%} to "none"
every 1 seconds:
	loop all players:
		if loop-player is in world "pvp":
			display board named "  &2STATYSTYKI" to loop-player
			make score "&eZabojstwa:" in board of loop-player to {duel::player::%loop-player%::kill}
			make score "&eZgony:" in board of loop-player to {duel::player::%loop-player%::death}
			move display of loop-player to sidebar

 

Odnośnik do komentarza
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
W dniu 22.08.2021 o 21:26, fabi19876 napisał:

ktura linijka

jak podaje zrzut ekranu błędów, 31 linijka

 

W dniu 22.08.2021 o 21:26, fabi19876 napisał:

ktura

która*

W dniu 20.08.2021 o 23:28, fabi19876 napisał:

błenduw

błędów*

 

ps. prosze bardzo może ci się przyda: 

 

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...