Skocz do zawartości
  • 0

Skrypt na teleport po śmierci


Uzi
 Udostępnij

Pytanie

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Chyba coś takiego by poszło:

command /ustawsmierc:
	trigger:
		set {_xyz.%player%} to location of player
		send "&8> &6Ustawiono lokacje do teleportacji po śmierci."
on respawn:
	if {_xyz.%player%} is set:
		wait 1 tick
		teleport player to {_xyz.%player%}
	else:
		stop
		

Ale w essentials możesz zwykłe /back po śmierci wpisać

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
20 minut temu, MrMarker98 napisał:

Chyba coś takiego by poszło:

command /ustawsmierc:
	trigger:
		set {_xyz.%player%} to location of player
		send "&8> &6Ustawiono lokacje do teleportacji po śmierci."
on respawn:
	if {_xyz.%player%} is set:
		wait 1 tick
		teleport player to {_xyz.%player%}
	else:
		stop
		

Ale w essentials możesz zwykłe /back po śmierci wpisać

Niestety nie teleportuje ;/

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
command /ustawmiejsce [<text>]:
    trigger:
            set {deadlocation} to location of player
            send "&aPoprawnie ustawiono lokacje." to player
            stop
            
            
on respawn:
    if {deadlocation} is set:
        wait 15 tick
        teleport player to {deadlocation}
        send "&aZginales, ale pojawiles sie na miejscu wybranym przez Administratora." to player
    else:
        stop

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
49 minut temu, LjayPL789 napisał:
command /ustawmiejsce [<text>]:
    trigger:
            set {deadlocation} to location of player
            send "&aPoprawnie ustawiono lokacje." to player
            stop
            
            
on respawn:
    if {deadlocation} is set:
        wait 15 tick
        teleport player to {deadlocation}
        send "&aZginales, ale pojawiles sie na miejscu wybranym przez Administratora." to player
    else:
        stop

 

[18:40:20] [Server thread/INFO]: [Skript][m Reloading aw.sk[m...
[18:40:20] [Server thread/ERROR]: "set {_y} 256" is not a boolean (yes/no) (aw.sk, line 8: set {_y} 256")
[18:40:20] [Server thread/ERROR]: Use "attacker" and/or "victim" in damage events (aw.sk, line 18: if {randomtp::god::%player%} is true:")
[18:40:20] [Server thread/INFO]: [Skript][m Encountered 2 errors while reloading aw.sk[m!

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
4 minuty temu, LjayPL789 napisał:

W tej zmiennej z on damage: %player% zamień na %victim%

i zamień tą linijke z 1 błędu na set {_y} to 256

Sry pomyliłem skrypty i błędy:

[18:38:38] [Server thread/INFO]: �[�Skript�]�[m Reloading smierc.sk�[m...�
[18:38:38] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (smierc.sk, line 3: set {deadlocation} to location of player")
[18:38:38] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (smierc.sk, line 4: send "&aPoprawnie ustawiono lokacje." to player")
[18:38:38] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (smierc.sk, line 5: stop")
[18:38:38] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don"t want this line to start a section. (smierc.sk, line 2: trigger:")
[18:38:38] [Server thread/INFO]: �[�Skript�]�[m �Encountered 3 errors while reloading �smierc.sk�[m!�
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
34 minuty temu, Uzi napisał:

Sry pomyliłem skrypty i błędy:

[18:38:38] [Server thread/INFO]: �[�Skript�]�[m Reloading smierc.sk�[m...�
[18:38:38] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (smierc.sk, line 3: set {deadlocation} to location of player")
[18:38:38] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (smierc.sk, line 4: send "&aPoprawnie ustawiono lokacje." to player")
[18:38:38] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (smierc.sk, line 5: stop")
[18:38:38] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don"t want this line to start a section. (smierc.sk, line 2: trigger:")
[18:38:38] [Server thread/INFO]: �[�Skript�]�[m �Encountered 3 errors while reloading �smierc.sk�[m!�
command /ustawmiejsce [<text>]:
	trigger:
		set {deadlocation} to location of player
		send "&aPoprawnie ustawiono lokacje." to player
		
		
on respawn:
	if {deadlocation} is set:
		wait 15 tick
		teleport player to {deadlocation}
		send "&aZginales, ale pojawiles sie na miejscu wybranym przez Administratora." to player

 

a nie to sortowanie... najlepsza odpowiedz do gory pposzla i nie zauwazylem xd sorka

Edytowane przez xAxee
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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