Skocz do zawartości
  • 0

Statystyki w gui


Rus3kk

Pytanie

Hej, umiałby ktos to poprawic? w sensie, chcialbym aby mozna bylo zobaczyc tez statystyki danego gracza, a nie tylko swoje


 

variables:
    {smierci::%player%} = 0
    {zabojstwa::%player%} = 0
    {refy::%player%} = 0
    {koxy::%player%} = 0
    {cobblestone::%player%} = 0
on death:
    if attacker is player:
        if victim is player:
        add 1 to {smierci.%player%}

on death:
    if victim is player:
        loop all players:
            if attacker is loop-player:
                add 1 to {zabojstwa::%loop-player%}        

    
on consume of golden apple:
    if event-item isn't enchanted golden apple:
        add 1 to {refy::%player%}
        
on consume of enchanted golden apple:
    add 1 to {koxy::%player%}    
     
on place of cobblestone:
    add 1 to {cobblestone::%player%}    
    
command /statystyki:
    aliases: /staty, /profil
    trigger:
        open chest with 1 rows named "&c&lStatystyki" to player
        wait 2 tick
        format slot 0 of player with 1 of 160:14 named "&c▶▶▶" to close
        format slot 8 of player with 1 of 160:14 named "&c◀◀◀" to close
        format slot 2 of player with 1 of iron sword named "&8▶ &7Zabici gracze&8: &6%{zabojstwa::%player%}%" to close
        format slot 3 of player with 1 of enchanted golden apple named "&8▶ &7Zjedzone koxy&8: &6%{koxy::%player%}%" to close
        format slot 4 of player with 1 of 4 named "&8▶ &7Polozony cobblestone&8: &6%{cobblestone::%player%}%" to close
        format slot 5 of player with 1 322 named "&8▶ &7Zjedzone refile&8: &6%{refy::%player%}%" to close
        format slot 6 of player with 1 of wooden sword named "&8▶ &7Twoje smierci&8: &6%{smierci::%player%}%" to close


 

Glicz

Wstawiam kod w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
https://skript.pl/temat/49466-statystyki-w-gui/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
command /statystyki [<text>]:
    aliases: /staty, /profil
    trigger:
        set {_x} to player's name if arg-1 isn't set
        set {_x} to arg-1 if arg-1 is set
        open chest with 1 rows named "&c&lStatystyki" to player
        wait 2 tick
        format slot 0 of player with 1 of 160:14 named "&c▶▶▶" to close
        format slot 8 of player with 1 of 160:14 named "&c◀◀◀" to close
        format slot 2 of player with 1 of iron sword named "&8▶ &7Zabici gracze&8: &6%{zabojstwa::%{_x}%}%" to close
        format slot 3 of player with 1 of enchanted golden apple named "&8▶ &7Zjedzone koxy&8: &6%{koxy::%{_x}%}%" to close
        format slot 4 of player with 1 of 4 named "&8▶ &7Polozony cobblestone&8: &6%{cobblestone::%{_x}%}%" to close
        format slot 5 of player with 1 322 named "&8▶ &7Zjedzone refile&8: &6%{refy::%{_x}%}%" to close
        format slot 6 of player with 1 of wooden sword named "&8▶ &7Smierci gracza %{_x}%&8: &6%{smierci::%{_x}%}%" to close

 

Edytowane przez 3meraldK
Odnośnik do komentarza
https://skript.pl/temat/49466-statystyki-w-gui/#findComment-306895
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ę...