İstek Para Algılatma skripti calışmıyor

xcazzeri28

Kömür Madencisi
Satıcı
Mesajlar
102
En iyi cevaplar
1
Beğeniler
8
Puanları
130
Ruh hali
Kod:
command /+bas:
    trigger:
        if player has a diamond helmet of protection 4 and unbreaking 4:
            if 50000 is less than or equal to player's money:
                set {_chance} to a random integer between 1 and 100
                if {_chance} is between 1 and 5:
                    remove a diamond helmet of protection 4 and unbreaking 4 from player
                    give a diamond helmet of protection 5 and unbreaking 5 to player
                    send "&aN&eK&cBilgi &7> &aYükseltme başarılı!" to player
                if {_chance} is between 51 and 100:
                    remove a diamond helmet of protection 4 and unbreaking 4 from player
                    send "&aN&eK&cBilgi &7> &cYükseltme başarısız!" to player

" if 50000 is less than or equal to player's money:" şu kısım çalışmıyor neden acaba
 


Xosmuits

Kızıltaş Madencisi
Mesajlar
672
En iyi cevaplar
5
Beğeniler
359
Puanları
810
Ruh hali
Kod:
command /+bas:
    trigger:
        if player has a diamond helmet of protection 4 and unbreaking 4:
            if 50000 is less than or equal to player's money:
                set {_chance} to a random integer between 1 and 100
                if {_chance} is between 1 and 5:
                    remove a diamond helmet of protection 4 and unbreaking 4 from player
                    give a diamond helmet of protection 5 and unbreaking 5 to player
                    send "&aN&eK&cBilgi &7> &aYükseltme başarılı!" to player
                if {_chance} is between 51 and 100:
                    remove a diamond helmet of protection 4 and unbreaking 4 from player
                    send "&aN&eK&cBilgi &7> &cYükseltme başarısız!" to player

" if 50000 is less than or equal to player's money:" şu kısım çalışmıyor neden acaba
yanlış çünkü :1:
 

Gavatos

Demir Madencisi
Mesajlar
295
En iyi cevaplar
3
Beğeniler
168
Puanları
480
Ruh hali
PHP:
if player's money is less than or equal to 50000:
Bunu dene bakalım ?
 

Üst