/ATM komutu ile Banka Hesabına Giriş Yapınız. tek komut /ATM dir. :) Bazı Yerleri Alıntıdır!
Kod:
options:
Prefix: &6ATM>
variables:
{bank.%player%} = 0
command /atm:
trigger:
wait 2 tick
open chest with 2 rows named "&nATM" to player
wait 2 tick
format slot 0 of player with 1 of gold ingot named "&e100TL" with lore "&6100 TL Yatır" to run "100 %player%"
format slot 1 of player with 1 of gold ingot named "&e1000TL" with lore "&61.000TL Yatır" to run "1000 %player%"
format slot 2 of player with 1 of gold ingot named "&e10000TL" with lore "&610.000TL Yatır" to run "10000 %player%"
format slot 3 of player with 1 of gold ingot named "&e100000TL" with lore "&6100.000TL Yatır" to run "100000 %player%"
format slot 4 of player with 1 of gold ingot named "&e100000TL" with lore "&61.000.000TL Yatır" to run "1000000 %player%"
format slot 5 of player with 1 of black stained glass named " " to run "2 %player%"
format slot 6 of player with 1 of purple dye named "&aBankadaki Paran: %{bank.%player%}%" to run "2 %player%"
format slot 7 of player with 1 of black stained glass named " " to run "2 %player%"
format slot 8 of player with 1 of red wool named "&4Atmyi Kapat" to close
format slot 9 of player with 1 of iron ingot named "&a100TL" with lore "&2100TL Çek" to run "100a %player%"
format slot 10 of player with 1 of iron ingot named "&a1000TL" with lore "&21.000TL Çek" to run "1000a %player%"
format slot 11 of player with 1 of iron ingot named "&a10000TL" with lore "&210.000 TL Çek" to run "10000a %player%"
format slot 12 of player with 1 of iron ingot named "&a100000TL" with lore "&2100.000 TL Çek" to run "100000a %player%"
format slot 13 of player with 1 of iron ingot named "&a1000000TL" with lore "&21.000.000 TL Çek" to run "1000000a %player%"
format slot 14 of player with 1 of black stained glass named " " to run "2 %player%"
format slot 15 of player with 1 of magenta dye named "&bSahip olduğun Miktar:: %player's balance% " to run "2 %player%"
format slot 16 of player with 1 of black stained glass named " " to run "2 %player%"
format slot 17 of player with 1 of red wool named "&4Atmyi Kapat" to close
command /100 [<player>]:
executable by: console
trigger:
if player-arg's money is greater or equal to 100:
remove 100 from player-arg's balance
wait 1 tick
add 100 to {bank.%player-arg%}
play raw sound "note.pling" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatıracak kadar paran yok" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
command /1000 [<player>]:
executable by: console
trigger:
if player-arg's money is greater or equal to 1000:
remove 1000 from player-arg's balance
wait 1 tick
add 1000 to {bank.%player-arg%}
play raw sound "note.pling" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatıracak kadar paran yok" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
command /10000 [<player>]:
executable by: console
trigger:
if player-arg's money is greater or equal to 10000:
remove 10000 from player-arg's balance
wait 1 tick
add 10000 to {bank.%player-arg%}
play raw sound "note.pling" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatıracak kadar paran yok!" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
command /100000 [<player>]:
executable by: console
trigger:
if player-arg's money is greater or equal to 100000:
remove 100000 from player-arg's balance
wait 1 tick
add 100000 to {bank.%player-arg%}
play raw sound "note.pling" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatıracak kadar paran yok" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
command /1000000 [<player>]:
executable by: console
trigger:
if player-arg's money is greater or equal to 1000000:
remove 1000000 from player-arg's balance
wait 1 tick
add 1000000 to {bank.%player-arg%}
play raw sound "note.pling" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatıracak kadar paran yok" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
command /100a [<player>]:
executable by: console
trigger:
if {bank.%player-arg%} is greater than or equal to 100:
remove 100 from {bank.%player-arg%}
wait 1 tick
add 100 to player-arg's balance
play raw sound "note.snare" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatılı bu kadar paran yok!" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "bank"
command /1000a [<player>]:
executable by: console
trigger:
if {bank.%player-arg%} is greater than or equal to 1000:
remove 1000 from {bank.%player-arg%}
wait 1 tick
add 1000 to player-arg's balance
play raw sound "note.snare" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatılı bu kadar paran yok!" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
command /10000a [<player>]:
executable by: console
trigger:
if {atm.%player-arg%} is greater than or equal to 10000:
remove 10000 from {atm.%player-arg%}
wait 1 tick
add 10000 to player-arg's balance
play raw sound "note.snare" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatılı bu kadar paran yok!" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
command /100000a [<player>]:
executable by: console
trigger:
if {bank.%player-arg%} is greater than or equal to 100000:
remove 100000 from {bank.%player-arg%}
wait 1 tick
add 100000 to player-arg's balance
play raw sound "note.snare" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatılı bu kadar paran yok!" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
command /1000000a [<player>]:
executable by: console
trigger:
if {bank.%player-arg%} is greater than or equal to 1000000:
remove 1000000 from {bank.%player-arg%}
wait 1 tick
add 1000000 to player-arg's balance
play raw sound "note.snare" at player-arg with pitch 1 volume 5
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
else:
send "{@Prefix} &cYatılı bu kadar paran yok!" to player-arg
play raw sound "note.bass" at player-arg with pitch 1 volume 20
wait 1 tick
close player-arg's inventory
execute player-arg command "atm"
command /2 [<player>]:
executable by: console
trigger:
close player-arg's inventory
execute player-arg command "atm"
on sign change:
player has permission "bank.admin"
line 1 is "[ATM]"
set line 1 to "&0[&4&lBANKA&0]"
set line 2 to "&6&lTikla!"
stop
on right click on sign:
if line 1 of clicked block is "&0[&4&lBANKA&0]":
execute player command "atm"
play raw sound "tile.piston.in" at player with pitch 1 volume 20
stop