• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

need help with magebomb script

tetra20

DD
Joined
Jan 17, 2009
Messages
1,316
Solutions
4
Reaction score
327
Location
Egypt
well magebombers get in my server and crash it my server is 8.10 so i just don't have creatureevent to add to it the popular script so can anyone give me any way to stop them if you don't know any can you give me a talk action script that when someone say lag they check for anyone who log from one ip with more than 1 character and get him ip banned
thanks so much
 
This will check for multi-clienters, but I wouldn't know how to make it ban people.

LUA:
function onSay(cid, words, param, channel)
    local ips = {}
    local players = getPlayersOnline()
    for i, pid in ipairs(players) do
        local ip = getPlayerIp(pid)
        if(param == "gm" or getPlayerGroupId(pid) <= 3) then
            if(ips[ip] == nil) then
                ips[ip] = {pid}
            else
                table.insert(ips[ip], pid)
            end
        end
    end

    table.sort(ips)
    local anyMultiClient = false
    for ip, list in pairs(ips) do
        if(#list > 1) then
            anyMultiClient = true
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, #list .. " MCs with IP - " .. doConvertIntegerToIp(ip) .. " - " .. ip .. ":")
            for i=1, #list do
                local target = getCreatureTarget(list[i])
                if(target ~= 0) then
                    target = getCreatureName(target)
                end
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(list[i]) .. " [Level: " .. getPlayerLevel(list[i]) .. "][Target: " .. target .. "]")
            end
        end
    end
    if(not anyMultiClient) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Currently there aren't any players with same IP address(es).")
    end
    return true
end
 
Back
Top