tente esse:
function onLogin(cid)
local limit,days = 2,360
function CheckMcManager(cid)
local count,on = 0,getPlayersOnline()
if #on > 0 then
for i = 1, #on do
if getCreatureName(on[i]) == "Account Manager" and getPlayerIp(on[i]) == getPlayerIp(cid) then
count = count + 1
end
end
if count > limit then
doAddIpBanishment(getPlayerIp(cid), days * 24 * 60 * 60)
doRemoveCreature(cid)
end
end
return true
end
addEvent(CheckMcManager, 1000, cid)
return true
end
<event type="login" name="AntiMbCrash" event="script" value="antimbcrash.lua"/>
Para configurar é fácil, na segunda linha do script está assim:
local limit,days = 2,360
2 = número máximo de Account Manager.
360 = número de dias que o IP ficará banido.






que se encontra no rodapé de cada post.
info
Grupo: Campones
Registrado: 12/08/15
Posts: 84
Reputação: +7
Duvida: Meu Anti MC não funfa... CONSIGO abrir 2 clientes ao mesmo tempo
Ajuda: Como colocar para apenas poder abrir 1 cliente?
SCRIPT do ANTI MC
--[[ Anti Multi-Client System Modify but preserve credits Developed by Notorious ]]-- local config = { msg = "Notorious Anti-MC System has detected that you are multi clienting.", maxMultiClients = 2, allowGroupId = 2, ignoreIps = {"ip1", "ip2"} } function onLogin(cid) if getPlayerGroupId(cid) >= config.allowGroupId then return TRUE end local number local playersOnline = getPlayersOnline() for _, pid in pairs(playersOnline) do local pip = getPlayerIp(pid) if cid ~= pid and getPlayerIp(cid) == pip and not isInArray(config.ignoreIps, doConvertIntegerToIp(getPlayerIp(cid))) then number = (number or 0) + 1 if number > config.maxMultiClients then return FALSE, doPlayerPopupFYI(cid, config.msg) end end end return TRUE end