command /pojazdy: trigger: open chest with 1 rows named "&aPojazdy&8»" to player set {otwieranie::gui::%player%} to true wait 1 ticks format slot 2 of player with 1 of 35:5 named "&fPociagi" to run [make player execute "iskleppociag"] format slot 3 of player with 1 of 35:5 named "&aSamochody" to run [make player execute "isklepsamochody"] format slot 4 of player with 1 of 35:5 named "&eHelikoptery" to run [make player execute "isklephelikoptery"] format slot 5 of player with 1 of 35:5 named "&6Miotly" to run [make player execute "isklepmiotly"] format slot 6 of player with 1 of 35:5 named "&cSamoloty" to run [make player execute "isklepsamoloty"] wait 2 second set {otwieranie::gui::%player%} to false command /iskleppociag: trigger: open chest with 1 rows named "&aPociag&8»" to player set {otwieranie::gui::%player%} to true wait 1 tick format slot 3 of player with 1 of 5 named "&6T1" with lore "&7Wolna kolej &aKoszt&7: &a40000 &2$" to run [make player execute "isklep kolej1"] format slot 4 of player with 1 of 5:1 named "&aT2" with lore "&7Normalna kolej &aKoszt&7: &a130000 &2$" to run [make player execute "isklep kolej2"] format slot 5 of player with 1 of 5:2 named "&2T3" with lore "&7Szybka kolej &aKoszt&7: &a300000 &2$" to run [make player execute "isklep kolej3"] set {otwieranie::gui::%player%} to false command /isklepsamochody: trigger: open chest with 1 rows named "&aSamochod&8»" to player set {otwieranie::gui::%player%} to true wait 1 tick format slot 3 of player with 1 of 5 named "&0Czarny" with lore "&7Normalny samochod &aKoszt&7: &a60000 &2$" to run [make player execute "isklep s1"] format slot 4 of player with 1 of 5:1 named "&dRozowy" with lore "&7Szybszy samochod &aKoszt&7: &a150000 &2$" to run [make player execute "isklep s2"] format slot 5 of player with 1 of 5:2 named "&eZolty" with lore "&7Najszybszy samochod &aKoszt&7: &a350000 &2$" to run [make player execute "isklep s3"] set {otwieranie::gui::%player%} to false command /isklephelikoptery: trigger: open chest with 1 rows named "&aHelikopter&8»" to player set {otwieranie::gui::%player%} to true wait 1 tick format slot 3 of player with 1 of 5 named "&6H1" with lore "&7Normalny helikopter &aKoszt&7: &a100000 &2$" to run [make player execute "isklep h1"] format slot 4 of player with 1 of 5:1 named "&aH2" with lore "&7Szybszy helikopter &aKoszt&7: &a150000 &2$" to run [make player execute "isklep h2"] format slot 5 of player with 1 of 5:2 named "&2H3" with lore "&7Najszybszy helikopter &aKoszt&7: &a350000 &2$" to run [make player execute "isklep h3"] command /isklepmiotly: trigger: open chest with 1 rows named "&aMiotly&8»" to player set {otwieranie::gui::%player%} to true wait 1 tick format slot 3 of player with 1 of 5 named "&6B1" with lore "&7Normalna miotla &aKoszt&7: &a60000 &2$" to run [make player execute "isklep mio1"] format slot 4 of player with 1 of 5:1 named "&aB2" with lore "&7Szybsza miotla &aKoszt&7: &a150000 &2$" to run [make player execute "isklep mio2"] format slot 5 of player with 1 of 5:2 named "&2B3" with lore "&7Najszybsza miotla &aKoszt&7: &a350000 &2$" to run [make player execute "isklep mio3"] command /isklepsamoloty: trigger: open chest with 1 rows named "&aSamolot&8»" to player set {otwieranie::gui::%player%} to true wait 1 tick format slot 3 of player with 1 of 5 named "&6P1" with lore "&7Normalny samolot &aKoszt&7: &a600000 &2$" to run [make player execute "isklep sa1"] format slot 4 of player with 1 of 5:1 named "&aP2" with lore "&7Szybszy samolot &aKoszt&7: &a1500000 &2$" to run [make player execute "isklep sa2"] format slot 5 of player with 1 of 5:2 named "&2P3" with lore "&7Najszybszy samolot &aKoszt&7: &a3500000 &2$" to run [make player execute "isklep sa3"] command /isklep []: trigger: if arg-1 is "kolej1": if player's money is less than 40000: send "&4&l&oBLAD&c» &cNie masz tyle $$$..." to player stop else: remove 40000 from player's balance execute console command "givetrain %player% T1" send "&2&l&o:) &aPomyslnie zakupiono kolej." to player stop if arg-1 is "kolej2": if player's money is less than 130000: send "&4&l&oBLAD&c» &cNie masz tyle $$$..." to player stop else: remove 130000 from player's balance execute console command "givetrain %player% T2" send "&2&l&o:) &aPomyslnie zakupiono kolej 2." to player stop if arg-1 is "kolej3": if player's money is less than 300000: send "&4&l&oBLAD&c» &cNie masz tyle $$$..." to player stop else: remove 300000 from player's balance execute console command "givetrain %player% T3" send "&2&l&o:) &aPomyslnie zakupiono kolej 3." to player stop