Skocz do zawartości
  • 0

Scoreboard


DiamentowyPL

Pytanie

Proszę was o pomoc. Potrzebuję skryptu na scoreboard. Tutaj zawartość scoreboarda:

	 &7Nick » &a%loop-player%
	 &7Ranga » &a%{rank.%loop-player%}%
	 &e&n------------------
	 &6Punkty &7» &c%{cookies::%loop-player%}%
	 &6Poziom &7» &c%{lvl::%loop-player%}%
	 &e&n------------------
	 &7Godzina » %now%

Nie ważne jakie dodatki (dodam tylko że mam problem ze scoreboardem z SkQuery)

Odnośnik do komentarza
https://skript.pl/temat/22596-scoreboard/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
every second:
	loop all players:
		display board named "Scoreboard" to loop-player
        make score "&7Nick » &a%loop-player%" in board of loop-player to 1
        make score "&7Ranga » &a%{rank.%loop-player%}%" in board of loop-player to 2
        make score "&e&n------------------" in board of loop-player to 3
        make score "&6Punkty &7» &c%{cookies::%loop-player%}%" in board of loop-player to 4
        make score "&6Poziom &7» &c%{lvl::%loop-player%}%"  in board of loop-player to 5
        make score "&e&n------------------" in board of loop-player to 6
        make score "&7Godzina » %now%" in board of loop-player to 7

To jest przykad. Licze na + jesli pomoglem :)  

Odnośnik do komentarza
https://skript.pl/temat/22596-scoreboard/#findComment-153722
Udostępnij na innych stronach

  • 0
options:
	world: oxMap
function setSidebar(p: player):
	if "%{_p}'s world%" is "{@world}":
		if {_p} is offline:
			stop
		wait 5 tick
		delete {_p}'s sidebar
		set name of sidebar of {_p} to "     &a&lCos"
		set score "&f&f&f" in sidebar of {_p} to 8
		set {_7} to "&7Nick » &a%{_p}%"
		set {_6} to "&7Ranga » &a%{rank.%{_p}%}%"
		set {_5} to "&f&e&n------------------"
		set {_4} to "&6Punkty &7» &c%{cookies::%{_p}%}%"
		set {_3} to "&6Poziom &7» &c%{lvl::%{_p}%}%"
		set {_2} to "&e&n------------------"
		set {_1} to "&7Godzina » %now%"
		loop 7 times:
			set {_%loop-number%} to first 39 characters of {_%loop-number%}
			set score "%{_%loop-number%}%" in sidebar of {_p} to loop-number
		set score "&f" in sidebar of {_p} to 0
	else:
		delete {_p}'s sidebar
every 1 second:
	loop all players:
		setSidebar(loop-player)

 

Edytowane przez knugi
zmienne z serwera
Odnośnik do komentarza
https://skript.pl/temat/22596-scoreboard/#findComment-153723
Udostępnij na innych stronach

  • 0
18 godzin temu, VaeNN napisał:

every second:
	loop all players:
		display board named "Scoreboard" to loop-player
        make score "&7Nick » &a%loop-player%" in board of loop-player to 1
        make score "&7Ranga » &a%{rank.%loop-player%}%" in board of loop-player to 2
        make score "&e&n------------------" in board of loop-player to 3
        make score "&6Punkty &7» &c%{cookies::%loop-player%}%" in board of loop-player to 4
        make score "&6Poziom &7» &c%{lvl::%loop-player%}%"  in board of loop-player to 5
        make score "&e&n------------------" in board of loop-player to 6
        make score "&7Godzina » %now%" in board of loop-player to 7

To jest przykad. Licze na + jesli pomoglem :)  

Nie ma żadnych błędów ale nie pokazuje nic na scoreboardzie

Odnośnik do komentarza
https://skript.pl/temat/22596-scoreboard/#findComment-153765
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ę...