Skocz do zawartości
  • 0

Blokada i zamykanie gui


Shazad

Pytanie

Witam. Mam problem z wirtualnym menu otóż jestem w trakcie pisania skryptu na AntyAure i nie mam pojęcia jak to zrobić.
Oto KOD:
 

Spoiler

command /auraxd [<player>]:
    trigger:
        open chest with 1 rows named "&c&lAnty&f&lCheat" to argument-1
        wait 3 ticks
        format slot 0 of player with 1 of 160:7 named "&6-" to be unstealable
        format slot 1 of player with 1 of 160:7 named "&6-" to be unstealable
        format slot 2 of player with 1 of 160:7 named "&6-" to be unstealable
        format slot 3 of player with 1 of 160:7 named "&6-" to be unstealable
        format slot 4 of player with 1 of redstone torch on named "&bJestes sprawdzany zaczekaj chwile." to be unstealable
        format slot 5 of player with 1 of 160:7 named "&6-" to be unstealable
        format slot 6 of player with 1 of 160:7 named "&6-" to be unstealable
        format slot 7 of player with 1 of 160:7 named "&6-" to be unstealable
        format slot 8 of player with 1 of 160:7 named "&6-" to be unstealable

 

Chcę żeby po czasie 5 sekund menu się zamknęło a gracz sam nie mógł go zamknąć.
 

Odnośnik do komentarza
https://skript.pl/temat/11387-blokada-i-zamykanie-gui/
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /auraxd [<player>]:
	trigger:
        open chest with 1 rows named "&c&lAnty&f&lCheat" to arg 1
        wait 1 tick
		loop 9 times:
			format slot loop-number - 1 of arg 1 with 1 of 160:7 named "&6-" to be unstealable
        format slot 4 of arg 1 with 1 of redstone torch on named "&bJestes sprawdzany, zaczekaj chwile." to be unstealable
		wait 5 seconds
		close arg 1's inventory

on inventory close:
	if inventory name of current inventory of player is "&c&lAnty&f&lCheat":
		cancel event

Proszę. Skróciłem kod i poprawiłem.

Odnośnik do komentarza
https://skript.pl/temat/11387-blokada-i-zamykanie-gui/#findComment-82241
Udostępnij na innych stronach

  • 0
15 minut temu, Norbi napisał:

command /auraxd [<player>]:
	trigger:
        open chest with 1 rows named "&c&lAnty&f&lCheat" to arg 1
        wait 1 tick
		loop 9 times:
			format slot loop-number - 1 of arg 1 with 1 of 160:7 named "&6-" to be unstealable
        format slot 4 of arg 1 with 1 of redstone torch on named "&bJestes sprawdzany, zaczekaj chwile." to be unstealable
		wait 5 seconds
		close arg 1's inventory

on inventory close:
	if inventory name of current inventory of player is "&c&lAnty&f&lCheat":
		cancel event

Proszę. Skróciłem kod i poprawiłem.

Dzięki sprawdzę czy działa ;p
Nie działa sprawdz powód edycji...

Edytowane przez Shazad
EDIT1. Zakłada zamiast EQ szyby nie otwiera się menu.
Odnośnik do komentarza
https://skript.pl/temat/11387-blokada-i-zamykanie-gui/#findComment-82243
Udostępnij na innych stronach

  • 0

Poprawione i wytestowane:

command /auraxd [<player>]:
	trigger:
		set {antycheat::%arg 1%} to true
		open chest with 1 rows named "&c&lAnty&f&lCheat" to arg 1
		wait 1 tick
		loop 9 times:
			format slot loop-number - 1 of arg 1 with 1 of 160:7 named "&6-" to be unstealable
		format slot 4 of arg 1 with 1 of redstone torch on named "&bJestes sprawdzany, zaczekaj chwile." to be unstealable
		wait 5 seconds
		delete {antycheat::%arg 1%}
		close arg 1's inventory

on inventory close:
	if inventory name of current inventory of player is "&c&lAnty&f&lCheat":
		if {antycheat::%player%} is true:
			wait 1 tick
			open chest with 1 rows named "&c&lAnty&f&lCheat" to player
			wait 1 tick
			loop 9 times:
				format slot loop-number - 1 of player with 1 of 160:7 named "&6-" to be unstealable
			format slot 4 of player with 1 of redstone torch on named "&bJestes sprawdzany, zaczekaj chwile." to be unstealable
on join:
	delete {antycheat::%player%}

 

Odnośnik do komentarza
https://skript.pl/temat/11387-blokada-i-zamykanie-gui/#findComment-82248
Udostępnij na innych stronach

  • 0
22 minut temu, Norbi napisał:

Poprawione i wytestowane:


command /auraxd [<player>]:
	trigger:
		set {antycheat::%arg 1%} to true
		open chest with 1 rows named "&c&lAnty&f&lCheat" to arg 1
		wait 1 tick
		loop 9 times:
			format slot loop-number - 1 of arg 1 with 1 of 160:7 named "&6-" to be unstealable
		format slot 4 of arg 1 with 1 of redstone torch on named "&bJestes sprawdzany, zaczekaj chwile." to be unstealable
		wait 5 seconds
		delete {antycheat::%arg 1%}
		close arg 1's inventory

on inventory close:
	if inventory name of current inventory of player is "&c&lAnty&f&lCheat":
		if {antycheat::%player%} is true:
			wait 1 tick
			open chest with 1 rows named "&c&lAnty&f&lCheat" to player
			wait 1 tick
			loop 9 times:
				format slot loop-number - 1 of player with 1 of 160:7 named "&6-" to be unstealable
			format slot 4 of player with 1 of redstone torch on named "&bJestes sprawdzany, zaczekaj chwile." to be unstealable
on join:
	delete {antycheat::%player%}

 

Można zamknąć już działa dzięki.

Odnośnik do komentarza
https://skript.pl/temat/11387-blokada-i-zamykanie-gui/#findComment-82253
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ę...