Siema, mam problem ze skryptem. Mianowicie gdy klikam w ikonki w gui moge je zabierac i nie odpala sie komenda. Dziala tylko jedynie gdy mam range gracz na startowym kicie
kod skryptu:
variables:
czas.start.%player%=0
czas.vip.%player%=0
czas.svip.%player%=0
czas.yt.%player%=0
every 1 seconds:
loop all players:if{czas.start.%loop-player%} is less than 2:set{czas.start.%loop-player%} to "teraz"if{czas.vip.%loop-player%} is less than 2:set{czas.vip.%loop-player%} to "teraz"if{czas.svip.%loop-player%} is less than 2:set{czas.svip.%loop-player%} to "teraz"if{czas.yt.%loop-player%} is less than 2:set{czas.yt.%loop-player%} to "teraz"
command /kits [<text>]:
trigger:
arg 1 is not set:
execute player command "/kit"
arg 1 is set:
execute player command "/kit"
command /kit:
trigger:if player have permission "whitehc.kitgracz":
open chest with1 rows named "&7Zestawy" to player
format slot 0of player with1of chainmail helmet named "&8» &aStart" to close then run [execute player command "/dajkita start"]
format slot 1of player with1of steak named "&8» &aJedzenie" to close then run [execute player command "/dajkita jedzenie"]
format slot 2of player with1of ender chest named "&8» &aEnderchest" to close then run [execute player command "/dajkita enderchest"]if player have permission "whitehc.kitvip":
open chest with1 rows named "&7Zestawy" to player
format slot 0of player with1of chainmail helmet named "&8» &aStart" to close then run [execute player command "/dajkita start"]
format slot 1of player with1of diamond helmet named "&8» &aVIP" to close then run [execute player command "/dajkita vip"]
format slot 2of player with1of tnt named "&8» &aTNT" to close then run [execute player command "/dajkita tnt"]
format slot 3of player with1of steak named "&8» &aJedzenie" to close then run [execute player command "/dajkita jedzenie"]
format slot 4of player with1of ender chest named "&8» &aEnderchest" to close then run [execute player command "/dajkita enderchest"]if player have permission "whitehc.kitsvip":
open chest with1 rows named "&7Zestawy" to player
format slot 0of player with1of chainmail helmet named "&8» &aStart" to close then run [execute player command "/dajkita start"]
format slot 1of player with1of diamond helmet named "&8» &aVIP" to close then run [execute player command "/dajkita vip"]
format slot 2of player with1of diamond helmet named "&8» &aSVIP" to close then run [execute player command "/dajkita svip"]
format slot 3of player with1of tnt named "&8» &aTNT" to close then run [execute player command "/dajkita tnt"]
format slot 4of player with1of steak named "&8» &aJedzenie" to close then run [execute player command "/dajkita jedzenie"]
format slot 5of player with1of ender chest named "&8» &aEnderchest" to close then run [execute player command "/dajkita enderchest"]if player have permission "whitehc.kitsponsor":
open chest with1 rows named "&7Zestawy" to player
format slot 0of player with1of chainmail helmet named "&8» &aStart" to close then run [execute player command "/dajkita start"]
format slot 1of player with1of diamond helmet named "&8» &aVIP" to close then run [execute player command "/dajkita vip"]
format slot 2of player with1of diamond helmet named "&8» &aSVIP" to close then run [execute player command "/dajkita svip"]
format slot 3of player with1of tnt named "&8» &aTNT" to close then run [execute player command "/dajkita tnt"]
format slot 4of player with1of tnt named "&8» &aSponsor" to close then run [execute player command "/dajkita sponsor"]
format slot 5of player with1of steak named "&8» &aJedzenie" to close then run [execute player command "/dajkita jedzenie"]
format slot 6of player with1of ender chest named "&8» &aEnderchest" to close then run [execute player command "/dajkita enderchest"]
command /dajkita [<text>]:
trigger:if argument 1 is "start":if player has permission "whitehc.kitdajgracz":if{czas.start.%player%} is "teraz":
open chest with1 rows named "&7Zestaw &e%arg 1%" to player
set slot 0of current inventory of player to diamond helmet of protection 4, unbreaking 3set slot 1of current inventory of player to diamond chestplate of protection 4, unbreaking 3set slot 2of current inventory of player to diamond leggings of protection 4, unbreaking 3set slot 3of current inventory of player to diamond boots of protection 4, unbreaking 3set slot 4of current inventory of player to diamond sword of sharpness 5, fire aspect 2set slot 5of current inventory of player to diamond pickaxe of efficiency 5, unbreaking 3set slot 6of current inventory of player to diamond axe of efficiency 5, unbreaking 3set slot 7of current inventory of player to 20 enchanted golden apple
set slot 8of current inventory of player to 40 golden apple
set{czas.start.%player%} to 10800
send "&8» &7Odebrales zestaw &eyt"
loop 10800 times:
wait 1 real seconds
remove 1 from {czas.start.%player%}else:
send "&8» &7Ten zestaw jest dostepny za &c%{czas.start.%player%}% &7sekund"else:
send "&8» &7Nie masz uprawnien!"
jak cos tu nie jest jeszcze cale zrobione bo dla testu robilem
Pytanie
JaTuTylkoYT 0
Siema, mam problem ze skryptem. Mianowicie gdy klikam w ikonki w gui moge je zabierac i nie odpala sie komenda. Dziala tylko jedynie gdy mam range gracz na startowym kicie
kod skryptu:
jak cos tu nie jest jeszcze cale zrobione bo dla testu robilem
Edytowane przez xNightPower_Umieszczam kod w code.
Odnośnik do komentarza
Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.