A mensagem fica aparecendo a cada vez que o char loga, mesmo sem MC.
Arrumei algumas coisas também.
local config = {
max = 1,
group_id = 1
}
local accepted_ip_list = {}
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
Bom tem o velho método anti-bot, é bem chato fazer ele mais é bem útil. È so por +1 nos items, tipo:
MPA: id = 1500
Se troca para = 1501
Da muiiitoo trabalho, mais funciona =D