Bulundu Peşpeşe 2 kişi öldürdükten sonra 1dk bekleme süresi

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

Refresh

Odunlara Vur Vur Vur!
Katılım
22 Mayıs 2022
Mesajlar
47
Elmaslar
3
Puan
3.960
Yaş
25
Konum
İstanbul
Minecraft
Refresh

Discord:

refresh

Merhaba arkadaşlar.

Sizden bugün bir skript isteyeceğim. Bir oyuncu 2-3 kişi öldürdükten sonra tekrar birini öldürmek için 1 dk beklesin istiyorum. Skripti yazabiilirseniz sevinirim.
 
Deneyip geri dönüş yapar mısın?

Kod:
variables:
    {killCooldown::%player%} = 0
    {killCount::%player%} = 0

on death:
    attacker is a player
    victim is a player
    if {killCooldown::%attacker%} is greater than now:
        send "&cBir sonraki öldürmen için beklemen gerekiyor!" to attacker
        cancel event
    else:
        add 1 to {killCount::%attacker%}
        if {killCount::%attacker%} is 2 or {killCount::%attacker%} is 3:
            set {killCooldown::%attacker%} to now + 1 minute
            set {killCount::%attacker%} to 0
            send "&aÖldürme sınırına ulaştın, 1 dakika beklemen gerekiyor!" to attacker
        else:
            send "&aÖldürdün! Toplam öldürme sayın: %{killCount::%attacker%}%." to attacker

every 1 second:
    loop all players:
        if {killCooldown::%loop-player%} is less than now:
            delete {killCooldown::%loop-player%}
 
Aşağıdaki hatayı veriyor.
 

Ekli dosyalar

  • resim_2024-07-25_000421999.png
    resim_2024-07-25_000421999.png
    18,6 KB · Görüntüleme: 67
Böyle dener misin:


Kod:
variables:
    {killCooldown::%player%} = 0
    {killCount::%player%} = 0

on death:
    attacker is a player
    victim is a player
    if {killCooldown::%attacker%} is greater than now:
        send "&cBir sonraki öldürmen için beklemen gerekiyor!" to attacker
        cancel event
    else:
        add 1 to {killCount::%attacker%}
        if {killCount::%attacker%} >= 2:
            set {killCooldown::%attacker%} to now + 1 minute
            set {killCount::%attacker%} to 0
            send "&aÖldürme sınırına ulaştın, 1 dakika beklemen gerekiyor!" to attacker
        else:
            send "&aÖldürdün! Toplam öldürme sayın: %{killCount::%attacker%}%." to attacker

every 1 second:
    loop all players:
        if {killCooldown::%loop-player%} is less than now:
            delete {killCooldown::%loop-player%}
 
Merhaba aşağıdaki hatayı veriyor ve 1 dk bekleme süresi diyor fakat vurabiliyorum
 

Ekli dosyalar

  • resim_2024-07-25_001422448.png
    resim_2024-07-25_001422448.png
    14,8 KB · Görüntüleme: 70
Merhaba aşağıdaki hatayı veriyor ve 1 dk bekleme süresi diyor fakat vurabiliyorum
Kod:
variables:
    {killCooldown::%player%} = 0
    {killCount::%player%} = 0

on death:
    attacker is a player
    victim is a player
    if {killCooldown::%attacker%} > now:
        send "&cBir sonraki öldürmen için beklemen gerekiyor!" to attacker
        cancel event
    else:
        add 1 to {killCount::%attacker%}
        if {killCount::%attacker%} >= 3:
            set {killCooldown::%attacker%} to now + 1 minute
            set {killCount::%attacker%} to 0
            send "&aÖldürme sınırına ulaştın, 1 dakika beklemen gerekiyor!" to attacker
        else:
            send "&aÖldürdün! Toplam öldürme sayın: %{killCount::%attacker%}%." to attacker

every 1 second:
    loop all players:
        if {killCooldown::%loop-player%} <= now:
            delete {killCooldown::%loop-player%}
 
aynı hatayı vermekte.
 
Deneyip geri dönüş yapar mısın?

Kod:
variables:
    {killCooldown::%player%} = 0
    {killCount::%player%} = 0

on death:
    attacker is a player
    victim is a player
    if {killCooldown::%attacker%} is greater than now:
        send "&cBir sonraki öldürmen için beklemen gerekiyor!" to attacker
        cancel event
    else:
        add 1 to {killCount::%attacker%}
        if {killCount::%attacker%} is 2 or {killCount::%attacker%} is 3:
            set {killCooldown::%attacker%} to now + 1 minute
            set {killCount::%attacker%} to 0
            send "&aÖldürme sınırına ulaştın, 1 dakika beklemen gerekiyor!" to attacker
        else:
            send "&aÖldürdün! Toplam öldürme sayın: %{killCount::%attacker%}%." to attacker

every 1 second:
    loop all players:
        if {killCooldown::%loop-player%} is less than now:
            delete {killCooldown::%loop-player%}
Chatgptye yazdırmış :D
 
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