Çözüldü Afk skript

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

Garoz

Simplicitas tollit virtutem.
Katılım
16 Aralık 2017
Mesajlar
1.005
Elmaslar
471
Puan
16.210
Konum
Türkiye
Minecraft
GarozLite

Discord:

MonBoyhiner#2885

Adama her 10 dk da bir 4 haneli bir sayı gönderilsin adam bu sayıyı 10 saniye için giremezse afk sın diye oyundan atsın.
Yaparsanız çok sevinirim.​
 
Kod:
every 1 minutes:
  loop all players:
    add 1 to {sure::%loop-player%}
    if {sure::%loop-player%} is equal to 9:
      set {_1} to random integer between 1 and 9
      set {_2} to random integer between 1 and 9
      set {_3} to random integer between 1 and 9
      set {_4} to random integer between 1 and 9
      set {afkkontrol::%loop-player%} to "%{_1}%%{_2}%%{_3}%%{_4}%"
      send "&7{ &dAFK Kontrol &7} Lütfen 10 saniye içinde &e%{afkkontrol::%loop-player%}% &7yazın." to loop-player
      set {afkzaman::%loop-player%} to 10
      set {afkyazı::%loop-player%} to true

every 1 seconds:
  loop all players:
    if {afkyazı::%loop-player%} is true:
      if {afkzaman::%loop-player%} is greater than 0:
        remove 1 from {afkzaman::%loop-player%}
      else:
        kick loop-player due to "AFK"
      
on chat:
  if message is "%{afkkontrol::%player%}%":
    cancel event
    send "afk kontrol başarıyla geçtin." to player
    set {afkyazı::%player%} to false
 
Kod:
every 1 minutes:
  loop all players:
    add 1 to {sure::%loop-player%}
    if {sure::%loop-player%} is equal to 9:
      set {_1} to random integer between 1 and 9
      set {_2} to random integer between 1 and 9
      set {_3} to random integer between 1 and 9
      set {_4} to random integer between 1 and 9
      set {afkkontrol::%loop-player%} to "%{_1}%%{_2}%%{_3}%%{_4}%"
      send "&7{ &dAFK Kontrol &7} Lütfen 10 saniye içinde &e%{afkkontrol::%loop-player%}% &7yazın." to loop-player
      set {afkzaman::%loop-player%} to 10
      set {afkyazı::%loop-player%} to true

every 1 seconds:
  loop all players:
    if {afkyazı::%loop-player%} is true:
      if {afkzaman::%loop-player%} is greater than 0:
        remove 1 from {afkzaman::%loop-player%}
      else:
        kick loop-player due to "AFK"
     
on chat:
  if message is "%{afkkontrol::%player%}%":
    cancel event
    send "afk kontrol başarıyla geçtin." to player
    set {afkyazı::%player%} to false
Teşekkürler. Konu kilit @smt287
 
Üstteki skript sunucuyu çok yorar. Bence bunu kullanmalısın.

Kod:
every 10 minutes:
    loop players:
        set {afkkontrol::%loop-player%} to random string matching "[A-Za-z0-9]{4}"
        send "10 saniye içerisinde %{afkkontrol::%loop-player%}% kodunu girmezsen sunucudan atılacaksın." to loop-player
        wait 10 seconds
        if {afkkontrol::%loop-player%} is set:
            kick loop-player
on chat:
    if {afkkontrol::%player%} is set:
        if message is "%{afkkontrol::%player%}%":
            delete {afkkontrol::%player%}
            send "AFK kontrolünü başarıyla geçtin."
        cancel event
 
Üstteki skript sunucuyu çok yorar. Bence bunu kullanmalısın.

Kod:
every 10 minutes:
    loop players:
        set {afkkontrol::%loop-player%} to random string matching "[A-Za-z0-9]{4}"
        send "10 saniye içerisinde %{afkkontrol::%loop-player%}% kodunu girmezsen sunucudan atılacaksın." to loop-player
        wait 10 seconds
        if {afkkontrol::%loop-player%} is set:
            kick loop-player
on chat:
    if {afkkontrol::%player%} is set:
        if message is "%{afkkontrol::%player%}%":
            delete {afkkontrol::%player%}
            send "AFK kontrolünü başarıyla geçtin."
        cancel event
Burada adam 10 dakika boyunca aktif olursa değil sunucu süresine göre algılıyor yani oyuna yeni giren biri için bir dakikada da atabilir mesajı. Sanırsam konuyu okumamışsın bile. "Sayı" dediğinin farkında bile değilsin. Ek olara sunucu özellikleri iyiyse niye sunucuyu yorsun? Tabi gidip tek çekirdekli sunucuda kullanırsan yorar. Keşke bilip bilmeden yorum yapmasaydın.
 
Son düzenleme:
Burada adam 10 dakika boyunca aktif olursa değil sunucu süresine göre algılıyor yani oyuna yeni giren biri için bir dakikada da atabilir mesajı. Sanırsam konuyu okumamışsın bile. "Sayı" dediğinin farkında bile değilsin. Ek olara sunucu özellikleri iyiyse niye sunucuyu yorsun? Tabi gidip tek çekirdekli sunucuda kullanırsan yorar. Keşke bilip bilmeden yorum yapmasaydın.

Dostum her saniyede bir tane oyuncu kontrol ettiriyorsun. Şu an 30 kişilik sunucuda denesem bunu hareket edemem yani. O derece yorar sunucuyu.
 
Burada adam 10 dakika boyunca aktif olursa değil sunucu süresine göre algılıyor yani oyuna yeni giren biri için bir dakikada da atabilir mesajı. Sanırsam konuyu okumamışsın bile. "Sayı" dediğinin farkında bile değilsin. Ek olara sunucu özellikleri iyiyse niye sunucuyu yorsun? Tabi gidip tek çekirdekli sunucuda kullanırsan yorar. Keşke bilip bilmeden yorum yapmasaydın.

Bu olur mu peki?

Kod:
on join:
    set {afkkontrol::%player%::zaman} to 10 minutes later
    while player is online:
        wait 1 minutes
        if {afkkontrol::%player%::zaman} is less than now:
            set {afkkontrol::%player%::kod} to random string matching "[A-Za-z0-9]{4}"
            set {_kod} to {afkkontrol::%player%::kod}
            send "10 saniye içerisinde %{afkkontrol::%player%::kod}% kodunu girmezsen sunucudan atılacaksın." to player
            wait 10 seconds
            if {afkkontrol::%player%::kod} is {_kod}:
                kick player
                
on chat:
    if {afkkontrol::%player%::kod} is set:
        if message is "%{afkkontrol::%player%::kod}%":
            send "AFK kontrolünü başarıyla geçtin."
            delete {afkkontrol::%player%::kod}
            wait 11 seconds
            set {afkkontrol::%player%::zaman} to 10 minutes later
        cancel event
 
Dostum her saniyede bir tane oyuncu kontrol ettiriyorsun. Şu an 30 kişilik sunucuda denesem bunu hareket edemem yani. O derece yorar sunucuyu.
İstiyorsan 50 kişide deneyelim. Hem de her saniye 3-4 defa oyuncuları kontrol edelim. Uygun mudur? Discord ekleyebilirsin.
 
Hangisi sunucuyu en az zorlar onu kullanacağım.
 
Kod:
on join:
    set {afkkontrol::%player%::zaman} to 10 minutes later
    while player is online:
        wait 1 minutes
        if {afkkontrol::%player%::zaman} is less than now:
            set {afkkontrol::%player%::kod} to random string matching "[A-Za-z0-9]{4}"
            set {_kod} to {afkkontrol::%player%::kod}
            send "10 saniye içerisinde %{afkkontrol::%player%::kod}% kodunu girmezsen sunucudan atılacaksın." to player
            wait 10 seconds
            if {afkkontrol::%player%::kod} is {_kod}:
                kick the player due to "&4&lKICK &8» &7&lAFK &7kaldığın için atıldın." #Düzenlenecek mesaj burada.
                
on chat:
    if {afkkontrol::%player%::kod} is set:
        if message is "%{afkkontrol::%player%::kod}%":
            send "AFK kontrolünü başarıyla geçtin."
            delete {afkkontrol::%player%::kod}
            wait 11 seconds
            set {afkkontrol::%player%::zaman} to 10 minutes later
        cancel event
 
Kod:
on join:
    set {afkkontrol::%player%::zaman} to 10 minutes later
    while player is online:
        wait 1 minutes
        if {afkkontrol::%player%::zaman} is less than now:
            set {afkkontrol::%player%::kod} to random string matching "[A-Za-z0-9]{4}"
            set {_kod} to {afkkontrol::%player%::kod}
            send "10 saniye içerisinde %{afkkontrol::%player%::kod}% kodunu girmezsen sunucudan atılacaksın." to player
            wait 10 seconds
            if {afkkontrol::%player%::kod} is {_kod}:
                kick the player due to "&4&lKICK &8» &7&lAFK &7kaldığın için atıldın." #Düzenlenecek mesaj burada.
               
on chat:
    if {afkkontrol::%player%::kod} is set:
        if message is "%{afkkontrol::%player%::kod}%":
            send "AFK kontrolünü başarıyla geçtin."
            delete {afkkontrol::%player%::kod}
            wait 11 seconds
            set {afkkontrol::%player%::zaman} to 10 minutes later
        cancel event
Birde şey eklermisin ses kod başarlıysa
 
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