command /ch [<text>]:
trigger:
open chest with 1 rows named "&6Sektory" to player
set {_s} to 3
loop ("SkyPvP-1", "SkyPvP-2", "AfkPit"):
if {sektor::%player%} is loop-value:
set player's current inventory's slot 3 to minecart with chest named "&3SkyPvP - 1" with lore "&9Kliknij aby przeniesc sie na ten sektor" and "" and "&9Statystyki tego sektoru:" and "" and "&3Tps: &9%tps%" and "&3Online Graczy: &9%amount of all players in world "world"% "
else:
set player's current inventory's slot 5 to minecart with chest named "&3Afk Room" with lore "&9Kliknij aby przeniesc sie na ten sektor" and "" and "&9Statystyki tego sektoru:" and "" and "&3Tps: &9%tps%" and "&3Online Graczy: &9%amount of all players in world "afkpit"% "
add 1 to {_s}
on inventory click:
if inventory name of current inventory of player is "&6Sektory":
cancel event
if clicked slot is 3:
execute console command "mvtp %player% world"
set {sektor::%player%} to "skypvp-1"
if clicked slot is 5:
execute console command "mvtp %player% afkpit"
set {sektor::%player%} to "afkpit"
if clicked slot is 4:
jak ja proboje dodac to wywala bledy...
Pytanie
Pinczus 0
command /ch [<text>]:
trigger:
open chest with 1 rows named "&6Sektory" to player
set {_s} to 3
loop ("SkyPvP-1", "SkyPvP-2", "AfkPit"):
if {sektor::%player%} is loop-value:
set player's current inventory's slot 3 to minecart with chest named "&3SkyPvP - 1" with lore "&9Kliknij aby przeniesc sie na ten sektor" and "" and "&9Statystyki tego sektoru:" and "" and "&3Tps: &9%tps%" and "&3Online Graczy: &9%amount of all players in world "world"% "
else:
set player's current inventory's slot 5 to minecart with chest named "&3Afk Room" with lore "&9Kliknij aby przeniesc sie na ten sektor" and "" and "&9Statystyki tego sektoru:" and "" and "&3Tps: &9%tps%" and "&3Online Graczy: &9%amount of all players in world "afkpit"% "
add 1 to {_s}
on inventory click:
if inventory name of current inventory of player is "&6Sektory":
cancel event
if clicked slot is 3:
execute console command "mvtp %player% world"
set {sektor::%player%} to "skypvp-1"
if clicked slot is 5:
execute console command "mvtp %player% afkpit"
set {sektor::%player%} to "afkpit"
if clicked slot is 4:
jak ja proboje dodac to wywala bledy...
Odnośnik do komentarza
https://skript.pl/temat/56220-umie-ktos-dodac-do-tego-sektor-na-7-slocie/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ą.