Skocz do zawartości
  • 0

Wszyscy gracze


Rico123098

Pytanie

Wie ktoś jak zrobić żeby dawało to dla wszystkich graczy na serwerze i nie tylko nawet dla tych co nie ma

 

command /statusserwera [<text>]:
    permission: status.serwera
    trigger:
        loop all players:
            if arg 1 is "on":
                execute console command "hd setline spawn 4 &6Status serwera: &aonline"
                set {st.%player%} to true
            if arg 1 is "off":
                execute console command "hd setline spawn 4 &6Status serwera: &coffline"
                set {st.%loop-all-players%} to false
            if arg 1 is not set:
                send "on/off"

Odnośnik do komentarza
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0
4 minuty temu, CoFFeIN04 napisał:

dopiero teraz jak patrzę, to nawet nie zadziała

 

po prostu loop-player

[18:13:33 ERROR]: There's no loop that matches 'loop-player' (portal.sk, line 14: set {st.%loop-player%} to true')
[18:13:33 ERROR]: There's no loop that matches 'loop-player' (portal.sk, line 17: set {st.%loop-player%} to false')
 
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
28 minut temu, Rico123098 napisał:

Wie ktoś jak zrobić żeby dawało to dla wszystkich graczy na serwerze i nie tylko nawet dla tych co nie ma

 

command /statusserwera [<text>]:
    permission: status.serwera
    trigger:
        loop all players:
            if arg 1 is "on":
                execute console command "hd setline spawn 4 &6Status serwera: &aonline"
                set {st.%player%} to true
            if arg 1 is "off":
                execute console command "hd setline spawn 4 &6Status serwera: &coffline"
                set {st.%loop-all-players%} to false
            if arg 1 is not set:
                send "on/off"

Co ma robić ten skrypt?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, CoFFeIN04 napisał:

pokaz ten twoj mierny kod

variables:
    {ban.%player%} = false
    {st.%player%} = false

 

command /statusserwera [<text>]:
    permission: status.serwera
    trigger:
        loop all offline players:
            if arg 1 is "on":
                execute console command "hd setline spawn 4 &6Status serwera: &aonline"
                set {st.%loop-player%} to true
            if arg 1 is "off":
                execute console command "hd setline spawn 4 &6Status serwera: &coffline"
                set {st.%loop-player%} to false
            if arg 1 is not set:
                send "on/off"

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, Rico123098 napisał:

variables:
    {ban.%player%} = false
    {st.%player%} = false

 

command /statusserwera [<text>]:
    permission: status.serwera
    trigger:
        loop all offline players:
            if arg 1 is "on":
                execute console command "hd setline spawn 4 &6Status serwera: &aonline"
                set {st.%loop-player%} to true
            if arg 1 is "off":
                execute console command "hd setline spawn 4 &6Status serwera: &coffline"
                set {st.%loop-player%} to false
            if arg 1 is not set:
                send "on/off"

Jak ma dzialac ten skript?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
6 minut temu, KrychaMC09 napisał:

i co nie dziala ci off ze nie mozna wejsc?

variables:
    {ban.%player%} = false
    {st.%player%} = false

 

command /statusserwera [<text>]:
    permission: status.serwera
    trigger:
        loop all players:
            if arg 1 is "on":
                execute console command "hd setline spawn 4 &6Status serwera: &aonline"
                set {st.%loop-player%} to true
            if arg 1 is "off":
                execute console command "hd setline spawn 4 &6Status serwera: &coffline"
                set {st.%loop-player%} to false
            if arg 1 is not set:
                send "on/off"

Nie wiem czy o to ci chodzilo nie wytlumaczyles jak ma dzialac skript

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 minuty temu, KrychaMC09 napisał:

variables:
    {ban.%player%} = false
    {st.%player%} = false

 

command /statusserwera [<text>]:
    permission: status.serwera
    trigger:
        loop all players:
            if arg 1 is "on":
                execute console command "hd setline spawn 4 &6Status serwera: &aonline"
                set {st.%loop-player%} to true
            if arg 1 is "off":
                execute console command "hd setline spawn 4 &6Status serwera: &coffline"
                set {st.%loop-player%} to false
            if arg 1 is not set:
                send "on/off"

Nie wiem czy o to ci chodzilo nie wytlumaczyles jak ma dzialac skript

Mam portal na spawn, i mam skrypta że jak w niego wejde to teportuje z świata spawn na world. I przed [prtaslem mam taki hologram. I chcem żeby po wpisaniu statusserwera on można było wejść i tepnie na world a jak statusserwera off to nie można wejść i nie tepnie i komunikat aktualnie serwer jest wyłączony

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, Rico123098 napisał:

Mam portal na spawn, i mam skrypta że jak w niego wejde to teportuje z świata spawn na world. I przed [prtaslem mam taki hologram. I chcem żeby po wpisaniu statusserwera on można było wejść i tepnie na world a jak statusserwera off to nie można wejść i nie tepnie i komunikat aktualnie serwer jest wyłączony

Czyli jak bedzie off poprostu nie bedzie mozna dolaczyc na swiat world dobrze mowie?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, Rico123098 napisał:

tak

 

variables:
    {ban.%player%} = false
    {st.%player%} = false

 

command /statusserwera [<text>]:
    permission: status.serwera
    trigger:
        loop all players:
            if arg 1 is "on":
                execute console command "hd setline spawn 4 &6Status serwera: &aonline"
                set {st.%loop-player%} to true
            if arg 1 is "off":
                execute console command "hd setline spawn 4 &6Status serwera: &coffline"
                set {st.%loop-player%} to false
            if arg 1 is not set:
                send "on/off"
on world change:
  if {st.%player%} is false:

      cancel event
      send "&cTen swiat jest obecnie wylaczony!"

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, KrychaMC09 napisał:

variables:
    {ban.%player%} = false
    {st.%player%} = false

 

command /statusserwera [<text>]:
    permission: status.serwera
    trigger:
        loop all players:
            if arg 1 is "on":
                execute console command "hd setline spawn 4 &6Status serwera: &aonline"
                set {st.%loop-player%} to true
            if arg 1 is "off":
                execute console command "hd setline spawn 4 &6Status serwera: &coffline"
                set {st.%loop-player%} to false
            if arg 1 is not set:
                send "on/off"
on world change:
  if {st.%player%} is false:

      cancel event
      send "&cTen swiat jest obecnie wylaczony!"

ale to będzie działać że jak kogoś nie ma na serwie i wejdzie?

Odnośnik do komentarza
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ę...