GALERA PRECISO DE UM SCRIPT ANTI MAGEBOMB QUE BANI O IP
TENHO ESSE COMO BASE MAIS NAO TENHO AS TAGS E NAO SEI SE FUNCIONA!
local
config
=
{
max = 2, -- max chars med samma ip
text = "Multi-Client is not allowed.", -- text som kmr nar dom kickas
group_id = 1 -- so inte gm kickas bara
} local accepted_ip_list = {} -- lista med ips som KAN kora med magebomb
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,getPayerIp(cid)) == FALSE then
addEvent(antiMC, 1000, {pid = cid, max = config.max+1})
doPlayerPopupFYI(cid, config.text)
end
end
return TRUE
end
Achei em outro forum!
Ajudem-me.....