local config = {
max = 1,
text = "Multi-Client or Magebomb is not allowed.",
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,getPlayerIp(cid)) == FALSE then
addEvent(antiMC, 1000, {pid = cid, max = config.max+1})
doPlayerPopupFYI(cid, config.text)
end
end
return TRUE
end
3
1k
info
Grupo: Visconde
Registrado: 11/08/10
Posts: 477
Reputação: +175
Gênero: Masculino

18 de julho de 2012 às 18:19
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

18 de julho de 2012 às 18:31
na vdd o erro estava na tag do creaturescript, o luis esqueceu de fechar, era só ler todo o tópico...
antimbcrash.lua
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
creaturescript.xml
<event type="login" name="AntiMbCrash" event="script" value="antimbcrash.lua"/>
Editado Julho 18 por Vodkart


info
Grupo: Campones
Registrado: 08/08/10
Posts: 93
Reputação: +7
Char no Tibia: Judge Zinho
Galera eu começei a procurar um anti magebomb bom para anti Account Manager e achei...mais quando eu fui usar no .exe deu problema
Se ajudou eu dou um REP+
Thanks!
Editado Julho 18 por JeanDoido