every 5 second:
loop all players:
if {AFK::%loop-player%} is not set:
set {AFK::%loop-player%} to 0
if {AFKLOC::%loop-player%} is not set:
set {AFKLOC::%loop-player%} to location of loop-player
else if {AFKLOC::%loop-player%} is location of loop-player:
add 5 to {AFK::%loop-player%}
if {AFK::%loop-player%} >= 250:
send player title "Rusz się" with subtitle "Inaczej zostaniesz wyrzucony"
if {AFK::%loop-player%} >= 300:
kick loop-player due to "afk"
clear {AFK::%loop-player%}
else:
set {AFK::%loop-player%} to 0
set {AFKLOC::%loop-player%} to location of loop-player
Wystarczyło poszukać...
Skrypt nie mój tylko @Hardcor13480, troszke zmodyfikowany