BaRaNz
Odunlara Vur Vur Vur!
- Katılım
- 13 Ocak 2019
- Mesajlar
- 45
- Elmaslar
- 5
- Puan
- 0
- Yaş
- 26
- Minecraft
- SoulMan
Arkadaşlar Ben Bitcoin Skripti İçin Zaman Ayarladım Ama Olmuyor Yani Dakikada 1 Değişiyor diyelim 300 tl oluyor ama sisteme işlemiyor tabi dk 1 diye ayarlamayın bunu ben sunucu içerisinde yapabiliyorum zaten /bitcoin zaman ayarlar şeklinde yapabiliyorum onu bi hallederseniz
Kod:
options:
p: &8[&cSunucu&fİsmi&8] »
sayi1: 10 #bitcoin en az fiyat
sayi2: 1000 #bitcoin en fazla fiyat
variables:
{bitcoin::%player%} = 0
command /bitcoin [<text>] [<text>] [<int>]:
trigger:
if arg-1 isn't set:
open virtual chest inventory with size 1 named "&cBitcoin" to player
make gui slot 0 of player with gold_ingot named "&6Bitcoin Al" with lore " ||&8- &7Fiyat: &c%{bitcoinfiyat}% TL" to run player command "bitcoin al"
make gui slot 4 of player with skull of player named "&6Bitcoin" with lore " ||&8- &7Bitcoin miktarın: &c%{bitcoin::%player%}%||&8- &7Bitcoin fiyatı &c%{bitcoinkdk}% &7dakika sonra değişecek||&8- &cYAPIMCI: &3BaRaNz(SoulMan)" to nothing
make gui slot 8 of player with gold_ingot named "&6Bitcoin Sat" with lore " ||&8- &7Fiyat: &a%{bitcoinfiyat}% TL" to run player command "bitcoin sat"
make gui slot 11 of player with player head named "&aYapımcı" with lore "&cBaRaNz(SoulMan) :)" to run ""
if arg-1 is "al":
if {bitcoinfiyat} isn't set:
send "{@p} &7Bitcoin fiyatı henüz belirlenmemiş."
stop
if player's balance is greater than or equal to {bitcoinfiyat}:
subtract {bitcoinfiyat} from player's money
add 1 to {bitcoin::%player%}
send "{@p} &7Bitcoin başarıyla alındı! Şu anki bitcoin miktarın: &c%{bitcoin::%player%}%"
else:
send "{@p} &7Yeterli miktarda paran yok. Gereken miktar: &c%{bitcoinfiyat}%"
if arg-1 is "sat":
if {bitcoinfiyat} isn't set:
send "{@p} &7Bitcoin fiyatı henüz belirlenmemiş."
stop
if {bitcoin::%player%} is greater than or equal to 1:
add {bitcoinfiyat} to player's money
remove 1 from {bitcoin::%player%}
send "{@p} &7Bitcoin başarıyla satıldı!"
else:
send "{@p} &7Hiç bitcoine sahip değilsin!"
if arg-1 is "fiyat":
if arg-2 is "belirle":
if player have permission "bitcoin.yetkili":
if arg-3 isn't set:
send "{@p} &cBir fiyat belirtmelisin."
if arg-3 is set:
set {bitcoinfiyat} to arg-3
send "{@p} &7Bitcoin fiyatı &c%arg-3% &7olarak belirlendi."
else:
send "{@p} &7Üzgünüm, yetkin yok :/"
if arg-2 isn't set:
if {bitcoinfiyat} isn't set:
send "{@p} &7Şu anki bitcoin fiyatı: &cBelirlenmemiş"
else:
send "{@p} &7Şu anki bitcoin fiyatı: &c%{bitcoinfiyat}%"
if arg-1 is "zaman":
if arg-2 is "belirle":
if player have permission "bitcoin.yetkili":
if arg-3 isn't set:
send "{@p} &7Bir sayı belirtmelisin."
else:
set {bitcoindk} to arg-3
set {bitcoinkdk} to {bitcoindk}
send "{@p} &7Bitcoin fiyatı &c%arg-3% dakikada &7bir değişecek."
else:
send "{@p} &7Üzgünüm, yetkin yok :/"
if arg-2 isn't set:
if {bitcoinfiyat} isn't set:
send "{@p} &7Şu anki bitcoin fiyatı: &cBelirlenmemiş"
else:
send "{@p} &7Şu anki bitcoin fiyatı: &c%{bitcoinfiyat}%"
if arg-1 is "görüntüle":
if player have permission "bitcoin.yetkili":
if arg-2 is set:
if {bitcoin::%arg-2%} isn't set:
send "{@p} &c%arg-2% &7adlı oyuncunun bitcoin miktarı: &cBelirlenmemiş"
else:
send "{@p} &c%arg-2% &7adlı oyuncunun bitcoin miktarı: &c%{bitcoin::%arg-2%}%"
else:
send "{@p} &7Oyuncu adı belirtmelisin!"
else:
send "{@p} &7Üzgünüm, yetkin yok :/"
if arg-1 is "sıfırla":
if player have permission "bitcoin.yetkili":
if arg-2 is set:
set {bitcoin::%arg-2%} to 0
send "{@p} &c%arg-2% &7adlı oyuncunun bitcoin miktarı sıfırlandı."
else:
send "{@p} &7Oyuncu adı belirtmelisin!"
else:
send "{@p} &7Üzgünüm, yetkin yok :/"
if arg-1 isn't "sıfırla" or "görüntüle" or "al" or "sat" or "fiyat":
send "&8&m---------&r &a&lBitcoin &8&m---------"
send "&b/bitcoin &8- &aBitcoin menüsünü açar."
send "&b/bitcoin al &8- &aBitcoin alır."
send "&b/bitcoin sat &8- &aBitcoin satar."
send "&b/bitcoin fiyat &8- &aBitcoin fiyatını görüntüler."
if player have permission "bitcoin.yetkili":
send "&b/bitcoin fiyat belirle <fiyat> &8- &aBitcoin fiyatını belirler."
send "&b/bitcoin görüntüle <oyuncu_adı> &8- &aBelirtilen oyuncunun bitcoin miktarını görüntüler."
send "&b/bitcoin sıfırla <oyuncu_adı> &8- &aBelirtilen oyuncunun bitcoin miktarını sıfırlar."
send "&b/bitcoin zaman belirle <dakika> &8- &aBitcoin fiyatının belirtilen dakikada bir değişmesini sağlar."
every 1 minutes:
remove 1 from {bitcoinkdk}
if {bitcoinkdk} is 0:
set {_sayi} to random integer between {@sayi1} and {@sayi2}
execute console command "bitcoin fiyat belirle %{_sayi}%"
set {bitcoinkdk} to {bitcoindk}
send "{@p} &7Bitcoin fiyatı &c%{_sayi}% TL &7olarak değişti." to players