deichor
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
MonBoyhiner#2885
Teşekkürler. Konu kilit @smt287Kod: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
Fhalinkz#6825
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
deichor
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.Ü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.
Fhalinkz#6825
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.
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
deichor
İstiyorsan 50 kişide deneyelim. Hem de her saniye 3-4 defa oyuncuları kontrol edelim. Uygun mudur? Discord ekleyebilirsin.Dostum her saniyede bir tane oyuncu kontrol ettiriyorsun. Şu an 30 kişilik sunucuda denesem bunu hareket edemem yani. O derece yorar sunucuyu.
Fhalinkz#6825
Hangisi sunucuyu en az zorlar onu kullanacağım.
İstiyorsan 50 kişide deneyelim. Hem de her saniye 3-4 defa oyuncuları kontrol edelim. Uygun mudur? Discord ekleyebilirsin.
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
MonBoyhiner#2885
Birde şey eklermisin ses kod başarlıysaKod: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
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!