SA-MP Forums Archive
[Include] FloodControl.inc ─ Easily block flood bots - 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] FloodControl.inc ─ Easily block flood bots (/showthread.php?tid=320649)

Pages: 1 2 3


Re: FloodControl.inc ─ Easily block flood bots - berat00 - 02.06.2015

re-upload link please :S


Re: FloodControl.inc ─ Easily block flood bots - NexySamp - 29.07.2015

I have a problem,i put this include in my gamemode and add the
PHP код:
#include <floodcontrol> 
but get this error
Код:
C:\Users\Korisnik\Desktop\Yugoslavia Trucking v.0.3.7\gamemodes\YT.pwn(91) : fatal error 100: cannot read from file: "floodcontrol"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



AW: FloodControl.inc ─ Easily block flood bots - Kaliber - 29.07.2015

@RyDeR`:

Well, actually, i wrote a faster function for IpToInt, look at this you don't need loops with a little math:

PHP код:
static stock IpToInt2(const ip[])
{
    new 
b=(ip[2]=='.')?3:4,c=(ip[b+1]=='.')?(b+2):(b+3),d=(ip[c+1]=='.')?(c+2):(c+3);
    static 
Byte[1 char];
    return 
Byte{0} = strval(ip[0]),
           
Byte{1} = strval(ip[b]),
           
Byte{2} = strval(ip[c]),
           
Byte{3} = strval(ip[d]),
           
Byte;

Greekz


Re: FloodControl.inc ─ Easily block flood bots - waysemir - 30.01.2019

link is not working