Yes, it will block, router users, lan users whatever shares the same hub/router, the same IP.
i pretty much used the elf code to MC check, but since there is no code for this...i've added a little text aswell, here it is :
it's needing a little fix maybe, cuz sometimes for like 1 minute says that everybody got the same IP =X but after 1 min, works normally....
i pretty much used the elf code to MC check, but since there is no code for this...i've added a little text aswell, here it is :
Code:
function onLogin(cid)
local list = {}
local ips = {}
local text = "MULTI-CLIENTING IS BLOCKED."
local players = getPlayersOnline()
for i, pid in ipairs(players) do
local ip = getPlayerIp(pid)
local tmp = table.find(ips, ip)
if(tmp ~= nil) then
if(table.countElements(list, ip) == 0) then
list[players[tmp]] = ip
end
list[pid] = ip
end
table.insert(ips, ip)
end
if(table.maxn(list) > 0) then
for pid, ip in pairs(list) do
doPlayerPopupFYI(cid, text)
doRemoveCreature(cid)
end
end
return TRUE
end
it's needing a little fix maybe, cuz sometimes for like 1 minute says that everybody got the same IP =X but after 1 min, works normally....