Kafa Alma

  • Konuyu Başlatan Konuyu Başlatan Avdaa
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 623

Avdaa

Birisi mi Spawnlandı?
Katılım
30 Aralık 2018
Mesajlar
3
Elmaslar
0
Puan
0
Yaş
15
Merhaba ben bir oyuncunun -/kafa (oyuncu ismi) yazınca o oyuncu isminin kafasını alacak ama sadece 1 saatte 1 kere kullanabilecek yapabilecek varmı
 
Kod:
command /kafa [<player>]:
    trigger:
        if arg-1 is set:
            if {kafa::%player%} is set:
                set {_zaman} to difference between {kafa::%player%} and now
                if {_zaman} is greater than or equal to 3600:
                    set {_tm} to true
            else:
                set {_tm} to true
            if {_tm} is true:
                execute console command "give %player% minecraft:skull 1 3 {SkullOwner: %arg-1%}"
                send "başarıyla aldın kafayı" to player
            else:
                send "15 saniyede bir kere kullanabilirsin" to player
        else:
            send "/kafa <isim> olarak dene" to player
 
Ama durmadan alabiliyorsun 1 saatte bir almasını istiyorum @SoulX
 
Bir yeri eksik yapmışım buyur

Kod:
command /kafa [<player>]:
    trigger:
        if arg-1 is set:
            if {kafa::%player%} is set:
                set {_zaman} to difference between {kafa::%player%} and now
                if {_zaman} is greater than or equal to 3600:
                    set {_tm} to true
            else:
                set {_tm} to true
            if {_tm} is true:
                execute console command "give %player% minecraft:skull 1 3 {SkullOwner: %arg-1%}"
                send "başarıyla aldın kafayı" to player
                set {kafa::%player%} to now
            else:
                send "1 saatte bir kere kullanabilirsin" to player
        else:
            send "/kafa <isim> olarak dene" to player
 
Bu arada oraya kalan süreyide ekleyebilir misin @SoulX
 
Kod:
command /kafa [<player>]:
    trigger:
        if arg-1 is set:
            if {kafa::%player%} is set:
                set {_zaman} to difference between {kafa::%player%} and now
                if {_zaman} is greater than or equal to 3600:
                    set {_tm} to true
            else:
                set {_tm} to true
            if {_tm} is true:
                execute console command "give %player% minecraft:skull 1 3 {SkullOwner: %arg-1%}"
                send "başarıyla aldın kafayı" to player
                set {kafa::%player%} to now
            else:
                set {_dif} to difference between {kafa::%player%} and now
                if {_dif} is less than 3600:
                    set {_dif2} to difference between 3600 and {_dif}
                    cancel event
                    send "%{_dif2}% sonra kullanabilirsin" to player
        else:
            send "/kafa <isim> olarak dene" to player
 
Ek olarak bunu da kullanabilirsin karar senin @SoulX yaptığını da kullanabilirsin.

Kod:
options:
    sure: 60 minute
command /kafa [<player>]:
    trigger:
        if arg-1 is set:
            set {_sure} to difference between {kafa::%player%} and now
            if {_sure} is less than {@sure}:
                set {_test} to translateTimespan(difference between {@sure} and {_sure})
                send "&eTekrar kullanabilmek için &f%{_test}% &ebeklemen gerekli."
            else:
                set {_oyuncu} to "%arg-1%" parsed as offline player
                give {_oyuncu}'s skull to player
                set {kafa::%player%} to now
                send "&eKafa'yı başarıyla aldın."
        else:
            send "/kafa <isim>"
function translateTimespan(t: timespan) :: text:
    set {_t} to "%{_t}%"
    replace all "and" with "ve" in {_t}
    replace all "seconds" and "second" with "saniye" in {_t}
    replace all "minutes" and "minute" with "dakika" in {_t}
    replace all "hours" and "hour" with "saat" in {_t}
    replace all "days" and "day" with "gün" in {_t}
    return {_t}
 

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