Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Skrypt na pojedynki


SirCiastko

Rekomendowane odpowiedzi

Opublikowano

 

 

  • Hobby:• Minecraft, Pluginy, Skrypty, CS:GO, YT •

Skoro piszesz pluginy oraz skrypty to sam tego nie zrobisz? xD

 

Mniej wiecej, nie bede ci pisal calego bo to jest trudne i pochlania duzo czasu, juz ci duzo trudnego napisalem;

on damage:
	victim is player
	attacker is player
	if {pojedynek::%attacker%} is not set:
		if {pojedynek::%victim%} is not set:
			send "gracz %attacker% wyslal ci prosbe o pojedynek" to victim
			send "wyslano prosbe o pojedynek do %victim%" to attacker
			set {pojedynek::%attacker%} to "wait"
			set {pojedynek::%victim%} to "wait"
			set {_victim} to victim
			cancel event
	if {pojedynek::%victim%} is "wait"
		cancel event
		if {_victim} is attacker:
			send "zaakceptowano!" to attacker
			send "zaakceptowano!" to victim
			set {walka::%attacker%} to true
			set {walka::%victim%} to true
			set {_attacker} to attacker
			set {_victim2} to victim
		else:
			send "wyslales juz prosbe do tego gracza!"
	if {walka::%attacker%} is true:
		if victim is not {_attacker}:
			cancel event
			
on death:
	if {walka::%player%} is true:
		delete {back::%player%}
		set {back::%player%} to location of player
		set {walka::%player%} to false
		clear {pojedynek::%player%}
                broadcast "gracz %victim% zostal pokonany przez %attacker%, zycie atakujacego: %health of attacker%"
		
on respawn:
	if {back::%player%} is set:
		teleport player to {back::%player%}
		
#takie tam 5 minut XDD

 

 

JAVA <3

 

Opublikowano

No to, raczej nikt ci tego nie zrobi, nigdzie takiego pluginu/skryptu nie ma w internecie

 

pss podaj errory

 

 

JAVA <3

 

Opublikowano

No to, raczej nikt ci tego nie zrobi, nigdzie takiego pluginu/skryptu nie ma w internecie

 

pss podaj errory

1c02921f2133b.pngkiedys byla cala paczka z pojedynkami, lecz nwm czemu zostala usunieta z yt

sa 2 skrypty na necie ale nie dzialaja tez

Opublikowano

poprawione + znaleziony skrypt w necie (fhói błędów było + nie mozna bylo bic zaproszonego, a  zaproszony mogl bic);

https://hastebin.com/yozoresuro.vbs
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 "world":
			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 1 volume 5
								play raw sound "note.pling" at victim with pitch 1 volume 5
								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!"
			if {duel::status::%attacker%} is "countdown":
				cancel event
on death of player:
	if attacker is a player:
		if attacker is in world "world":
			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 "world"
			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 "world":
			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

 

 

JAVA <3

 

Opublikowano

Działa, bo sam testowałem na localhoście.

 

Na pewno świat ,w którym zapraszasz gracza do "walki" ma nazwe "world"?

 

 

JAVA <3

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...