Skocz do zawartości
  • 0

Multiverse


matrixx

Pytanie

Dzień dobry. Czy mógłby ktoś napisać skrypt na którym ma być takie coś, że gdy jest więcej niż jeden gracz na świecie (nazwa) to wyrzuca go z tego świata i przenosi do świata world. W sensie żeby na danym świecie oprócz świata world mogła być tylko 1 osoba. Nie liczy się op'ów. Opy mogą wejść

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

Rekomendowane odpowiedzi

  • 0

hmm jaką masz wersje skripta? i serwera?

3 minuty temu, xMatrix napisał:

I da sie jescze na wiecej swiatow zrobic jesli bedzie dzialalo?

no tak tam gdzie masz "swiat1" and "swiat2", "swiat3" dodajesz po , twoj kolejny swiat

every second:
	loop ("swiat1" and "swiat2", "swiat3"):
		set {_a} to 0
		loop all players in world "%loop-value%":
			if loop-player is not op:
				add 1 to {_a}
				if {_a} > 1:
					teleport loop-player to location at 0, 60, 0 of world "world"

 

Odnośnik do komentarza
https://skript.pl/temat/38490-multiverse/#findComment-242897
Udostępnij na innych stronach

  • 0
2 minuty temu, xAxee napisał:

hmm jaką masz wersje skripta? i serwera?

no tak tam gdzie masz "swiat1" and "swiat2", "swiat3" dodajesz po , twoj kolejny swiat


every second:
	loop ("swiat1" and "swiat2", "swiat3"):
		set {_a} to 0
		loop all players in world "%loop-value%":
			if loop-player is not op:
				add 1 to {_a}
				if {_a} > 1:
					teleport loop-player to location at 0, 60, 0 of world "world"

 

Wersja skripta: https://imgur.com/a/gil1eeY

Wersja serwera: https://imgur.com/a/4mCZAlk

Odnośnik do komentarza
https://skript.pl/temat/38490-multiverse/#findComment-242899
Udostępnij na innych stronach

  • 0
every second:
	loop ("world" and "worlds", "swiat3"):
		set {_a} to 0
		loop players where [player input is in world("%loop-value%")]:
			if loop-player is not op:
				add 1 to {_a}
				if {_a} > 1:
					teleport loop-player to location at 0, 60, 0 of world "world"

tylko ustaw swoje światy i lokalizacje

Odnośnik do komentarza
https://skript.pl/temat/38490-multiverse/#findComment-242916
Udostępnij na innych stronach

  • 0
4 minuty temu, xAxee napisał:

every second:
	loop ("world" and "worlds", "swiat3"):
		set {_a} to 0
		loop players where [player input is in world("%loop-value%")]:
			if loop-player is not op:
				add 1 to {_a}
				if {_a} > 1:
					teleport loop-player to location at 0, 60, 0 of world "world"

tylko ustaw swoje światy i lokalizacje

Dalej nie działa

Odnośnik do komentarza
https://skript.pl/temat/38490-multiverse/#findComment-242920
Udostępnij na innych stronach

  • 0

A spróbuj po aktualizacji pluginu ten mój skrypt w sensie ten:
 

on teleport:
    wait 10 ticks
    if player's world is not "world" or "world_the_end" or "world_nether":
        if player is not op:
            loop all players in world player's world:
                if player is not op:
                    add 1 to {_}
            if {_} is bigger than 1:
                send "&cW tym świecie jest już jeden gracz!"
                teleport player to spawn of world "world"

 

Odnośnik do komentarza
https://skript.pl/temat/38490-multiverse/#findComment-242923
Udostępnij na innych stronach

  • 0
1 minutę temu, wiktorm12 napisał:

A spróbuj po aktualizacji pluginu ten mój skrypt w sensie ten:
 


on teleport:
    wait 10 ticks
    if player's world is not "world" or "world_the_end" or "world_nether":
        if player is not op:
            loop all players in world player's world:
                if player is not op:
                    add 1 to {_}
            if {_} is bigger than 1:
                send "&cW tym świecie jest już jeden gracz!"
                teleport player to spawn of world "world"

 

Działa! Dzięki. A da się jeszcze zrobić że jeśli gracz wejdzie na ten świat z rangą VIP to wywali tego co jest na świecie a dołączy VIP?

Odnośnik do komentarza
https://skript.pl/temat/38490-multiverse/#findComment-242926
Udostępnij na innych stronach

  • 0
on teleport:
    wait 10 ticks
    if player's world is not "world" or "world_the_end" or "world_nether":
        if player is not op:
            loop all players in world player's world:
                if loop-player is not op:
                    add 1 to {_}
            if {_} is bigger than 1:
                if player has permission "swiaty.vip":
                    loop all players in world player's world:
                        if "%loop-player%" is not "%player%":
                            if loop-player has permission "swiaty.vip":
                                send "&cW tym świecie jest już jeden gracz!"
                                teleport player to spawn of world "world"
                            else:
                                send "&cNa świat, w którym byłeś dołączyła osoba będąca &eVIP`em" to loop-player
                                teleport loop-player to spawn of world "world"
                else:
                    send "&cW tym świecie jest już jeden gracz!"
                    teleport player to spawn of world "world"

Proszę bardzo, ale wtedy do rangi vip musisz dopisać permisje swiaty.vip
 

 

--------------------------------------------------------

Pomogłem? Doceń to dając reakcje, lub oznaczając moja odpowiedź jako najlepszą!

Odnośnik do komentarza
https://skript.pl/temat/38490-multiverse/#findComment-242930
Udostępnij na innych stronach

  • 0
4 minuty temu, wiktorm12 napisał:

on teleport:
    wait 10 ticks
    if player's world is not "world" or "world_the_end" or "world_nether":
        if player is not op:
            loop all players in world player's world:
                if loop-player is not op:
                    add 1 to {_}
            if {_} is bigger than 1:
                if player has permission "swiaty.vip":
                    loop all players in world player's world:
                        if "%loop-player%" is not "%player%":
                            if loop-player has permission "swiaty.vip":
                                send "&cW tym świecie jest już jeden gracz!"
                                teleport player to spawn of world "world"
                            else:
                                send "&cNa świat, w którym byłeś dołączyła osoba będąca &eVIP`em" to loop-player
                                teleport loop-player to spawn of world "world"
                else:
                    send "&cW tym świecie jest już jeden gracz!"
                    teleport player to spawn of world "world"

Proszę bardzo, ale wtedy do rangi vip musisz dopisać permisje swiaty.vip
 

 

--------------------------------------------------------

Pomogłem? Doceń to dając reakcje, lub oznaczając moja odpowiedź jako najlepszą!

Dzięki

Odnośnik do komentarza
https://skript.pl/temat/38490-multiverse/#findComment-242932
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ę...