Skocz do zawartości
  • 0

Skrypty killstreak i K/D na scoreboard


Pytanie

siema mam pytanie ktos wie jaka jest komenda na skrypt killstreak i K/D  na scoreboardzie?

bo mam takie cos

join:
    while player is online:
        set title of player's scoreboard to ""
        set line 1 of player's scoreboard to ""
        set line 2 of player's scoreboard to "  &f&l☠&fDeath: %{deaths::%player's uuid%}%"
        set line 3 of player's scoreboard to "  &f&l🗡&fkill: %{kills::%player's uuid%}%"
        set line 4 of player's scoreboard to "&fStats"
        set line 5 of player's scoreboard to "" 
        set line 6 of player's scoreboard to ""  
        wait 1 second

on death:      
    attacker is a player
    add 1 to {kills::%attacker's uuid%}

on death:
    Victim is a player
    add 1 to {deaths::%victim's uuid%}

jesli by ktos umiał tu dopisac K/D i killstreak to bym był wdzięczny 

Edytowane przez rozwaga
Odnośnik do komentarza
https://skript.pl/temat/54477-skrypty-killstreak-i-kd-na-scoreboard/
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on death:
	victim is a player
	add 1 to {Stats::%victim's uuid%::deaths}
	attacker is a player
	attacker is not victim
	add 1 to {Stats::%attacker's uuid%::kills} and {Stats::%attacker's uuid%::killstreak}
	set {Stats::%victim's uuid%::killstreak} to 0

on join:
	if {Stats::%player's uuid%::kills} is not set:
		set {Stats::%player's uuid%::kills} to 0
		set {Stats::%player's uuid%::deaths} to 0
		set {Stats::%player's uuid%::killstreak} to 0
	while player is online:
		set {_kd} to {Stats::%player's uuid%::kills}/{Stats::%player's uuid%::deaths}
		if {_kd} is less than 0:
			set {_kd} to 0
		set title of player's scoreboard to "&a&lStatystyki"
		set line 4 of player's scoreboard to "   &eZabójstwa: &c%{Stats::%player's uuid%::kills}%"
		set line 3 of player's scoreboard to "   &eŚmierci: &c%{Stats::%player's uuid%::deaths}%"
		set line 2 of player's scoreboard to "   &eK/D: &c%{_kd}%"
		set line 1 of player's scoreboard to "   &eKillStreak: &c%{Stats::%player's uuid%::killstreak}%"
		wait 1 second

 

Edytowane przez Shooterowy
Odnośnik do komentarza
https://skript.pl/temat/54477-skrypty-killstreak-i-kd-na-scoreboard/#findComment-330428
Udostępnij na innych stronach

  • 0
1 godzinę temu, Shooterowy napisał:
on death:
	victim is a player
	add 1 to {Stats::%victim's uuid%::deaths}
	attacker is a player
	attacker is not victim
	add 1 to {Stats::%attacker's uuid%::kills} and {Stats::%attacker's uuid%::killstreak}
	set {Stats::%victim's uuid%::killstreak} to 0

on join:
	if {Stats::%player's uuid%::kills} is not set:
		set {Stats::%player's uuid%::kills} to 0
		set {Stats::%player's uuid%::deaths} to 0
		set {Stats::%player's uuid%::killstreak} to 0
	while player is online:
		set {_kd} to {Stats::%player's uuid%::kills}/{Stats::%player's uuid%::deaths}
		if {_kd} is less than 0:
			set {_kd} to 0
		set title of player's scoreboard to "&a&lStatystyki"
		set line 4 of player's scoreboard to "   &eZabójstwa: &c%{Stats::%player's uuid%::kills}%"
		set line 3 of player's scoreboard to "   &eŚmierci: &c%{Stats::%player's uuid%::deaths}%"
		set line 2 of player's scoreboard to "   &eK/D: &c%{_kd}%"
		set line 1 of player's scoreboard to "   &eKillStreak: &c%{Stats::%player's uuid%::killstreak}%"
		wait 1 second

Ale jak gracz zginie K/D się mu nie zmniejszy bo nie zmieniasz K/D w evencie on death

Odnośnik do komentarza
https://skript.pl/temat/54477-skrypty-killstreak-i-kd-na-scoreboard/#findComment-330431
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ę...