Kredi Skriptindeki Hata

metin53487

Marangoz
En iyi cevaplar
0
Skripti Aşşağıdaki Linkten Aldım
https://forum.gamer.com.tr/konu/creditsystem-kredi-sistemi.336372/#post-1907489
Merhaba Ben Bu Kredi Sistemini Sunucumda Kullanmak Istiyorum Fakat /kredi sil Nick Miktar Yazınca Kredi -1 -2 vb Oluyor Ben Bunu Engellemek Istiyorum Nasıl Yapabilirim ? veya Mesela /paraal Yazıcaksın senden 5 kredi alıcak 2 m vericek fakat paran -1lere düşmiyecek . çoğu kredi skriptine baktım çoğu hatalı hatasız olanlardada böle bir bug var nasıl düzeltebilirim ?
skript
on join:
if {kredi.%player%} isn't set:
set {kredi.%player%} to 0
options:
prefix: &2&l[&a&lCreditSystem&2&l]



command /kredi [<text>] [<player>] [<int>]:
trigger:
if arg 1 isn't set:
if {kredi.%player%} isn't set:
{kredi.%player%} = 30
send "{@prefix} &8&lHesabinizda ki Kredi: &f&l%{kredi.%player%}%.00 TL"
if arg 1 is "yardim":
send "{@prefix} &e&l/kredi"
send "{@prefix} &e&l/kredi goster <oyuncu>"
send "{@prefix} &e&l/kredi reset <oyuncu>"
send "{@prefix} &e&l/kredi ekle <oyuncu> <miktar>"
send "{@prefix} &e&l/kredi sil <oyuncu> <miktar>"
send "{@prefix} &e&l/kredi gonder <oyuncu> <miktar>"
send "{@prefix} &e&l/kredi set <oyuncu> <miktar>"
if arg 1 is "goster":
if arg 2 is set:
send "{@prefix} &8&lOyuncunun Kredisi: &f&l%{kredi.%arg 2%}%.00 TL"
else:
send "{@prefix} &c&lLutfen Bir Oyuncu Secin!"
if arg 1 is "reset":
if arg 2 is set:
set {kredi.%arg 2%} to 30
send "{@prefix} &a&lOyuncunun Kredisi Sifirlandi!"
else:
send "{@prefix} &c&lLutfen Bir Oyuncu Secin!"
if arg 1 is "ekle":
if arg 2 is set:
if arg 3 is set:
add arg 3 to {kredi.%arg 2%}
send "{@prefix} &a&lOyuncuya &c&l%arg 3%.00 TL &a&lKredi Eklendi!"
else:
send "{@prefix} &c&lLutfen Bir Miktar Secin!"
else:
send "{@prefix} &c&lLutfen Bir Oyuncu Secin!"
if arg 1 is "sil":
if arg 2 is set:
if arg 3 is set:
remove arg 3 from {kredi.%arg 2%}
send "{@prefix} &a&lOyuncudan &c&l%arg 3%.00 TL &a&lKredi Silindi!"
else:
send "{@prefix} &c&lLutfen Bir Miktar Secin!"
else:
send "{@prefix} &c&lLutfen Bir Oyuncu Secin!"
if arg 1 is "gonder":
if arg 2 is set:
if arg 3 is set:
if {kredi.%player%} is greater than or equal to arg 3:
remove arg 3 from {kredi.%player%}
add arg 3 to {kredi.%arg 2%}
send "{@prefix} &a&lOyuncuya &c&l%arg 3%.00 TL &a&lKredi Gonderildi!" to player
send "{@prefix} &a&l%player% Sana &c&l%arg 3%.00 TL &a&lKredi Gonderdi!" to arg 2
else:
send "{@prefix} &c&lYeterli Kredin Yok!"
else:
send "{@prefix} &c&lLutfen Bir Miktar Secin!"
else:
send "{@prefix} &c&lLutfen Bir Oyuncu Secin!"
if arg 1 is "set":
if arg 2 is set:
if arg 3 is set:
set {kredi.%arg 2%} to arg 3
send "{@prefix} &a&lOyuncunun Kredisi Artik &c&l%{kredi.%arg 2%}%.00 TL"
else:
send "{@prefix} &c&lLutfen Bir Miktar Secin!"
else:
send "{@prefix} &c&lLutfen Bir Oyuncu Secin!"
 

ForcEmir

Elmas Madencisi
En iyi cevaplar
0
Forumda biraz araştırırsan daha kaliteli kredi skripti, mağaza vs vardır.
 
Son düzenleme:

KatilKorsanlar

Demir Madencisi
En iyi cevaplar
0
buyur;

Kod:
# ############################################################## #
#                                                                #
#                         AYARLAR                                #
#                                                                #
# ############################################################## #

Options:
    #Skript Versiyonu Lutfen Degismeyin.
    versiyon: 1.0

    #Guncelleme Kontrolu [1.1]'de Gelecek'tir!
    guncel: Evet
  
    #Bilgi Ekrani [1]
    bilgi1: VIP Suresi 1 Aydir.
  
    #Bilgi Ekrani [2]
    bilgi2: Krediler Gercek Paradir.
  
    #Bilgi Ekrani [3]
    bilgi3: Edit Kazma Ozellikleri.
  
    #VIP Ekrani [1]
    vip1: vip1
  
    #VIP Ekrani [2]
    vip2: vip2
  
    #VIP Ekrani [3]
    vip3: vip3
  
    #VIP Ekrani [4]
    vip4: Yok
  
    #Para Ekrani [1]
    sat1: 5M
  
    #Para Ekrani [2]
    sat2: 10M
  
    #Para Ekrani [3]
    sat3: 15M
  
    #Para Ekrani [4]
    sat4: 30M
  
    #Para Ekrani [5]
    sat5: 50M
  
    #Edit Ekrani [1]
    edit: EditKazma
  
    #Sunucu Ismi [Duzenlenebilir!]
    prefix: &9&lDark&6&lMC &c&lÂ> &r

# Otomatik Giriste Sorgulama Sistemi #

on join:
    if {kredi.%player%} is not set:
        set {kredi.%player%} to 0
      
# Magaza Sistemi + VIP - Para - Edit Item Satin Alma Sistemi #

command /magaza [<text>]:
    usage: &8[&cKoruma&8] &7Sadece &c/magaza &7Yazmaniz Yeterlidir&8!
    trigger:
        arg 1 isn't set:
            open chest with 5 row named "&cKredi: &e&l%{kredi.%player%}%" to player
            wait 3 tick
            format slot 0 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 1 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 2 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 3 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 4 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 5 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 6 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 7 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 8 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 9 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 11 of player with white glass named "&8&l&m-&r" with lore "" to close
            format slot 13 of player with red glass named "&8&l&m-&r" with lore "" to close
            format slot 15 of player with white glass named "&8&l&m-&r" with lore "" to close
            format slot 17 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 18 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 21 of player with yellow glass named "&8&l&m-&r" with lore "" to close
            format slot 23 of player with light green glass named "&8&l&m-&r" with lore "" to close
            format slot 26 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 27 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 29 of player with white glass named "&8&l&m-&r" with lore "" to close
            format slot 31 of player with blue glass named "&8&l&m-&r" with lore "" to close
            format slot 33 of player with white glass named "&8&l&m-&r" with lore "" to close
            format slot 35 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 36 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 37 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 38 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 39 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 40 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 41 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 42 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 43 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 44 of player with black glass named "&8&l&m-&r" with lore "" to close
            format slot 12 of player with iron block named "&a&lVIP" with lore "&7Gereken &cKredi: &e10 &7TL" to close then run [make player execute command "magaza Vip"]
            format slot 14 of player with gold block named "&c&lKral&a&lVIP" with lore "&7Gereken &cKredi: &e20 &7TL" to close then run [make player execute command "magaza KralVip"]
            format slot 30 of player with diamond block named "&5&lDark&a&lVIP" with lore "&7Gereken &cKredi: &e30 &7TL" to close then run [make player execute command "magaza DarkVip"]
            format slot 32 of player with emerald block named "&a&l{@vip4}" with lore "&7Gereken &cKredi: &e50 &7TL" to close then run [make player execute command "magaza {@vip4}"]
            format slot 10 of player with paper named "&1&l{@sat1}" with lore "&7Gereken &cKredi: &e4 &7TL" to close then run [make player execute command "magaza {@sat1}"]
            format slot 19 of player with paper named "&2&l{@sat2}" with lore "&7Gereken &cKredi: &e8 &7TL" to close then run [make player execute command "magaza {@sat2}"]
            format slot 28 of player with paper named "&3&l{@sat3}" with lore "&7Gereken &cKredi: &e12 &7TL" to close then run [make player execute command "magaza {@sat3}"]
            format slot 16 of player with paper named "&4&L{@sat4}" with lore "&7Gereken &cKredi: &e24 &7TL" to close then run [make player execute command "magaza {@sat4}"]
            format slot 20 of player with sugar named "&6&lBilgiler" with lore "&8&l&m-&r &41.&6 {@bilgi1} &8&l&m-&r" to close
            format slot 22 of player with sugar named "&6&lBilgiler" with lore "&8&l&m-&r &42.&e {@bilgi2} &8&l&m-&r" to close
            format slot 24 of player with sugar named "&6&lBilgiler" with lore "&8&l&m-&r &43.&b {@bilgi3} &8&l&m-&r" to close
            format slot 25 of player with paper named "&5&l{@sat5}" with lore "&7Gereken &cKredi: &e40 &7TL" to close then run [make player execute command "magaza {@sat5}"]
            format slot 34 of player with diamond pickaxe named "&6&lEdit Kazma" with lore "&7Gereken &cKredi: &e10 &7TL" to close then run [make player execute command "magaza {@edit}"]
        arg 1 is "{@vip1}":
            {kredi.%player%} is greater than 14:
                execute console command "manuadd %player% {@vip1}"
                add -30 to {kredi.%player%}
                broadcast "&8[&cSunucu&8] &e%player% &7adli Kisi &a&lVIP &7Satin Almistir&8!"
            else:
                send "{@prefix}&7Hesabiniz'da Yeterli &aKredi&7'niz Bulunmamakta&8!"
        arg 1 is "{@vip2}":
            {kredi.%player%} is greater than 24:
                execute console command "manuadd %player% {@vip2}"
                add -50 to {kredi.%player%}
                broadcast "&8[&cSunucu&8] &e%player% &7adli Kisi &c&lKral&a&lVIP &7Satin Almistir&8!"
            else:
                send "{@prefix}&7Hesabiniz'da Yeterli &aKredi&7'niz Bulunmamakta&8!"
        arg 1 is "{@vip3}":
            {kredi.%player%} is greater than 34:
                execute console command "manuadd %player% {@vip3}"
                add -90 to {kredi.%player%}
                broadcast "&8[&cSunucu&8] &e%player% &7adli Kisi &5&lDark&a&lVIP &7Satin Almistir&8!"
        arg 1 is "{@sat1}":
            {kredi.%player%} is greater than 1:
                execute console command "eco give %player% 5000000"
                add -2 to {kredi.%player%}
                broadcast "&8[&cSunucu&8] &e%player% &7adli Kisi &c{@sat1} &7Satin Almistir&8!"
            else:
                send "{@prefix}&7Hesabiniz'da Yeterli &aKredi&7'niz Bulunmamakta&8!"
        arg 1 is "{@sat2}":
            {kredi.%player%} is greater than 4:
                execute console command "eco give %player% 3000000"
                add -5 to {kredi.%player%}
                broadcast "&8[&cSunucu&8] &e%player% &7adli Kisi &c{@sat2} &7Satin Almistir&8!"
            else:
                send "{@prefix}&7Hesabiniz'da Yeterli &aKredi&7'niz Bulunmamakta&8!"
        arg 1 is "{@sat3}":
            {kredi.%player%} is greater than 9:
                execute console command "eco give %player% 50000000"
                add -10 to {kredi.%player%}
                broadcast "&8[&cSunucu&8] &e%player% &7adli Kisi &c{@sat3} &7Satin Almistir&8!"
            else:
                send "{@prefix}&7Hesabiniz'da Yeterli &aKredi&7'niz Bulunmamakta&8!"
        arg 1 is "{@sat4}":
            {kredi.%player%} is greater than 14:
                execute console command "eco give %player% 100000000"
                add -15 to {kredi.%player%}
                broadcast "&8[&cSunucu&8] &e%player% &7adli Kisi &c{@sat4} &7Satin Almistir&8!"
            else:
                send "{@prefix}&7Hesabiniz'da Yeterli &aKredi&7'niz Bulunmamakta&8!"
        arg 1 is "{@sat5}":
            {kredi.%player%} is greater than 29:
                execute console command "eco give %player% 250000000"
                add -30 to {kredi.%player%}
                broadcast "&8[&cSunucu&8] &e%player% &7adli Kisi &c{@sat5} &7Satin Almistir&8!"
            else:
                send "{@prefix}&7Hesabiniz'da Yeterli &aKredi&7'niz Bulunmamakta&8!"
        arg 1 is "{@edit}":
            {kredi.%player%} is greater than 14:
                execute console command "kit {@edit} %player%"
                add -15 to {kredi.%player%}
                broadcast "&8[&cSunucu&8] &e%player% &7adli Kisi &c{@edit} &7Satin Almistir&8!"
            else:
                send "{@prefix}&7Hesabiniz'da Yeterli &aKredi&7'niz Bulunmamakta&8!"
              
# Kullanici'ya Kredi Verme Sistemi #
            
command /kredi [<text=yardim>] [<offlineplayer>] [<int>]:
    usage: &c/Kredi &&bYardim &7Yazmaniz Yeterlidir&8!
    trigger:
        player is op:
            arg 1 is "yardim":
                message "&8&l&m-----&r &8[ &aKredi &bSistemi &4Kullanim &8]&r &8&l&m-----" to player
                message "&9> &7Kullanim: &c/Kredi &bVer &8[&eIsim&8] &8[&aKredi&8]" to player
                message "&9> &7Kullanim: &c/Kredi &bAl &8[&eIsim&8] &8[&aKredi&8]" to player
                message "&9> &7Kullanim: &c/Kredi &bBak &8[&eIsim&8]" to player
                message "&9> &7Kullanim: &c/Kredi &bSifirla &8[&eIsim&8]" to player
                message "&9> &7Versiyon: &d{@versiyon}" to player
                message "&9> &7Guncelmi: &a{@guncel}" to player
                message "&8&l&m-----&r &8[ &aKredi &bSistemi &4Kullanim &8]&r &8&l&m-----" to player
            arg 1 is "bak":
                if arg 2 is set:
                    if arg 3 is not set:
                        message "&8[&e%arg 2%&8] &7adli Kisinin &8[&a%{kredi.%arg 2%}%&8] &7Kredi'si Var&8!" to player
            if arg 1 is "ver":
                if arg 2 is set:
                    if arg 3 is set:
                        message "&7Yetkili, &8[&a%arg 3%&8] &7Kredi'yi Hesabiniza Yatirmistir&8!" to arg 2
                        message "&7Basariyla, &8[&e%arg 2%&8] &7adli Kisi'ye &8[&a%arg 3%&8] &7Kredi Verdiniz&8!" to player
                        add arg-3 to {kredi.%arg 2%}
            if arg 1 is "al":
                if arg 2 is set:
                    if arg 3 is set:
                        send "{@prefix} &7Basariyla, &8[&e%arg 2%&8] &7adli Kisi'den &8[&a%arg 3%&8] &7Kredi Aldiniz&8!"
                        remove arg-3 from {kredi.%arg 2%}
            if arg 1 is "sifirla":
                if arg 2 is set:
                    if arg 3 is not set:
                        send "{@prefix} &7Basariyla, &8[&e%arg 2%&8] &7adli Kisi'nin &aKredisi'ni &7Sifirladiniz&8!" to player
                        set {kredi.%arg 2%} to 0
      
# Kullanici'nin Kredi'sini Sorgulama Sistemi #

command /kredim:
    usage: &7Sadece &c/Kredim &7Yazmaniz Yeterlidir&8!
    trigger:
        send "{@prefix}&cKredi: &e&l%{kredi.%player%}% &aKredi'niz &7Var&8!"
 
Üst