[Include] OnFloodDetected
#21

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
It only detects mass connection from the same IP (which is the most popular way amongst flooding), however I plan on adding more features such as text flooding and stuff.

Might consider doing this:

pawn Код:
public OnFloodDetected(playerid, ip[], type)
{
    if (type == FLOOD_TYPE_CONNECT)
    {
        ...
    }
    else if (type == FLOOD_TYPE_CHAT)
    {
        ...
    }
    else if (type == FLOOD_TYPE_BLABLA)
    {
        ...
    }
    return 1;
}
yeah make that, because will help many people...
Reply
#22

Quote:
Originally Posted by PT
Посмотреть сообщение
yeah make that, because will help many people...
Already done
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)