local max_players = 4
function onLogin(player)
local t, ip = {}, player:getIp()
local players = getPlayersByIPAddress(ip)
local size = #players
if size ~= 0 and size >= max_players then
for i = 1, size do
t[i] = '-> ' .. Player(players[i]):getName()
end
return false
end
return true
end