on first join: set {konto.zalozone.%player%} to false set [bankomat.otwarty.%player%} to false variables: {konto.zalozone.%player%} = false [bankomat.otwarty.%player%} = false on rightclick on sign: if {konto.zalozone.%player%} is true if line 1 is "&3[Karta]": if line 2 is "Wyrob": if line 3 is "15$": give nether portal of unbreaking 50 named "&f&kaa&6&lKarta Kredytowa&f&kaa" to player send "&f[&2Bank&f]&6&lKarta Pomyslnie wyrobiona" to player if {konto.zalozone.%player%} is false if line 1 is "&3[Karta]": if line 2 is "Wyrob": if line 3 is "15$": send "&f[&2Bank&f]&6&lNajpierw musisz zalozyc konto" to player on rightclick on sign: if line 1 is "&3[Konto]"" if line 2 is "Zaloz": if line 3 is "0$": set {konto.zalozone.%player%} to true send "&f[&2Bank&f]&6&lKonto pomyslnie zalozone" to player on rightclick on sign: if line 1 is "&3[Bankomat]": set {bankomat.otwarty.%player%} to true send "&k----------------------------------------------------" to player send "&2&l Bankomat " to player send "&6&lAby sprawdzic stan konta wpisz stan " to player send "&6&lAby wyplacic pieniadze wpisz wyplac ilosc " to player send "&6&lAby wplacic pieniadze wpisz wplac ilosc " to player send "&6&lAby odejsc od bankomatu wpisz odejdz " to player send "&6&lAby zamienic monety wpisz zamien " to player send "&k----------------------------------------------------" to player on chat: if {bankomat.otwarty.%player%} is true set {ilosc} to arg 2 as number cancel event loop-text is "stan": console command "/money" on chat: if {bankomat.otwarty.%player%} is true set {ilosc} to arg 2 as number cancel event loop-text is "wyplac": console command "/eco take {ilosc}" send "&f[&2Bank&f]&6&lWyplaciles {ilosc}$" to player give {ilosc} gold nugget of unbreaking 51 named "&f&kaa&6&lJeden dolar&f&kaa" on chat: if {bankomat.otwarty.%player%} is true set {ilosc} to arg 2 as number cancel event loop-text is "wplac": remove {ilosc} gold nugget of unbreaking 51 from player console command "/eco give {ilosc}" send "&f[&2Bank&f]&6&lWplaciles {ilosc}$" to player on chat: if {bankomat.otwarty.%player%} is true set {ilosc} to arg 2 as number cancel event loop-text is "odejdz": set {bankomat.otwarty.%player%} to false send "&f[&2Bank&f]&6&lOdeszłeś od bankomatu" to player on chat: if {bankomat.otwarty.%player%} is true set {ilosc} to arg 2 as number cancel event loop-text is "zamien dolary": remove 10 glod nugget of unbreaking 51 from player give paper of unbreaking 52 named "&f&kaa&6&lDziesiec Dolarow&f&kaa" send "&f[&2Bank&f]&6&lZamieniles 10 dolarow w monetach na papierkowe 10 dolarow" to player on chat: if {bankomat.otwarty.%player%} is true set {ilosc} to arg 2 as number cancel event loop-text is "zamien papierkowe" remove paper of unbreaking 52 named "&f&kaa&6&lDziesiec Dolarow&f&kaa" give gold nuggets of 10 named "&f&kaa&6&lJeden dolar&f&kaa" send "&f[&2Bank&f]&6&lZamieniles papierkowe 10 dolarow na 10 w monetach" to player on chat: if {bankomat.otwarty.%player%} is true set {ilosc} to arg 2 as number cancel event loop-text is not "zamien dolary" or "zamien papierkowe" send "&f[&2Bank&f]&6&lAby zamienic monety wpisz zamien na monety a jaesli chcesz na papierkowe wpisz zamien na papierkowe" to player on walking on stone bricks: if {bankomat.otwarty.%player%} is true cancel event send "&f[&2Bank&f]&6&lAby moc sie poruszac odejdz od bankomatu jesli nadal nie mozesz wpisz /zbugowany" to player command "/zbugowany": trigger: teleport the player to spawn send "&6&lZostales odbugowany!" to player