Skocz do zawartości
  • 0

Dodanie Permisji


Nuux

Pytanie

jezeli ktos umie to prosze aby dodal permisje (do kazdego kitu osobna)

Spoiler

command /kit [<text>]:
    trigger:
        open chest with 1 rows named "&8» &7Wybierz zestaw: " to player
        wait 1 ticks
        format slot 2 of player with 1 of 364 named "&8» &7Zestaw gracz" to close then run "ekit gracz %player%"
        format slot 3 of player with 1 of 322 named "&8» &7Zestaw &6VIP" to close then run "ekit vip %player%"
        format slot 4 of player with 1 of 322:1 named "&8» &7Zestaw &eSVIP" to close then run "ekit svip %player%"
        format slot 5 of player with 1 of 288 named "&8» &7Zestaw &aPiorko" to close then run "ekit piorko %player%"
        format slot 6 of player with 1 of 280 named "&8» &7Zestaw &cAdmin" to close then run "ekit admin %player%"

 

Odnośnik do komentarza
https://skript.pl/temat/22619-dodanie-permisji/
Udostępnij na innych stronach

16 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /kit [<text>]:
	trigger:
		open chest with 1 rows named "&8» &7Wybierz zestaw: " to player
		wait 1 ticks
		if player has permission "kit.gracz":
			format slot 2 of player with 1 of 364 named "&8» &7Zestaw gracz" to close then run "ekit gracz %player%"
  		else:
			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close
    	if player has permission "kit.vip":
			format slot 3 of player with 1 of 322 named "&8» &7Zestaw &6VIP" to close then run "ekit vip %player%"
    	else:
  			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close
    	if player has permission "kit.svip":
			format slot 4 of player with 1 of 322:1 named "&8» &7Zestaw &eSVIP" to close then run "ekit svip %player%"
    	else:
  			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close
    	if player has permission "kit.gracz":
			format slot 5 of player with 1 of 288 named "&8» &7Zestaw &aPiorko" to close then run "ekit piorko %player%"
    	else:
  			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close
    	if player has permission "kit.admin":
			format slot 6 of player with 1 of 280 named "&8» &7Zestaw &cAdmin" to close then run "ekit admin %player%"
    	else:
  			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close

Jak będzie jakiś error lub życzenie to napisz

Edytowane przez DaltonEZ
Odnośnik do komentarza
https://skript.pl/temat/22619-dodanie-permisji/#findComment-153902
Udostępnij na innych stronach

  • 0
7 minut temu, DaltonEZ napisał:

command /kit [<text>]:
	trigger:
		open chest with 1 rows named "&8» &7Wybierz zestaw: " to player
		wait 1 ticks
		if player has permission "kit.gracz":
			format slot 2 of player with 1 of 364 named "&8» &7Zestaw gracz" to close then run "ekit gracz %player%"
  		else:
			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close
    	if player has permission "kit.vip":
			format slot 3 of player with 1 of 322 named "&8» &7Zestaw &6VIP" to close then run "ekit vip %player%"
    	else:
  			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close
    	if player has permission "kit.svip":
			format slot 4 of player with 1 of 322:1 named "&8» &7Zestaw &eSVIP" to close then run "ekit svip %player%"
    	else:
  			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close
    	if player has permission "kit.gracz":
			format slot 5 of player with 1 of 288 named "&8» &7Zestaw &aPiorko" to close then run "ekit piorko %player%"
    	else:
  			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close
    	if player has permission "kit.admin":
			format slot 6 of player with 1 of 280 named "&8» &7Zestaw &cAdmin" to close then run "ekit admin %player%"
    	else:
  			format slot 2 of player with 1 of 364 named "&8» &cNie mozesz odebrać tego zestawu" to close

Jak będzie jakiś error lub życzenie to napisz

Kity dalej mozna brac bez permisji

 

11 minut temu, SirGeorge napisał:

Nwm czy o to chodzi ale proszę.

https://code.skript.pl/YrOXd5Th/

 

 

 

Nie ma itemow w GUI

Odnośnik do komentarza
https://skript.pl/temat/22619-dodanie-permisji/#findComment-153903
Udostępnij na innych stronach

  • 0
1 minutę temu, SirGeorge napisał:

Albo zle wytabowane albo nwm Pisze tak:

indentation error: expected 12 spaces, but found '________->' [-> = tab, _ = space, ? = other whitespace] (Kity.sk, line 15: format slot 6 of player with 1 of 280 named "&8» &7Zestaw &cAdmin" to close then run "ekit admin %player%"')

Odnośnik do komentarza
https://skript.pl/temat/22619-dodanie-permisji/#findComment-153905
Udostępnij na innych stronach

  • 0
Teraz, Nuux napisał:

Albo zle wytabowane albo nwm Pisze tak:

indentation error: expected 12 spaces, but found '________->' [-> = tab, _ = space, ? = other whitespace] (Kity.sk, line 15: format slot 6 of player with 1 of 280 named "&8» &7Zestaw &cAdmin" to close then run "ekit admin %player%"')

Tak zle wytabowane, sprawdz jak robisz na spacjach to zrob spacje tam albo taby

Odnośnik do komentarza
https://skript.pl/temat/22619-dodanie-permisji/#findComment-153906
Udostępnij na innych stronach

  • 0
1 minutę temu, SirGeorge napisał:

Tak zle wytabowane, sprawdz jak robisz na spacjach to zrob spacje tam albo taby

Zostaly 2 Errory:

Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '280' with e.g. 'stick'. (Kity.sk, line 15: format slot 6 of player with 1 of 280 named "&8» &7Zestaw &cAdmin" to close then run "ekit admin %player%"')

Odnośnik do komentarza
https://skript.pl/temat/22619-dodanie-permisji/#findComment-153907
Udostępnij na innych stronach

  • 0
Teraz, SirGeorge napisał:

Mi dziala wszystko, podaj te bledy.

[12:46:51 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '322' (GOLDEN_APPLE) in aliases-english.sk or the script's aliases section and use that instead. (Kity.sk, line 9: format slot 3 of player with 1 of 322 named "&8» &7Zestaw &6VIP" to close then run "ekit vip %player%"')
[12:46:51 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '322:1' with e.g. 'enchanted golden apple'. (Kity.sk, line 11: format slot 4 of player with 1 of 322:1 named "&8» &7Zestaw &eSVIP" to close then run "ekit svip %player%"')
[12:46:52 INFO]: [Skript] Encountered 2 errors while reloading Kity.sk!
Odnośnik do komentarza
https://skript.pl/temat/22619-dodanie-permisji/#findComment-153912
Udostępnij na innych stronach

  • 0
1 minutę temu, SirGeorge napisał:

Brakują ci alliasy, wez moje:

Wklej to do aliases-english.sk

https://code.skript.pl/etQA1LcR/

There doesn't exist a material with id 208! (aliases-english.sk, line 210: grass[(_| |-)]path¦s = 208')

ja mam pod 1.7 wersje serwer jak cos

Odnośnik do komentarza
https://skript.pl/temat/22619-dodanie-permisji/#findComment-153914
Udostępnij na innych stronach

  • 0
Teraz, Nuux napisał:

There doesn't exist a material with id 208! (aliases-english.sk, line 210: grass[(_| |-)]path¦s = 208')

ja mam pod 1.7 wersje serwer jak cos

Aaa wiesz co chodz na priv zeby nie zasmiecac tematu.

Odnośnik do komentarza
https://skript.pl/temat/22619-dodanie-permisji/#findComment-153916
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ę...