Crie um arquivo chamado antimc.lua em data\creaturescripts\scripts:
local config = {
max = 1, -- número de players permitido com o mesmo ip
group_id = 1 -- kikar apenas player com o group id 1
}
local accepted_ip_list = {} -- lista dos players permitidos a usar MC, exemplo: {"200.85.3.60", "201.36.5.222"}
local function antiMC(p)
if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then
doRemoveCreature(p.pid)
end
return true
end
function onLogin(cid)
if getPlayerGroupId(cid) <= config.group_id then
if isInArray(accepted_ip_list,doConvertIntegerToIp(getPlayerIp(cid))) == false then
addEvent(antiMC, 1000, {pid = cid, max = config.max+1})
end
end
return true
end
Adicione essa tag em data/creaturescripts/creaturescripts.xml
<event type="login" name="AntiMC" event="script" value="antimc.lua"/>
O único problema é que vai kikar os players de lan house.