Skocz do zawartości
  • 0

Potrzebuje pomocy z sidebarem


Pytanie

Wiec SideBar Dziala Idealnie lecz chcialbym aby mozna go bylo wylaczac i wlaczac 

skript:

variables:
	tab = true
every 5 seconds:
	if {tab} is true:
	loop all players:
		wipe loop-player's sidebar
		set name of sidebar of loop-player to "&9&lMAGICRAFT.PL"
		set score "&aNick: &7%loop-player%" in sidebar of loop-player to 2
		set score "&cUstawienia Side Bara Pod &a/sb" in sidebar of loop-player to 1
	if {tab} is false:
		stop
command /sboff:
	trigger:
		set {tab} to false
command /sbon:
	trigger:
		set {tab} to true

 

Odnośnik do komentarza
https://skript.pl/temat/37434-potrzebuje-pomocy-z-sidebarem/
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
variables:
    {tab} = true

on join:
    while player is online:
        if {tab} is true:
            wipe player's sidebar
            set name of sidebar of player to "&9&lMAGICRAFT.PL"
            set score "&aNick: &7%player%" in sidebar of player to 2
            set score "&cUstawienia Side Bara Pod &a/sb" in sidebar of player to 1
            wait 5 second   
command /sboff [<text>]:
    trigger:
        set {tab} to false
command /sbon [<text>]:
    trigger:
        set {tab} to true

Globalna zmiana

 


variables:
    {tab::%player%} = true

on join:
    while player is online:
        if {tab::%player%} is true:
            wipe player's sidebar
            set name of sidebar of player to "&9&lMAGICRAFT.PL"
            set score "&aNick: &7%player%" in sidebar of player to 2
            set score "&cUstawienia Side Bara Pod &a/sb" in sidebar of player to 1
            wait 5 second   
command /sboff [<text>]:
    trigger:
        set {tab::%player%} to false
command /sbon [<text>]:
    trigger:
        set {tab::%player%} to true

Zmiana dla pojedyńczego gracza.

Odnośnik do komentarza
https://skript.pl/temat/37434-potrzebuje-pomocy-z-sidebarem/#findComment-238111
Udostępnij na innych stronach

  • 0
17 godzin temu, KuzynProcesor napisał:

Poproszę ⭐ i ♥️

Nie Dziala :/ 

17 godzin temu, LjayPL789 napisał:

variables:
    {tab} = true

on join:
    while player is online:
        if {tab} is true:
            wipe player's sidebar
            set name of sidebar of player to "&9&lMAGICRAFT.PL"
            set score "&aNick: &7%player%" in sidebar of player to 2
            set score "&cUstawienia Side Bara Pod &a/sb" in sidebar of player to 1
            wait 5 second   
command /sboff [<text>]:
    trigger:
        set {tab} to false
command /sbon [<text>]:
    trigger:
        set {tab} to true

Globalna zmiana

 



variables:
    {tab::%player%} = true

on join:
    while player is online:
        if {tab::%player%} is true:
            wipe player's sidebar
            set name of sidebar of player to "&9&lMAGICRAFT.PL"
            set score "&aNick: &7%player%" in sidebar of player to 2
            set score "&cUstawienia Side Bara Pod &a/sb" in sidebar of player to 1
            wait 5 second   
command /sboff [<text>]:
    trigger:
        set {tab::%player%} to false
command /sbon [<text>]:
    trigger:
        set {tab::%player%} to true

Zmiana dla pojedyńczego gracza.

Nie Dziala :/ 

HeezQ

Łączę posty

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/37434-potrzebuje-pomocy-z-sidebarem/#findComment-238223
Udostępnij na innych stronach

  • 0
14 godzin temu, xdzikuu napisał:

To co zrobily Panowie wyżej, działa jedynie przy relogu. Tutaj trzymaj poprawione:

 

to co zrobiłeś wywali serwer gdy gracz wyłączy sidebar

function setSidebar(p: player):
	set name of sidebar of {_p} to "&9&lMAGICRAFT.PL"
	set score "&aNick: &7%{_p}%" in sidebar of {_p} to 2
	set score "&cUstawienia Side Bara Pod &a/sb" in sidebar of {_p} to 1
on join:
	while player is online:
		wipe player's sidebar
		if {sidebar::%player%} is true:
			setSidebar(player)
		wait 5 second
command /sidebar [<text>]:
	trigger:
		if arg is not set:
			if {sidebar::%player%} is true:
				set {sidebar::%player%} to false
				send "&cWylaczono &7sidebar"
				wipe player's sidebar
			else:
				set {sidebar::%player%} to true
				send "&aWlaczono &7sidebar"
				setSidebar(player)
		if arg is "on" or "wlacz":
			set {sidebar::%player%} to true
			send "&aWlaczono &7sidebar"
			setSidebar(player)
		if arg is "off" or "wylacz":
			set {sidebar::%player%} to false
			send "&cWylaczono &7sidebar"
			wipe player's sidebar

 

Odnośnik do komentarza
https://skript.pl/temat/37434-potrzebuje-pomocy-z-sidebarem/#findComment-238309
Udostępnij na innych stronach

  • 0
7 godzin temu, xAxee napisał:

to co zrobiłeś wywali serwer gdy gracz wyłączy sidebar


function setSidebar(p: player):
	set name of sidebar of {_p} to "&9&lMAGICRAFT.PL"
	set score "&aNick: &7%{_p}%" in sidebar of {_p} to 2
	set score "&cUstawienia Side Bara Pod &a/sb" in sidebar of {_p} to 1
on join:
	while player is online:
		wipe player's sidebar
		if {sidebar::%player%} is true:
			setSidebar(player)
		wait 5 second
command /sidebar [<text>]:
	trigger:
		if arg is not set:
			if {sidebar::%player%} is true:
				set {sidebar::%player%} to false
				send "&cWylaczono &7sidebar"
				wipe player's sidebar
			else:
				set {sidebar::%player%} to true
				send "&aWlaczono &7sidebar"
				setSidebar(player)
		if arg is "on" or "wlacz":
			set {sidebar::%player%} to true
			send "&aWlaczono &7sidebar"
			setSidebar(player)
		if arg is "off" or "wylacz":
			set {sidebar::%player%} to false
			send "&cWylaczono &7sidebar"
			wipe player's sidebar

 

Wylacza Taba Ale Nie Wlacza Sie Ponownie.

Edytowane przez swiopolski sw
Odnośnik do komentarza
https://skript.pl/temat/37434-potrzebuje-pomocy-z-sidebarem/#findComment-238394
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

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

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