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 - Dubya - 04.07.2012

Nice. I will use this if I get any attacks.


Re: FloodControl.inc ─ Easily block flood bots - RoacH` - 04.07.2012

It supports the invisible bots ?


Re: FloodControl.inc ─ Easily block flood bots - ipsBruno - 04.07.2012

Quote:
Originally Posted by RoacH`
Посмотреть сообщение
It supports the invisible bots ?
Some variations of bots do not call OnPlayerConnect
Tip: In the next version Ryder' could do with sockets. Use gettime (gettickcount and cellmax conflict) and you can use bit shift for ip convert

Anyway, congratulations.


Re: FloodControl.inc ─ Easily block flood bots - RyDeR` - 05.07.2012

Quote:
Originally Posted by RoacH`
Посмотреть сообщение
It supports the invisible bots ?
No.

Quote:
Originally Posted by [FeK]DraKiNs
Посмотреть сообщение
Tip: In the next version Ryder' could do with sockets. Use gettime (gettickcount and cellmax conflict) and you can use bit shift for ip convert

Anyway, congratulations.
What can I do with sockets in this case? GetTickCount is fine as long as the server doesn't run for more then 24 days; I don't think any (well-known) server runs even constantly for a week. The char arrays are a bit faster and are build-in, so I don't see any reason for using bit-shifting.


Re: FloodControl.inc ─ Easily block flood bots - ipsBruno - 05.07.2012

Quote:

GetTickCount is fine as long as the server doesn't run for more then 24 days; I don't think any (well-known) server runs even constantly for a week.

Not in all cases, but is true.

The attacks are made via "packets", using sockets, you can recognize this. To find packets used, I believe it would take a good "sniffer"

Get this:
http://www.solidfiles.com/d/0261/

Now try to reverse engineer it. Good Luck


Re: FloodControl.inc ─ Easily block flood bots - dreamboxxl - 11.07.2012

Hi, I'm using this floodcontrol, it's pretty useful.

But now to my question.

I want to add own npc's to my server.
So is it possible to prevent my own npc's getting a ban by the floodcontrol?


Greets


Re: FloodControl.inc ─ Easily block flood bots - RyDeR` - 11.07.2012

Sure, just check if the player is not an NPC under OnPlayerConnect in this include with:
pawn Код:
if(!IsPlayerNPC(playerid))



Re: FloodControl.inc ─ Easily block flood bots - dreamboxxl - 11.07.2012

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
Sure, just check if the player is not an NPC under OnPlayerConnect in this include with:
pawn Код:
if(!IsPlayerNPC(playerid))
Thank You


Re: FloodControl.inc ─ Easily block flood bots - PawnFox - 11.07.2012

Awesome work Ryder, i really need that


Re: FloodControl.inc ─ Easily block flood bots - fuem1907 - 17.07.2012

What should I Do this file ? Just download ; copy and paste in samp/includes folder? that's all?


Re: FloodControl.inc ─ Easily block flood bots - shayan122 - 17.07.2012

i really need this...
ThankS


Re: FloodControl.inc ─ Easily block flood bots - RyDeR` - 17.07.2012

Quote:
Originally Posted by fuem1907
Посмотреть сообщение
What should I Do this file ? Just download ; copy and paste in samp/includes folder? that's all?
Then add
pawn Код:
#include "FloodControl.inc"
and add the example in the first page to your main script.


Re: FloodControl.inc ─ Easily block flood bots - Xenoyia - 17.07.2012

I have a little problem with this, adding it exactly how you did in the first post breaks all of the functions in my script, removing it fixes it. Anyone know what the problem is? I cannot post the script as it is a private one trusted to me by friends, sadly


Re: FloodControl.inc ─ Easily block flood bots - niels44 - 21.11.2012

Ryder, you should add:
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
under onplayerconnect in your include.

it gave me alot of trouble untill i checked the samp.ban, i first had 3 bots, but then when connecting the 4th one banned all of em...

i think this should fix alot of buggs with ppl also having bots and dont know how to fix this


Re: FloodControl.inc ─ Easily block flood bots - Killa[DGZ] - 18.12.2012

Thank you very much for this anti flood include RyDeR, its absolutely brilliant


Re: FloodControl.inc ─ Easily block flood bots - Lapon - 22.12.2012

Seriously this is very cool.


Re: FloodControl.inc ─ Easily block flood bots - Omirrow - 30.05.2014

It helps me so much, thank you.


Re: FloodControl.inc ─ Easily block flood bots - iRaiDeN - 31.05.2014

Great job!


Re: FloodControl.inc ─ Easily block flood bots - Agent008 - 31.05.2014

Great job, guys its like every include just download and place on pawno/include. Then #include <floodcontrol> to your GM/FS and here your got.


Re: FloodControl.inc ─ Easily block flood bots - Chrillzen - 04.10.2014

Thanks, man.