nanduzenho
Member
Good afternoon, I have a problem on my server, that the players are not being kicked high close the client in Monk Trainer. I tried this script, but it doesn't work, especially when the player is in fight:
Lua:
function onThink(player)
local time = player:getIdleTime() / 1000
if(time >= 10) then
player:remove()
end
print('Seconds: ' .. time .. ' Player: ' .. (player and player:getName() or 'Has logout'))
return true
end