SA-MP Forums Archive
[Include] OnFloodDetected - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] OnFloodDetected (/showthread.php?tid=476565)

Pages: 1 2


Re: OnFloodDetected - PT - 21.11.2013

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...


Re: OnFloodDetected - Emmet_ - 21.11.2013

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