Skocz do zawartości
  • 0

Teleport odliczanie title


Pytanie

Witam, prosze o dodanie odliczania w titlu ze np. teleport nastapi za: 5 4 3 2 1 0 ...

command /tpaccept [<text>]:
	trigger:
		if {tpa::%player%::sendAsk} is set:
			set {_p} to {tpa::%player%::sendAsk}
			set {_p} to {_p} parsed as offlineplayer
			if {_p} is online:
				send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c5 &7sekund" for 1 seconds
				send "&8» &6%player% &7zaakceptowal twoja teleportacje" to {_p}
				send "&8» &7Teleportacja za &610&7 sekund nie, ruszaj sie" to {_p}
				send "&8» &7Zaakceptowales prosbe o teleportacje od &6%{_p}%"
				clear {tpa::%{_p}%::toTeleport}
				clear {tpa::%player%::toTeleport}
				clear {tpa::%{_p}%::sendAsk}
				clear {tpa::%player%::sendAsk}
				set {_x} to x-location of {_p}
				set {_y} to y-location of {_p}
				set {_z} to z-location of {_p}
				loop 4 times:
					if difference between x-location of {_p} and {_x} is larger than 0.5:
						send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
						stop
					if difference between y-location of {_p} and {_y} is larger than 0.5:
						send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
						stop
					if difference between z-location of {_p} and {_z} is larger than 0.5:
						send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
						stop
					wait 1 second
				teleport {_p} to player
				send player title "&2&lTeleportaja" with subtitle "&7Teleportacja przebiegla pomyslnie" for 1 seconds
				stop
			clear {tpa::%{_p}%::toTeleport}
			clear {tpa::%player%::toTeleport}
			clear {tpa::%{_p}%::sendAsk}
			clear {tpa::%player%::sendAsk}
			send "&4Blad: &cNie masz prosby o teleportacje"
			stop
		send "&4Blad: &cNie masz prosby o teleportacje"

 

Edytowane przez Wariat25
Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/
Udostępnij na innych stronach

20 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
set {_x} to 5
loop {_x} times:
	send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c%{_x}% &7sekund" for 2 seconds
	remove 1 from {_x}
	wait 1 second

Podmień to zamiast

send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c5 &7sekund" for 1 seconds

 

Edytowane przez HeezQ
Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236033
Udostępnij na innych stronach

  • 0
4 godziny temu, HeezQ napisał:

set {_x} to 5
loop {_x} times:
	send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c%{_x}% &7sekund" for 2 seconds
	remove 1 from {_x}
	wait 1 second

Podmień to zamiast


send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c5 &7sekund" for 1 seconds

 

Nie mam zbytnio pojecią jak to umiescic w kodzie moglbys to zrobić? bo jak dam tak to nie zbyt to ciekawie wyglada i bedzie zbugowane xD

command /tpaccept [<text>]:
	trigger:
		if {tpa::%player%::sendAsk} is set:
			set {_p} to {tpa::%player%::sendAsk}
			set {_p} to {_p} parsed as offlineplayer
			if {_p} is online:
			set {_x} to 5
			loop {_x} times:
				send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c%{_x}% &7sekund" for 2 seconds
				remove 1 from {_x}
				wait 1 second
				send "&8» &6%player% &7zaakceptowal twoja teleportacje" to {_p}
				send "&8» &7Teleportacja za &610&7 sekund nie, ruszaj sie" to {_p}
				send "&8» &7Zaakceptowales prosbe o teleportacje od &6%{_p}%"
				clear {tpa::%{_p}%::toTeleport}
				clear {tpa::%player%::toTeleport}
				clear {tpa::%{_p}%::sendAsk}
				clear {tpa::%player%::sendAsk}
				set {_x} to x-location of {_p}
				set {_y} to y-location of {_p}
				set {_z} to z-location of {_p}
				loop 4 times:
					if difference between x-location of {_p} and {_x} is larger than 0.5:
						send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
						stop
					if difference between y-location of {_p} and {_y} is larger than 0.5:
						send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
						stop
					if difference between z-location of {_p} and {_z} is larger than 0.5:
						send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
						stop
					wait 1 second
				teleport {_p} to player
				send player title "&2&lTeleportaja" with subtitle "&7Teleportacja przebiegla pomyslnie" for 1 seconds
				stop
			clear {tpa::%{_p}%::toTeleport}
			clear {tpa::%player%::toTeleport}
			clear {tpa::%{_p}%::sendAsk}
			clear {tpa::%player%::sendAsk}
			send "&4Blad: &cNie masz prosby o teleportacje"
			stop
		send "&4Blad: &cNie masz prosby o teleportacje"

 

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236047
Udostępnij na innych stronach

  • 0
command /tpaccept [<text>]:
	trigger:
		if {tpa::%player%::sendAsk} is set:
			set {_p} to {tpa::%player%::sendAsk} parsed as player
			set {_loc} to player's location
			set {_loc2} to {_p}'s location
			clear {tpa::%{_p}%::toTeleport}
			clear {tpa::%player%::toTeleport}
			clear {tpa::%{_p}%::sendAsk}
			clear {tpa::%player%::sendAsk}
			send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c5 &7sekund" for 1 seconds
			send "&8» &6%player% &7zaakceptowal twoja teleportacje" to {_p}
			send "&8» &7Teleportacja za &610&7 sekund nie, ruszaj sie" to {_p}
			send "&8» &7Zaakceptowales prosbe o teleportacje od &6%{_p}%"
			set {_time} to 5
			while difference between {_p}'s location and {_loc2} =< 0.2:
				if {_time} > 0:
					send {_p} title "&2&lTeleportacja" with subtitle "&a%{_time}% &6sekund" for 1 seconds
					remove 1 from {_time}
					wait 1 second
				else:
					teleport {_p} to {_loc}
					send player title "&2&lTeleportaja" with subtitle "&7Teleportacja przebiegla pomyslnie" for 1 seconds
					stop
			send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
			stop

 

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236049
Udostępnij na innych stronach

  • 0
2 godziny temu, xAxee napisał:

command /tpaccept [<text>]:
	trigger:
		if {tpa::%player%::sendAsk} is set:
			set {_p} to {tpa::%player%::sendAsk} parsed as player
			set {_loc} to player's location
			set {_loc2} to {_p}'s location
			clear {tpa::%{_p}%::toTeleport}
			clear {tpa::%player%::toTeleport}
			clear {tpa::%{_p}%::sendAsk}
			clear {tpa::%player%::sendAsk}
			send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c5 &7sekund" for 1 seconds
			send "&8» &6%player% &7zaakceptowal twoja teleportacje" to {_p}
			send "&8» &7Teleportacja za &610&7 sekund nie, ruszaj sie" to {_p}
			send "&8» &7Zaakceptowales prosbe o teleportacje od &6%{_p}%"
			set {_time} to 5
			while difference between {_p}'s location and {_loc2} =< 0.2:
				if {_time} > 0:
					send {_p} title "&2&lTeleportacja" with subtitle "&a%{_time}% &6sekund" for 1 seconds
					remove 1 from {_time}
					wait 1 second
				else:
					teleport {_p} to {_loc}
					send player title "&2&lTeleportaja" with subtitle "&7Teleportacja przebiegla pomyslnie" for 1 seconds
					stop
			send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
			stop

 

[20:39:14 ERROR]: '<...>< 0.2' can only accept a single object, not more (test.sk, line 117: while difference between {_p}'s location and {_loc2} =< 0.2:')

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236066
Udostępnij na innych stronach

  • 0
28 minut temu, Wariat25 napisał:

[20:39:14 ERROR]: '<...>< 0.2' can only accept a single object, not more (test.sk, line 117: while difference between {_p}'s location and {_loc2} =< 0.2:')

Zamień difference na distance 

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236072
Udostępnij na innych stronach

  • 0
command /tpa [<player>]:
	trigger:
		if arg is not set:
			send "&7Poprawne uzycie: tpa player"
		else:
			set {tpa::%player-arg%} to player
			send "&7Wyslano prosbe o teleport"
			send "&7Gracz &6%player% &7chce sie do ciebie teleportowac wpisz /tpaccept" to player-arg
command /tpaccept [<player>]:
	trigger:
		if arg is not set:
			send "&7Poprawne uzycie: tpaccept player"
		else:
			if player-arg is {tpa::%player%}:
				clear {tpa::%player%}
				set {_l} to player-arg's location
				set {_s} to 0
				while distance between player and {_l} <= 0.2:
					send player-arg title "&6Teleportacja" with subtitle "&a%5-{_s}% &7sekund"
					add 1 to {_s}
					if {_s} >= 6:
						send player-arg title "&6Teleportacja" with subtitle "&aTeleportacja"
						send "&7Teleportacja gracza..."
						teleport player-arg to player
						stop
					wait 1 second
				send "&7Poruszyles sie! przerwano teleport!" to player-arg
				send "&7Gracz sie poruszyl! przerwano teleport!"
				send player-arg title "&6Teleportacja" with subtitle "&cPrzerwano!"

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236535
Udostępnij na innych stronach

  • 0
1 minutę temu, xAxee napisał:

command /tpa [<player>]:
	trigger:
		if arg is not set:
			send "&7Poprawne uzycie: tpa player"
		else:
			set {tpa::%player-arg%} to player
			send "&7Wyslano prosbe o teleport"
			send "&7Gracz &6%player% &7chce sie do ciebie teleportowac wpisz /tpaccept" to player-arg
command /tpaccept [<player>]:
	trigger:
		if arg is not set:
			send "&7Poprawne uzycie: tpaccept player"
		else:
			if player-arg is {tpa::%player%}:
				clear {tpa::%player%}
				set {_l} to player-arg's location
				set {_s} to 0
				while distance between player and {_l} <= 0.2:
					send player-arg title "&6Teleportacja" with subtitle "&a%5-{_s}% &7sekund"
					add 1 to {_s}
					if {_s} >= 6:
						send player-arg title "&6Teleportacja" with subtitle "&aTeleportacja"
						send "&7Teleportacja gracza..."
						teleport player-arg to player
						stop
					wait 1 second
				send "&7Poruszyles sie! przerwano teleport!" to player-arg
				send "&7Gracz sie poruszyl! przerwano teleport!"
				send player-arg title "&6Teleportacja" with subtitle "&cPrzerwano!"

 

Tylko ze ja mam takie zmienne nie wiem czy to zadziala bo wolalbym tak po mojemu wiesz o co chodzi

command /tpa [<text>]:
	trigger:
		if arg 1 is player:
			send "&4Blad: &cNie mozesz teleportowac sie do samego siebie!"
			stop
		if arg 1 is not set:
			send "&4Blad: &cMusisz podac nick!"
			stop
		set {_arg1} to arg 1
		set {_arg1} to {_arg1} parsed as offlineplayer
		if {_arg1} is online:
			send "&8» &6%player% &7prosi o teleportacje do ciebie" to {_arg1}
			send "&8» &7Aby zaakceptowac teleportacje wpisz &6/tpaccept" to {_arg1}
			send "&8» &7Aby odrzucic teleportacje wpisz &6/tpdeny" to {_arg1}
			send "&8» &7Wyslales prosbe o teleportacje do &6%{_arg1}%"
			set {tpa::%{_arg1}%::sendAsk} to name of player
			set {tpa::%player%::toTeleport} to {_arg1}
			stop
		if {_arg1} is offline:
			send "&4Blad: &6%{_arg1}% &cNie jest na serwerze!"
			stop

 

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236537
Udostępnij na innych stronach

  • 0
9 minut temu, Wariat25 napisał:

Tylko ze ja mam takie zmienne nie wiem czy to zadziala bo wolalbym tak po mojemu wiesz o co chodzi

co ma nie zadziałać? Przecież tam wysłałem ci dwie komendy /tpa i /tpaccept

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236540
Udostępnij na innych stronach

  • 0
1 minutę temu, xAxee napisał:

co ma nie zadziałać? Przecież tam wysłałem ci dwie komendy /tpa i /tpaccept

Tak ale chcialbym zeby tpaccept bylo zrobione pod moje tpa a nie te ktore ty napisales czyli chodzi mi o to czy mozesz zmienic zmienne w tpaccept pod moje /tpa

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236541
Udostępnij na innych stronach

  • 0
11 minut temu, Wariat25 napisał:

Tak ale chcialbym zeby tpaccept bylo zrobione pod moje tpa a nie te ktore ty napisales czyli chodzi mi o to czy mozesz zmienic zmienne w tpaccept pod moje /tpa

no ale co ci to zmienia ;/ napisz to zmienie w tym moim to co chcesz bo twoj ma za duzo syfu

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236543
Udostępnij na innych stronach

  • 0
3 minuty temu, xAxee napisał:

no ale co ci to zmienia ;/ napisz to zmienie w tym moim to co chcesz bo twoj ma za duzo syfu

A nie mozesz jakos mi tego przerobić zeby po prostu bylo odliczanie?

command /tpaccept [<text>]:
	trigger:
		if {tpa::%player%::sendAsk} is set:
			set {_p} to {tpa::%player%::sendAsk}
			set {_p} to {_p} parsed as offlineplayer
			if {_p} is online:
				send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c5 &7sekund" for 1 seconds
				send "&8» &6%player% &7zaakceptowal twoja teleportacje" to {_p}
				send "&8» &7Teleportacja za &610&7 sekund nie, ruszaj sie" to {_p}
				send "&8» &7Zaakceptowales prosbe o teleportacje od &6%{_p}%"
				clear {tpa::%{_p}%::toTeleport}
				clear {tpa::%player%::toTeleport}
				clear {tpa::%{_p}%::sendAsk}
				clear {tpa::%player%::sendAsk}
				set {_x} to x-location of {_p}
				set {_y} to y-location of {_p}
				set {_z} to z-location of {_p}
				loop 4 times:
					if difference between x-location of {_p} and {_x} is larger than 0.5:
						send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
						stop
					if difference between y-location of {_p} and {_y} is larger than 0.5:
						send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
						stop
					if difference between z-location of {_p} and {_z} is larger than 0.5:
						send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
						stop
					wait 1 second
				teleport {_p} to player
				send player title "&2&lTeleportaja" with subtitle "&7Teleportacja przebiegla pomyslnie" for 1 seconds
				stop
			clear {tpa::%{_p}%::toTeleport}
			clear {tpa::%player%::toTeleport}
			clear {tpa::%{_p}%::sendAsk}
			clear {tpa::%player%::sendAsk}
			send "&4Blad: &cNie masz prosby o teleportacje"
			stop
		send "&4Blad: &cNie masz prosby o teleportacje"

 lub zmienic to tak jak chce bo sie srednio znam a ty widze dobrze fest prosze

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236545
Udostępnij na innych stronach

  • 0
6 minut temu, Wariat25 napisał:

 lub zmienic to tak jak chce bo sie srednio znam a ty widze dobrze fest prosze

jak to zmienie to na jedno wyjdzie, napisz co ci dorobic do tamtego, tam wszytko działa iwg. nw tpdeny? wiadomości?

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236546
Udostępnij na innych stronach

  • 0
Teraz, xAxee napisał:

jak to zmienie to na jedno wyjdzie, napisz co ci dorobic do tamtego, tam wszytko działa iwg. nw tpdeny? wiadomości?

Tak, mam cos takiego i wszystko dziala 

command /tpa [<text>]:
	trigger:
		if arg 1 is player:
			send "&4Blad: &cNie mozesz teleportowac sie do samego siebie!"
			stop
		if arg 1 is not set:
			send "&4Blad: &cMusisz podac nick!"
			stop
		set {_arg1} to arg 1
		set {_arg1} to {_arg1} parsed as offlineplayer
		if {_arg1} is online:
			send "&8» &6%player% &7prosi o teleportacje do ciebie" to {_arg1}
			send "&8» &7Aby zaakceptowac teleportacje wpisz &6/tpaccept" to {_arg1}
			send "&8» &7Aby odrzucic teleportacje wpisz &6/tpdeny" to {_arg1}
			send "&8» &7Wyslales prosbe o teleportacje do &6%{_arg1}%"
			set {tpa::%{_arg1}%::sendAsk} to name of player
			set {tpa::%player%::toTeleport} to {_arg1}
			stop
		if {_arg1} is offline:
			send "&4Blad: &6%{_arg1}% &cNie jest na serwerze!"
			stop
on quit:
	if {tpa::%player%::toTeleport} is set:
		clear {tpa::%{tpa::%player%::toTeleport}%::toTeleport} 
		clear {tpa::%player%::toTeleport}
	if {tpa::%player%::sendAsk} is set:
		clear {tpa::%{tpa::%player%::sendAsk}%::sendAsk}
		clear {tpa::%player%::sendAsk}
command /tpaccept [<text>]:
	trigger:
		if {tpa::%player%::sendAsk} is set:
			set {_p} to {tpa::%player%::sendAsk} parsed as player
			set {_loc} to player's location
			set {_loc2} to {_p}'s location
			clear {tpa::%{_p}%::toTeleport}
			clear {tpa::%player%::toTeleport}
			clear {tpa::%{_p}%::sendAsk}
			clear {tpa::%player%::sendAsk}
			send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c5 &7sekund" for 1 seconds
			send "&8» &6%player% &7zaakceptowal twoja teleportacje" to {_p}
			send "&8» &7Teleportacja za &610&7 sekund nie, ruszaj sie" to {_p}
			send "&8» &7Zaakceptowales prosbe o teleportacje od &6%{_p}%"
			set {_time} to 5
			ewhile distance  between {_p}'s location and {_loc2} =< 0.2:
				if {_time} > 0:
					send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c%{_time}% &7sekund" for 1 seconds
					remove 1 from {_time}
					wait 1 second
				else:
					teleport {_p} to {_loc}
					send player title "&2&lTeleportaja" with subtitle "&7Teleportacja przebiegla pomyslnie" for 1 seconds
					stop
			send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds
			stop
		

command /tpdeny [<text>]:
	trigger:
		if {tpa::%player%::sendAsk} is set:
			set {_p} to {tpa::%player%::sendAsk}
			set {_p} to {_p} parsed as offlineplayer
			if {_p} is online:
				clear {tpa::%{_p}%::toTeleport}
				clear {tpa::%player%::toTeleport}
				clear {tpa::%{_p}%::sendAsk}
				clear {tpa::%player%::sendAsk}
				send "&8» &7Teleportacja zostala odrzucona" to {_p}
				send "&8» &7Odrzuciles prosbe teleportacji od &6%{_p}%"
				stop
			clear {tpa::%{_p}%::toTeleport}
			clear {tpa::%player%::toTeleport}
			clear {tpa::%{_p}%::sendAsk}
			clear {tpa::%player%::sendAsk}
			send "&4Blad: &cNie masz prosby o teleportacje"
			stop
		send "&4Blad: &cNie masz prosby o teleportacje"

Chcialbym tutaj wkleic twoje tpaccept ale wtedy zmienne sa inne i nie beda dzialac ;<

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236547
Udostępnij na innych stronach

  • 0
2 godziny temu, Wariat25 napisał:

Chcialbym tutaj wkleic twoje tpaccept ale wtedy zmienne sa inne i nie beda dzialac ;<

No a moje /tpa nie może być? xD /tpdeny jutro dorobie 

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236568
Udostępnij na innych stronach

  • 0
W dniu 19.02.2020 o 00:27, Wariat25 napisał:

no chce swoje XD

to przerobiłem twój :kappa:

on quit:
	clear {tpa::%player%}
command /tpa [<player>]:
	trigger:
		if arg is not set:
			send "&7Poprawne uzycie: tpa player"
		else:
			set {tpa::%player-arg%} to player
			send "&8» &6%player% &7prosi o teleportacje do ciebie" to player-arg
			send "&8» &7Aby zaakceptowac teleportacje wpisz &6/tpaccept" to player-arg
			send "&8» &7Aby odrzucic teleportacje wpisz &6/tpdeny" to player-arg
			send "&8» &7Wyslales prosbe o teleportacje do &6%player-arg%"
command /tpaccept [<player>]:
	trigger:
		if arg is not set:
			send "&7Poprawne uzycie: tpaccept player"
		else:
			if player-arg is {tpa::%player%}:
				clear {tpa::%player%}
				set {_l} to player-arg's location
				set {_s} to 0
				while distance between player and {_l} <= 0.2:
					send player-arg title "&6Teleportacja" with subtitle "&a%5-{_s}% &7sekund"
					add 1 to {_s}
					if {_s} >= 6:
						send player-arg title "&6Teleportacja" with subtitle "&aTeleportacja"
						send "&7Teleportacja gracza..."
						teleport player-arg to player
						stop
					wait 1 second
				send "&7Poruszyles sie! przerwano teleport!" to player-arg
				send "&7Gracz sie poruszyl! przerwano teleport!"
				send player-arg title "&6Teleportacja" with subtitle "&cPrzerwano!"
command /tpdeny [<text>]:
	trigger:
		if {tpa::%player%} is not set:
			send "&4Blad: &cNie masz prosby o teleportacje"
		else:
			send "&8» &7Teleportacja zostala odrzucona" to {tpa::%player%}
			send "&8» &7Odrzuciles prosbe teleportacji od &6%{tpa::%player%}%"

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236821
Udostępnij na innych stronach

  • 0
W dniu 22.02.2020 o 15:21, xAxee napisał:

to przerobiłem twój :kappa:


on quit:
	clear {tpa::%player%}
command /tpa [<player>]:
	trigger:
		if arg is not set:
			send "&7Poprawne uzycie: tpa player"
		else:
			set {tpa::%player-arg%} to player
			send "&8» &6%player% &7prosi o teleportacje do ciebie" to player-arg
			send "&8» &7Aby zaakceptowac teleportacje wpisz &6/tpaccept" to player-arg
			send "&8» &7Aby odrzucic teleportacje wpisz &6/tpdeny" to player-arg
			send "&8» &7Wyslales prosbe o teleportacje do &6%player-arg%"
command /tpaccept [<player>]:
	trigger:
		if arg is not set:
			send "&7Poprawne uzycie: tpaccept player"
		else:
			if player-arg is {tpa::%player%}:
				clear {tpa::%player%}
				set {_l} to player-arg's location
				set {_s} to 0
				while distance between player and {_l} <= 0.2:
					send player-arg title "&6Teleportacja" with subtitle "&a%5-{_s}% &7sekund"
					add 1 to {_s}
					if {_s} >= 6:
						send player-arg title "&6Teleportacja" with subtitle "&aTeleportacja"
						send "&7Teleportacja gracza..."
						teleport player-arg to player
						stop
					wait 1 second
				send "&7Poruszyles sie! przerwano teleport!" to player-arg
				send "&7Gracz sie poruszyl! przerwano teleport!"
				send player-arg title "&6Teleportacja" with subtitle "&cPrzerwano!"
command /tpdeny [<text>]:
	trigger:
		if {tpa::%player%} is not set:
			send "&4Blad: &cNie masz prosby o teleportacje"
		else:
			send "&8» &7Teleportacja zostala odrzucona" to {tpa::%player%}
			send "&8» &7Odrzuciles prosbe teleportacji od &6%{tpa::%player%}%"

 

Prosze o dodanie:

- jesli gracz wpisze /tpaccept randomowynick/gracza nie ma offline to pisze np. blad jakis

+ gdy tepam sie do gracza i gracz odrazu akceptuje to z automatu wyskakuje problem ze sie gracz poruszyl, a jesli tepne sie do samego siebie to jest wszystko okej, prosze o fix

Dobra do zamkniecia bo jest tutaj duzy spam nie potrzebny ;v

Edytowane przez Wariat25
HeezQ

Łączę posty

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37049-teleport-odliczanie-title/#findComment-236978
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ę...