Çözüldü Para sınırı ekleme.

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

EmektaR_03

Yaratık Tuzağı: Çalışıyor
Katılım
21 Mayıs 2017
Mesajlar
679
Elmaslar
190
Puan
75
Yaş
24
Konum
Afyonkarahisar
Minecraft
MustafaPvP1

Discord:

EMEKTAR

Merhaba, paran olmasada oyuna bahis yatırabiliyor.Oyuncunun 1 lirası var 100m yatırabiliyor. Bunu ayarlayabilir misiniz ?

Kod:
options:
    p: &b[&6C&b]

command /casino [<int>]:
    trigger:
        if arg 1 is not set:
            send "&8&m-------------------------" to player
            send "{@p} &8/&acasino &8<&abahis&8>" to player
            send "{@p} &cKazanirsan bahisin 2 katini alirsin" to player
            send "&8&m-------------------------" to player
        if arg 1 is set:
            if arg 1 is greater than or equal to player's balance:
            remove arg-1 from player's balance
            send "{@p} &aHesabindan &c%arg-1%$ &aalindi." to player
            send player title "&55" with subtitle "&bbahis: &d%arg-1%" for 1 seconds
            wait 1 seconds
            send player title "&54" for 1 seconds
            wait 1 seconds
            send player title "&53" for 1 seconds
            wait 1 seconds
            send player title "&52" for 1 seconds
            wait 1 seconds
            send player title "&51" for 1 seconds
            wait 1 seconds
            set {kk} to a random integer between 1 and 2
            if {kk} is 1:
                set {para} to arg 1
                add arg 1 to {para}
                send player title "&aKazandin!" with subtitle "&a%{para}%$" for 1 seconds
                add {para} to player's account
                reset {para}
            if {kk} is 2:
                send player title "&cKaybettin!" with subtitle "&c%arg-1%$" for 1 seconds
 
Şöyle denermisin?
PHP:
options:
    p: &b[&6C&b]

command /casino [<int>]:
    trigger:
        if arg 1 is not set:
            send "&8&m-------------------------" to player
            send "{@p} &8/&acasino &8<&abahis&8>" to player
            send "{@p} &cKazanirsan bahisin 2 katini alirsin" to player
            send "&8&m-------------------------" to player
        if arg 1 is set:
            set {casino.%player%} to arg-1
            if {casino.%player%} is greater than or equal to player's balance:
                remove arg-1 from player's balance
                send "{@p} &aHesabindan &c%arg-1%$ &aalindi." to player
                send player title "&55" with subtitle "&bbahis: &d%arg-1%" for 1 seconds
                wait 1 seconds
                send player title "&54" for 1 seconds
                wait 1 seconds
                send player title "&53" for 1 seconds
                wait 1 seconds
                send player title "&52" for 1 seconds
                wait 1 seconds
                send player title "&51" for 1 seconds
                wait 1 seconds
                set {kk} to a random integer between 1 and 2
                if {kk} is 1:
                    set {para} to arg 1
                    add arg 1 to {para}
                    send player title "&aKazandin!" with subtitle "&a%{para}%$" for 1 seconds
                    add {para} to player's account
                    reset {para}
                if {kk} is 2:
                    send player title "&cKaybettin!" with subtitle "&c%arg-1%$" for 1 seconds
 
Param 0 ama /bahis 1 yazıyorum Param -1 oluyor.
 
Arkadaşım kendi sunucumda kullanıyorum ve buglarının oldugunu temin ederim! Kullanmayın bugları var.
 
@MoonLight adlı arkadaşın attığını dene sen tab hatası yapmışsın onda yok
 
Söyle dene
PHP:
options:
    p: &b[&6C&b]

command /casino [<int>]:
    trigger:
        if arg 1 is not set:
            send "&8&m-------------------------" to player
            send "{@p} &8/&acasino &8<&abahis&8>" to player
            send "{@p} &cKazanirsan bahisin 2 katini alirsin" to player
            send "&8&m-------------------------" to player
        if arg 1 is set:
            set {casino.%player%} to arg-1
            if player's balance is greater than or equal to {casino.%player%}:
                execute console command "eco take %player% %arg 1%"
                send "{@p} &aHesabindan &c%arg-1%$ &aalindi." to player
                send player title "&55" with subtitle "&bbahis: &d%arg-1%" for 1 seconds
                wait 1 seconds
                send player title "&54" for 1 seconds
                wait 1 seconds
                send player title "&53" for 1 seconds
                wait 1 seconds
                send player title "&52" for 1 seconds
                wait 1 seconds
                send player title "&51" for 1 seconds
                wait 1 seconds
                set {kk} to a random integer between 1 and 2
                if {kk} is 1:
                    set {para} to arg 1
                    add arg 1 to {para}
                    send player title "&aKazandin!" with subtitle "&a%{para}%$" for 1 seconds
                    add {para} to player's account
                    reset {para}
                if {kk} is 2:
                    send player title "&cKaybettin!" with subtitle "&c%arg-1%$" for 1 seconds
                else:
                    send "&fParanız yetmiyor"
[DOUBLEPOST=1513283770,1513283457][/DOUBLEPOST]Çözüldü kilit.
 
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