Skocz do zawartości
  • 0

Asysty i AntyLogout


Pytanie

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on damage:
	if victim is player:
		if attacker is player:
			add attacker to {assist::%victim%}

on death:
	if victim is player:
		if attacker is player:
			broadcast "&eGracz &7%player% &ezabił gracza &b%victim% &eużywając &c%name of player's tool%"
			remove attacker from {assist::%victim%}
			if {assist::%victim%} is set:
				broadcast "&ePomagali mu: &7%{assist::%victim%}%"
			delete {assist::%victim%}

on quit:
	delete {assist::%victim%}

 

Odnośnik do komentarza
https://skript.pl/temat/25016-asysty-i-antylogout/#findComment-166508
Udostępnij na innych stronach

  • 0
5 godzin temu, Bananowiec napisał:

on damage:
	if victim is player:
		if attacker is player:
			add attacker to {assist::%victim%}

on death:
	if victim is player:
		if attacker is player:
			broadcast "&eGracz &7%player% &ezabił gracza &b%victim% &eużywając &c%name of player's tool%"
			remove attacker from {assist::%victim%}
			if {assist::%victim%} is set:
				broadcast "&ePomagali mu: &7%{assist::%victim%}%"
			delete {assist::%victim%}

on quit:
	delete {assist::%victim%}

 

Wywala bład

Spoiler

The expression 'victim' can only be used in a damage or death event (sk.sk, line 16: 'delete {assist::%victim%}')

 

Odnośnik do komentarza
https://skript.pl/temat/25016-asysty-i-antylogout/#findComment-166568
Udostępnij na innych stronach

  • 0
on damage:
	if victim is player:
		if attacker is player:
			add attacker to {assist::%victim%}

on death:
	if victim is player:
		if attacker is player:
			broadcast "&eGracz &7%player% &ezabił gracza &b%victim% &eużywając &c%name of player's tool%"
			remove attacker from {assist::%victim%}
			if {assist::%victim%} is set:
				broadcast "&ePomagali mu: &7%{assist::%victim%}%"
			delete {assist::%victim%}

on quit:
	delete {assist::%player%}

 

Odnośnik do komentarza
https://skript.pl/temat/25016-asysty-i-antylogout/#findComment-166575
Udostępnij na innych stronach

  • 0
Godzinę temu, Bananowiec napisał:

on damage:
	if victim is player:
		if attacker is player:
			add attacker to {assist::%victim%}

on death:
	if victim is player:
		if attacker is player:
			broadcast "&eGracz &7%player% &ezabił gracza &b%victim% &eużywając &c%name of player's tool%"
			remove attacker from {assist::%victim%}
			if {assist::%victim%} is set:
				broadcast "&ePomagali mu: &7%{assist::%victim%}%"
			delete {assist::%victim%}

on quit:
	delete {assist::%player%}

 

Nie działa. Nie ma błędu gdy przeładowuje skrypt. I nie pokazuje tego "Pomagali mu" i gdy zabije gracza to pisze "Gracz zabil gracza Gracz" nie ze ja tylko on sam siebie

Odnośnik do komentarza
https://skript.pl/temat/25016-asysty-i-antylogout/#findComment-166596
Udostępnij na innych stronach

  • 0
on damage:
	if victim is player:
		if attacker is player:
			add attacker to {assist::%victim%::*}

on death:
	if victim is player:
		if attacker is player:
			broadcast "&eGracz &7%player% &ezabił gracza &b%victim% &eużywając &c%name of player's tool%"
			remove attacker from {assist::%victim%::*}
			if {assist::%victim%::*} is set:
				set {_x::*} to {assist::%victim%::*}
				replace all " and" with "," in {_x::*}
				broadcast "&ePomagali mu: &7%{_x::*}%"
				delete {assist::%victim%::*}

on quit:
	delete {assist::%player%::*}

 

Edytowane przez KrejzolekPRO
Odnośnik do komentarza
https://skript.pl/temat/25016-asysty-i-antylogout/#findComment-166601
Udostępnij na innych stronach

  • 0
34 minuty temu, KrejzolekPRO napisał:

on damage:
	if victim is player:
		if attacker is player:
			add attacker to {assist::%victim%::*}

on death:
	if victim is player:
		if attacker is player:
			broadcast "&eGracz &7%player% &ezabił gracza &b%victim% &eużywając &c%name of player's tool%"
			remove attacker from {assist::%victim%::*}
			if {assist::%victim%::*} is set:
				set {_x::*} to {assist::%victim%::*}
				replace all " and" with "," in {_x::*}
				broadcast "&ePomagali mu: &7%{_x::*}%"
				delete {assist::%victim%::*}

on quit:
	delete {assist::%player%::*}

 

Jest 1 błąd 

'replace all " and" with "," in <...>' can only accept a single text, not more (test.sk, line 13: 'replace all " and" with "," in {_x::*}')

Odnośnik do komentarza
https://skript.pl/temat/25016-asysty-i-antylogout/#findComment-166607
Udostępnij na innych stronach

  • 0
2 minuty temu, Bananowiec napisał:

set {_x} to {assist::%victim%::*}
replace all " and" with "," in {_x}

 

1 błąd ;/

{_x} can only be set to one object, not more (t.sk, line 12: 'set {_x} to {assist::%victim%::*}')

Odnośnik do komentarza
https://skript.pl/temat/25016-asysty-i-antylogout/#findComment-166611
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ę...