Bulundu Kullanınca Para Veren Kod Yapma Skript İsteği !?

  • Konuyu Başlatan Konuyu Başlatan MTMCcraft
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 347
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

MTMCcraft

Bir Kömür Göründü Kaptanım!
Katılım
10 Aralık 2019
Mesajlar
159
Elmaslar
34
Puan
2.170
Minecraft
YoungCrow_YT

Discord:

YoungCrow#0423

Selam Arkadaşlar.
/kodayarla (kodismi) (vereceğipara) Yapınca Kod Oluşturucak Ve O Kodu Her Oyuncu 1 Defa Kullanabilecek. /kodsil (kodismi) İle Kodu Silicem. Bu Arada Oyuncular Kodu Böyle Kullanıcak /kod (kodismi)
 
Kod:
command /kod [<text>]:
    trigger:
        if {kod::*} contains arg 1:
            remove arg 1 from {kod::*}
            execute console command "eco give %player% %{kodpara::%arg 1%}%"
            send "&aKod girildi! Hesabına %{kodpara::%arg 1%}% TL aktarıldı!" to player
        else:
            send "&cLütfen geçerli bir kod gir!" to player

command /kodbelirle [<text>] [<int>]:
    trigger:
        if player is op:
            if arg 1 is set:
                if arg 2 is set:
                    add arg 1 to {kod::*}
                    set {kodpara::%arg 1%} to arg 2
                    send "&aKod belirlendi!" to player
                else:
                    send "&cGeçersiz kullanım! &4/kodbelirle <kod> <kodparası>" to player
            else:
                send "&cGeçersiz kullanım! &4/kodbelirle <kod> <kodparası>" to player
        else:
            send "&cYetersiz yetki!" to player

command /kodliste:
    trigger:
        if player is op:
            send "&6Kodlar:"
            send "&7%{kod::*}%"
        else:
            send "&cYetersiz yetki!" to player

command /kodsil [<text>]:
    trigger:
        if player is op:
            if {kod::*} contains arg 1:
                remove arg 1 from {kod::*}
                send "&cMevcut kod silindi!" to player
            else:
                send "&cBöyle bir kod bulunamadı. Kodları listelemek için: /kodliste" to player
        else:
            send "&cYetersiz yetki!" to player
Buyur, bu skriptlerden biri işine yarar diye düşünüyorum. Yukarıdaki skriptte kod sadece 1 oyuncu tarafından kullanılabiliyor, sonra kod siliniyor.
Aşağıdaki skriptte ise kod her oyuncu için 1 kez kullanılabiliyor. :melek:
Kod:
command /kod [<text>]:
    trigger:
        if {kod::*} contains arg 1:
            if {kodkullandi::%player%::%arg 1%} is not set:
                set {kodkullandi::%player%::%arg 1%} to true
                execute console command "eco give %player% %{kodpara::%arg 1%}%"
                send "&aKod girildi! Hesabına %{kodpara::%arg 1%}% TL aktarıldı!" to player
            else:
                send "&cBu kodu zaten kullanmışsın %player%!" to player
        else:
            send "&cLütfen geçerli bir kod gir!" to player

command /kodbelirle [<text>] [<int>]:
    trigger:
        if player is op:
            if arg 1 is set:
                if arg 2 is set:
                    add arg 1 to {kod::*}
                    set {kodpara::%arg 1%} to arg 2
                    send "&aKod belirlendi!" to player
                else:
                    send "&cGeçersiz kullanım! &4/kodbelirle <kod> <kodparası>" to player
            else:
                send "&cGeçersiz kullanım! &4/kodbelirle <kod> <kodparası>" to player
        else:
            send "&cYetersiz yetki!" to player

command /kodliste:
    trigger:
        if player is op:
            send "&6Kodlar:"
            send "&7%{kod::*}%"
        else:
            send "&cYetersiz yetki!" to player

command /kodsil [<text>]:
    trigger:
        if player is op:
            if {kod::*} contains arg 1:
                remove arg 1 from {kod::*}
                send "&cMevcut kod silindi!" to player
            else:
                send "&cBöyle bir kod bulunamadı. Kodları listelemek için: /kodliste" to player
        else:
            send "&cYetersiz yetki!" to player
 
Son düzenleme:
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst