local config = {
max = 1, -- How many should be allowed? [1 = default]
allowedIP = {"127.0.0.1", "another IP"} -- People with this IP will be able to MC.
}
local function antiMC(p)
if(#getPlayersByIp(getPlayerIp(p.pid)) >= p.max) then
doRemoveCreature(p.pid)
end
end
function onLogin(cid)
if(getPlayerGroupId(cid) < 2) then
if(not isInArray(allowedIP, doConvertIntegerToIp(getPlayerIp(cid)))) then
addEvent(antiMC, 200, {pid = cid, max = config.max + 1})
end
end
return true
end