Sol Reklam

Çözüldü AFK Engelleme Skripti

Durum
Mesaj gönderimine kapalı.

toprakcf

Odunlara Vur Vur Vur!
Katılım
9 Kasım 2022
Mesajlar
31
Elmaslar
5
Puanlar
1.160
Yer
Bursa
Minecraft
toprakcf

Discord:

toprakcf

Merhabalar, istediğim bir AFK engelleme skripti var;

Her 15 dakikada bir ekrana 999 ile 99999 arasında bir sayı çıkacak ve oyuncu bunu sohbete yazdığında AFK olmadığını onaylamış olacak. (kirlilik yaratmaması için silinse mesaj gönderilmese iyi olur.)

Onaylaması için kullanıcıya 20 saniye verilecek, 20 saniye sonunda hala kodu yazmamışsa kick yiyecek.

Şimdiden teşekkürler.

(Harekete göre çalışanları makrolar ile atlatabilecekleri için mecburen bu geldi aklıma, hiçbir yerde de bulamadım :/)
 
Kod:
every 15 minutes:
    loop all players:
        set {kick::%loop-players} to true
    set {kick::code} to a random integer between 999 and 99999
    set {kick::check} to true
    send players title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds
    wait 20 seconds
    loop all players:
        if {kick::%loop-player} is set:
            kick loop-player due to "AFK"
    delete {kick::*}
    stop

on chat:
    if {kick::check} is set:
        if event-message is "%{kick::code}%":
            delete {kick::%player%}
            send player title "Doğrulamadan Geçtin." for 3 seconds
 
Kod:
every 15 minutes:
    loop all players:
        set {kick::%loop-players} to true
    set {kick::code} to a random integer between 999 and 99999
    set {kick::check} to true
    send players title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds
    wait 20 seconds
    loop all players:
        if {kick::%loop-player} is set:
            kick loop-player due to "AFK"
    delete {kick::*}
    stop

on chat:
    if {kick::check} is set:
        if event-message is "%{kick::code}%":
            delete {kick::%player%}
            send player title "Doğrulamadan Geçtin." for 3 seconds
[14:37:48 INFO]: 7[6Skript7]r Reloading 6antiafk.skr...
[14:37:48 INFO]: clLine 3:7 (antiafk.sk)
[14:37:48 INFO]: c The percent sign is used for expressions (e.g. %player%). To insert a '%' type it twice: %%.
[14:37:48 INFO]: 6 Line: 7set {kick::%loop-players} to true
[14:37:48 INFO]:
[14:37:48 INFO]: clLine 6:7 (antiafk.sk)
[14:37:48 INFO]: c There's no player/console in a periodical event
[14:37:48 INFO]: 6 Line: 7send players title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds
[14:37:48 INFO]:
[14:37:48 INFO]: clLine 9:7 (antiafk.sk)
[14:37:48 INFO]: c The percent sign is used for expressions (e.g. %player%). To insert a '%' type it twice: %%.
[14:37:48 INFO]: 6 Line: 7if {kick::%loop-player} is set:
[14:37:48 INFO]:
[14:37:48 INFO]: clLine 16:7 (antiafk.sk)
[14:37:48 INFO]: c Can't compare 'event-message' with a text
[14:37:48 INFO]: 6 Line: 7if event-message is "%{kick::code}%":
[14:37:48 INFO]:
[14:37:48 INFO]: 7[6Skript7]r cEncountered 64 cerrors while reloading 6antiafk.skc! 7(639ms7)


Hata verdi. Eklemem gereken herhangi addon tarzı bir şey var mı? Pek bilmiyorum.
 
[14:37:48 INFO]: 7[6Skript7]r Reloading 6antiafk.skr...
[14:37:48 INFO]: clLine 3:7 (antiafk.sk)
[14:37:48 INFO]: c The percent sign is used for expressions (e.g. %player%). To insert a '%' type it twice: %%.
[14:37:48 INFO]: 6 Line: 7set {kick::%loop-players} to true
[14:37:48 INFO]:
[14:37:48 INFO]: clLine 6:7 (antiafk.sk)
[14:37:48 INFO]: c There's no player/console in a periodical event
[14:37:48 INFO]: 6 Line: 7send players title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds
[14:37:48 INFO]:
[14:37:48 INFO]: clLine 9:7 (antiafk.sk)
[14:37:48 INFO]: c The percent sign is used for expressions (e.g. %player%). To insert a '%' type it twice: %%.
[14:37:48 INFO]: 6 Line: 7if {kick::%loop-player} is set:
[14:37:48 INFO]:
[14:37:48 INFO]: clLine 16:7 (antiafk.sk)
[14:37:48 INFO]: c Can't compare 'event-message' with a text
[14:37:48 INFO]: 6 Line: 7if event-message is "%{kick::code}%":
[14:37:48 INFO]:
[14:37:48 INFO]: 7[6Skript7]r cEncountered 64 cerrors while reloading 6antiafk.skc! 7(639ms7)


Hata verdi. Eklemem gereken herhangi addon tarzı bir şey var mı? Pek bilmiyorum.
latest.log dosyasını ve Skript'in kurulu olduğu dosyayı gönderebilir misiniz?
 
Kod:
every 15 minutes:
    loop all players:
        set {kick::%loop-players%} to true
    set {kick::code} to a random integer between 999 and 99999
    set {kick::check} to true
    send all players title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds
    wait 20 seconds
    loop all players:
        if {kick::%loop-player%} is set:
            kick loop-player due to "AFK"
    delete {kick::*}
    stop

on chat:
    if {kick::check} is set:
        if event-text is {kick::code}:
            delete {kick::%player%}
            send player title "Doğrulamadan Geçtin." for 3 seconds
 
Kod:
every 15 minutes:
    loop all players:
        set {kick::%loop-players%} to true
    set {kick::code} to a random integer between 999 and 99999
    set {kick::check} to true
    send all players title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds
    wait 20 seconds
    loop all players:
        if {kick::%loop-player%} is set:
            kick loop-player due to "AFK"
    delete {kick::*}
    stop

on chat:
    if {kick::check} is set:
        if event-text is {kick::code}:
            delete {kick::%player%}
            send player title "Doğrulamadan Geçtin." for 3 seconds
1693310575541.png

Böyle diyor hocam.
 
Kod:
every 15 minutes:
    set {kick::code} to a random integer between 999 and 99999
    loop all players:
        set {kick::%loop-players%} to true
        send loop-players title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds
    set {kick::check} to true
    wait 20 seconds
    loop all players:
        if {kick::%loop-player%} is set:
            kick loop-player due to "AFK"
    delete {kick::*}
    stop

on chat:
    if {kick::check} is set:
        if event-text is "%{kick::code}%":
            delete {kick::%player%}
            send player title "Doğrulamadan Geçtin." for 3 seconds
 
every 15 minutes: set {kick::code} to a random integer between 999 and 99999 loop all players: set {kick::%loop-players%} to true send loop-players title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds set {kick::check} to true wait 20 seconds loop all players: if {kick::%loop-player%} is set: kick loop-player due to "AFK" delete {kick::*} stop on chat: if {kick::check} is set: if event-text is "%{kick::code}%": delete {kick::%player%} send player title "Doğrulamadan Geçtin." for 3 seconds
1693311043042.png
 
Kod:
every 15 minutes:
    loop all players:
        set {kick::%loop-players%} to true
        send title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds to loop-player
    set {kick::code} to a random integer between 999 and 99999
    set {kick::check} to true
    wait 20 seconds
    loop all players:
        if {kick::%loop-player%} is set:
            kick loop-player due to "AFK"
    delete {kick::*}
    stop

on chat:
    if {kick::check} is set:
        if message is "%{kick::code}%":
            delete {kick::%player%}
            send player title "Doğrulamadan Geçtin." for 3 seconds
 
Kod:
every 15 minutes:
    loop all players:
        set {kick::%loop-players%} to true
        send title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds to loop-player
    set {kick::code} to a random integer between 999 and 99999
    set {kick::check} to true
    wait 20 seconds
    loop all players:
        if {kick::%loop-player%} is set:
            kick loop-player due to "AFK"
    delete {kick::*}
    stop

on chat:
    if {kick::check} is set:
        if message is "%{kick::code}%":
            delete {kick::%player%}
            send player title "Doğrulamadan Geçtin." for 3 seconds
Çözülmezse
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
eklentiyi kurup deneyin.
 
Kod:
every 15 minutes:
    checkAFK()

function checkAFK():
    loop all players:
        set {kick::%loop-players%} to true
        send loop-player title "&a%{kick::code}%" with subtitle "&6Kodu 20 Saniye İçerisinde Sohbet Yaz!" for 19 seconds to
    set {kick::code} to a random integer between 999 and 99999
    set {kick::check} to true
    wait 20 seconds
    loop all players:
        if {kick::%loop-player%} is set:
            kick loop-player due to "AFK"
    delete {kick::*}
    stop

on chat:
    if {kick::check} is set:
        if message is "%{kick::code}%":
            delete {kick::%player%}
            send player title "Doğrulamadan Geçtin." for 3 seconds
 
Durum
Mesaj gönderimine kapalı.
Neden altınlarını Discord sunucumuzda kazmıyorsun? TIKLA VE KATIL!
Yukarı