Bulundu essentials süreli komut

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

debian

Somon Balığı Selam Vermeye Geldi
Katılım
27 Nisan 2020
Mesajlar
19
Elmaslar
6
Puan
360
Yaş
26

Discord:

promania

arkadaşlar merhaba ,
essentials komutlarına nasıl süre getirebilirim örnek : /hat komutunu normal vip için günde 2 defa yapmak isityorum.
 
Kod:
command /hat:
    trigger:
        if difference of {SKT.%player%} and now is smaller than 2 day:
            send "&cBu komutu kullanmak icin 2 gün beklemelisin."
            stop trigger
        else:
            set {SKT.%player%} to now
            send "&aKomut basarili"
 
Kod:
command /hat:
    trigger:
        if difference of {SKT.%player%} and now is smaller than 2 day:
            send "&cBu komutu kullanmak icin 2 gün beklemelisin."
            stop trigger
        else:
            set {SKT.%player%} to now
            send "&aKomut basarili"

maalesef çalışmadı
 
Kod:
on command "hat":
    set {_süre} to difference between {komutsüre.%player%} and now
    if {_süre} is less than 2 day:
        message "Komut Kullanmak için %difference between 2 day and {_süre}% beklemelisin!"
    else:
        set {komutsüre.%player%} to now
 
Son düzenleme:
Kod:
on command "hat":
    if {hat::%player%} is not set:
        set {hat::%player%} to 24
        execute player command "ehat"
    else:
        send "&cTekrardan bu komutu kullanmak için %{hat::%player%}% saat beklemelisin."
every hour:
    remove 1 from {hat::%player%}
    if {hat::%player%} is less than or equal to 0:
        delete {hat::%player%}
 
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