Skocz do zawartości
  • 0

Inventory admina


Rico123098

Pytanie

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /admin:	
	permission: admin.cmd
	permission message: &8» &cBrak uprawnien: &8( &cADMIN.CMD &8)
	trigger:
		if {admin.status} is false:
			set {admin.status} to true
			set {ekwipunek.%player%} to serialized inventory of player
			set {helm.%player%} to helmet of the player
			set {klata.%player%} to chestplate of the player
			set {gacie.%player%} to legging of the player
			set {buty.%player%} to boots of the player
			set player's gamemode to creative
			clear player's inventory
			stop
			if {admin.status} is true:
				set {admin.status} to false
				set player's gamemode to survival
				equip the player with {helm.%player%} parsed as item
				equip the player with {klata.%player%} parsed as item
				equip the player with {gacie.%player%} parsed as item
				equip the player with {buty.%player%} parsed as item
				restore inventory of player from {ekwipunek.%player%}
				stop

Z dodatkiem SkQuery powinno zadziałać.
W razie błędów pisz tutaj.

Komenda:

/admin

Permisja:

admin.cmd

Odnośnik do komentarza
https://skript.pl/temat/52690-inventory-admina/#findComment-321889
Udostępnij na innych stronach

  • 0
2 godziny temu, xMarmo321 napisał:
command /admin:	
	permission: admin.cmd
	permission message: &8» &cBrak uprawnien: &8( &cADMIN.CMD &8)
	trigger:
		if {admin.status} is false:
			set {admin.status} to true
			set {ekwipunek.%player%} to serialized inventory of player
			set {helm.%player%} to helmet of the player
			set {klata.%player%} to chestplate of the player
			set {gacie.%player%} to legging of the player
			set {buty.%player%} to boots of the player
			set player's gamemode to creative
			clear player's inventory
			stop
			if {admin.status} is true:
				set {admin.status} to false
				set player's gamemode to survival
				equip the player with {helm.%player%} parsed as item
				equip the player with {klata.%player%} parsed as item
				equip the player with {gacie.%player%} parsed as item
				equip the player with {buty.%player%} parsed as item
				restore inventory of player from {ekwipunek.%player%}
				stop

Z dodatkiem SkQuery powinno zadziałać.
W razie błędów pisz tutaj.

Komenda:

/admin

Permisja:

admin.cmd

Testowałeś w ogóle ten kod? jest źle wytabowany

Odnośnik do komentarza
https://skript.pl/temat/52690-inventory-admina/#findComment-321905
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ę...