[İSTEK] Bir Komuta CoolDown Ekleme

imFoRTe

Zombi Katili
En iyi cevaplar
0
Başlıktada Belirttiğim Gibi Ben Bir Komuta CoolDown Eklemek İstiyorum..
/F Tag Yazıldığında Tekrar Yazması İçin 10 Dk Beklemesinin Gerekmesini İstiyorum Bu Komutu Yazınca 10 DK Beklemeden Yazamasın İstiyorum...
Yapabilicek Olan Varmı?

İyi Forumlar.....
 

Avioteto

Zombi Katili
En iyi cevaplar
0
Buyur Kardeşim
Kod:
on first join:
    set {KullanmaIzni.%player%} to true
command /f <text>:
    trigger:
        if arg 1 is "tag":
            if {KullanmaIzni.%player%} is true:
                send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player
                set {KullanmaIzni.%player%} to false
                wait 10 real minutes
                set {KullanmaIzni.%player%} to true
                stop
            if {KullanmaIzni.%player%} is false:
                cancel event
                send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player
                stop
 
Son düzenleme:

iZeckGH

Obsidyen Madencisi
En iyi cevaplar
0
Buyur Kardeşim
Kod:
on first join:
    set {KullanmaIzni.%player%} to true
command f <text>:
    trigger:
        if {KullanmaIzni.%player%} is true:
            send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player
            set {KullanmaIzni.%player%} to false
            wait 10 real minutes
            set {KullanmaIzni.%player%} to true
            stop
        if {KullanmaIzni.%player%} is false:
            cancel event
            send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player
            stop
/f olması lazım.
 

imFoRTe

Zombi Katili
En iyi cevaplar
0
Buyur Kardeşim
Kod:
on first join:
    set {KullanmaIzni.%player%} to true
command /f <text>:
    trigger:
        if arg 1 is "tag":
            if {KullanmaIzni.%player%} is true:
                send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player
                set {KullanmaIzni.%player%} to false
                wait 10 real minutes
                set {KullanmaIzni.%player%} to true
                stop
            if {KullanmaIzni.%player%} is false:
                cancel event
                send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player
                stop
A command event cannot be cancelled (faction.sk, line 13: cancel event')
Bu Hatayı Alıyorum?
 

imFoRTe

Zombi Katili
En iyi cevaplar
0
Çünkü komutlar iptal edilemez. Command yazısını on command ile değiştirin.
can't understand this condition: 'trigger' (faction.sk, line 4: trigger:')
Kod:
on first join:
    set {izin.%player%} to true
on command "/f <text>":
    trigger:
        if arg 1 is "tag":
            if {izin.%player%} is true:
                send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player
                set {izin.%player%} to false
                wait 10 real minutes
                set {izin.%player%} to true
                stop
            if {izin.%player%} is false:
                cancel event
                send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player
                stop
 

Krumb069

Nether Yerlisi
En iyi cevaplar
1
@Avioteto
Cooldown kullanırken "wait x seconds" kullanmayın sunucu kapanırsa gider ayrıca ne kadar zaman kaldığını gösteremeziniz.
Kod:
set {_difference} to difference between {izin.%player%} and now
                if {_difference} is less than 10 minutes:
                        set  {_difference} to difference between {_difference} and 10 minutes
                        message "Bu komutu kullanmak için %{_difference}% süre beklemelisin. "
bu kod sayesinde hem ne kadar süre kaldığını gösterirsiniz hem de reloaddan sonra gitmez
 

Bartuzen

Bedrock Kaşifi
En iyi cevaplar
0
can't understand this condition: 'trigger' (faction.sk, line 4: trigger:')
Kod:
on first join:
    set {izin.%player%} to true
on command "/f <text>":
    trigger:
        if arg 1 is "tag":
            if {izin.%player%} is true:
                send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player
                set {izin.%player%} to false
                wait 10 real minutes
                set {izin.%player%} to true
                stop
            if {izin.%player%} is false:
                cancel event
                send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player
                stop
On command'a trigger koyamazsın. Onu kaldır ve tabları düzelt.
 

imFoRTe

Zombi Katili
En iyi cevaplar
0
On command'a trigger koyamazsın. Onu kaldır ve tabları düzelt.
Hata Almadım fakat sürede bekletmiyor?
Kod:
on first join:
    set {izin.%player%} to true
on command "/f <text>":
    if arg 1 is "tag":
        if {izin.%player%} is true:
            send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player
            set {izin.%player%} to false
            wait 10 real minutes
            set {izin.%player%} to true
            stop
        if {izin.%player%} is false:
            cancel event
            send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player
            stop
[DOUBLEPOST=1436603773,1436603560][/DOUBLEPOST]
@Avioteto
Cooldown kullanırken "wait x seconds" kullanmayın sunucu kapanırsa gider ayrıca ne kadar zaman kaldığını gösteremeziniz.
Kod:
set {_difference} to difference between {izin.%player%} and now
                if {_difference} is less than 10 minutes:
                        set  {_difference} to difference between {_difference} and 10 minutes
                        message "Bu komutu kullanmak için %{_difference}% süre beklemelisin. "
bu kod sayesinde hem ne kadar süre kaldığını gösterirsiniz hem de reloaddan sonra gitmez
Skriptten Anlamıyorum Fazla, Birleştirebilirmisin Sen?
 

Bartuzen

Bedrock Kaşifi
En iyi cevaplar
0
Kod:
on command "/f tag":
    set {_difference} to difference between {izin.%player%} and now
                if {_difference} is less than 10 minutes:
                        set  {_difference} to difference between {_difference} and 10 minutes
                        message "Bu komutu kullanmak için %{_difference}% süre beklemelisin."
                        cancel event
Çalışması lazım.
 

imFoRTe

Zombi Katili
En iyi cevaplar
0
Kod:
on command "/f tag":
    set {_difference} to difference between {izin.%player%} and now
                if {_difference} is less than 10 minutes:
                        set  {_difference} to difference between {_difference} and 10 minutes
                        message "Bu komutu kullanmak için %{_difference}% süre beklemelisin."
                        cancel event
Çalışması lazım.
indentation error: expected 4 spaces, but found 16 spaces (faction.sk, line 3: if {_difference} is less than 10 minutes:')
indentation error: expected 4 spaces, but found 24 spaces (faction.sk, line 4: set {_difference} to difference between {_difference} and 10 minutes')
indentation error: expected 4 spaces, but found 24 spaces (faction.sk, line 5: message "Bu komutu kullanmak için %{_difference}% süre beklemelisin."')
indentation error: expected 4 spaces, but found 24 spaces (faction.sk, line 6: cancel event')
 

Bartuzen

Bedrock Kaşifi
En iyi cevaplar
0
indentation error: expected 4 spaces, but found 16 spaces (faction.sk, line 3: if {_difference} is less than 10 minutes:')
indentation error: expected 4 spaces, but found 24 spaces (faction.sk, line 4: set {_difference} to difference between {_difference} and 10 minutes')
indentation error: expected 4 spaces, but found 24 spaces (faction.sk, line 5: message "Bu komutu kullanmak için %{_difference}% süre beklemelisin."')
indentation error: expected 4 spaces, but found 24 spaces (faction.sk, line 6: cancel event')
Kod:
on command "/f tag":
    set {_difference} to difference between {izin.%player%} and now
    {_difference} is less than 10 minutes
    set  {_difference} to difference between {_difference} and 10 minutes
    message "Bu komutu kullanmak için %{_difference}% süre beklemelisin."
    cancel event
 

imFoRTe

Zombi Katili
En iyi cevaplar
0
Kod:
on command "/f tag":
    set {_difference} to difference between {izin.%player%} and now
    {_difference} is less than 10 minutes
    set  {_difference} to difference between {_difference} and 10 minutes
    message "Bu komutu kullanmak için %{_difference}% süre beklemelisin."
    cancel event
Hata Yok, Fakat Ard Arda Yazdırıyor :D
 
Üst