Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Releases Filterscripts [Filterscript] Anti-Bot (Anti-Multiple-Connections)

 
  • 0 Vote(s) - 0 Average
Filterscript Anti-Bot (Anti-Multiple-Connections)
RajatAsthana
Offline

Burgershot Member
Posts: 9
Threads: 2
Joined: Apr 2019
Reputation: 1
Location: India
#1
2019-04-23, 09:35 AM (This post was last modified: 2019-04-23, 09:37 AM by RajatAsthana.)
~ANTI BOT V.1~

Why This?
This is Made for the servers which are getting attacked by Massive Connections ( Bot's) . Since i was requested To make this in my discord DM So, I have made this.

What This Contains?
A filterscript :p.

How is this helpful?
It bans the IP once there are 2/More connections from a IP (default. You can change it in the script)


What is IP? (Beginner's Question)
[font=sans-serif]An Internet Protocol address (IP address) is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication.[1][2] An IP address serves two principal functions: host or network interface identification and location addressing.[/font]

[font=sans-serif]How to install?[/font]
[font=sans-serif]1) Download the script from the link below.[/font]
[font=sans-serif]2) Add the AntiBot.amx into your filterscript folder[/font]
[font=sans-serif]3) Add this line into your server.cfg 
Code:
filterscripts AntiBot
[/font]

[font=sans-serif]4) Run Your server.[/font]


Where Da links at?
1) PasteBin - https://pastebin.com/JEewZh9v
2) GitHub - https://github.com/RyderAsthana/Anti-Bot

=========REP ME IF IT HELPED YOU.========
Code:
OnPlayerConnect(playerid)
{
new PlayerName[25];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
Ban(playerid);
printf("%s was Banned :p", PlayerName);
return 1;
}
rEf
Offline

Burgershot Member
Posts: 7
Threads: 0
Joined: Apr 2019
Reputation: 0
Location: Czechia
#2
2019-05-20, 10:36 PM
https://pastebin.com/zzbzynuK
RajatAsthana
Offline

Burgershot Member
Posts: 9
Threads: 2
Joined: Apr 2019
Reputation: 1
Location: India
#3
2019-05-23, 04:34 AM
(2019-05-20, 10:36 PM)rEf Wrote: https://pastebin.com/zzbzynuK

Thats just a better version of this script
Code:
OnPlayerConnect(playerid)
{
new PlayerName[25];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
Ban(playerid);
printf("%s was Banned :p", PlayerName);
return 1;
}
AkiraR
Offline

Client Supporter | Retired Developer
Posts: 28
Threads: 4
Joined: Apr 2019
Reputation: 2
Location: United States
#4
2019-05-23, 07:16 PM
(2019-05-23, 04:34 AM)RajatAsthana Wrote:
(2019-05-20, 10:36 PM)rEf Wrote: https://pastebin.com/zzbzynuK

Thats just a better version of this script

There's always more than one way to do something. May it be better or even longer, the job is done. The consistency and quickness of the job being done is what the difference.
a k i r a r | o h a n a
Creator of Downfall Roleplay | Client Support Expert  | Retired Developer n' Mapper
[Image: 8zsUx.png]
¥ Alex `Y_Less` Cole  ¥
#TheInnerCircle


Gravityfalls
Offline

Burgershot Member
Posts: 105
Threads: 7
Joined: Apr 2019
Reputation: 2
#5
2019-05-24, 10:45 AM
This is already included by default in the SA-MP server package LMAO.
RajatAsthana
Offline

Burgershot Member
Posts: 9
Threads: 2
Joined: Apr 2019
Reputation: 1
Location: India
#6
2019-05-26, 08:15 AM
(2019-05-24, 10:45 AM)Gravityfalls Wrote: This is already included by default in the SA-MP server package LMAO.

Yet people dont use the samp server package. They usually delete all the useless files (filterscript, Gamemodes) and use their own.
Code:
OnPlayerConnect(playerid)
{
new PlayerName[25];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
Ban(playerid);
printf("%s was Banned :p", PlayerName);
return 1;
}
Gravityfalls
Offline

Burgershot Member
Posts: 105
Threads: 7
Joined: Apr 2019
Reputation: 2
#7
2019-05-26, 01:03 PM
(2019-05-26, 08:15 AM)RajatAsthana Wrote:
(2019-05-24, 10:45 AM)Gravityfalls Wrote: This is already included by default in the SA-MP server package LMAO.

Yet people dont use the samp server package. They usually delete all the useless files (filterscript, Gamemodes) and use their own.

Not an excuse, and your code is even worse than the one included by default.
JustMichael
Offline

Forum Manager

Posts: 189
Threads: 3
Joined: Feb 2019
Reputation: 17
Location: England
#8
2019-05-26, 01:14 PM
(2019-05-20, 10:36 PM)rEf Wrote: https://pastebin.com/zzbzynuK

I have to agree this is written better, it has less code, it's clean and doesn't waste performance.
It also doesn't throw any forced messages.

I would prefer that it called some function before kicking, like a `CallRemoteFunction` for `OnPlayerKicked(const playerid, const reason[]);` (this should be the default callback for any library to call for kicking, no need to make it overly complicated, also if the return value was 0 you would not kick the person and if it was 1 you would)

Simple things, that can make a huge difference to development.
Remember to always refer to J0sh as `J0sh...`

@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder)
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer)
AlphaDM (Tech Support)

# Services
Burgershot.gg (Forum Manager)
open.mp (Member)

~ Languages/Frameworks
Pawn, C, C++, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#9
2019-05-27, 12:11 PM
Also, from before the version included with the server:

https://github.com/pawn-lang/YSI-Includes/blob/5.x/YSI_Server/y_flooding.md
Sasino97
Offline

Software Developer
Posts: 108
Threads: 16
Joined: Apr 2019
Reputation: 7
Location: Tampa, FL
#10
2019-06-21, 11:18 AM
It's also not really a good idea to set 2 as the default value, since many people play together with their brother/sister/friend/whatever on the same server at the same time using the same Internet connection.
[Image: Sasinosoft.png]
rEf
Offline

Burgershot Member
Posts: 7
Threads: 0
Joined: Apr 2019
Reputation: 0
Location: Czechia
#11
2021-03-03, 09:37 AM
(2019-06-21, 11:18 AM)Sasino97 Wrote: It's also not really a good idea to set 2 as the default value, since many people play together with their brother/sister/friend/whatever on the same server at the same time using the same Internet connection.

It's up to you how many connections you allow.
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#12
2021-03-04, 07:09 AM
(2019-05-27, 12:11 PM)Y_Less Wrote: Also, from before the version included with the server:

https://github.com/pawn-lang/YSI-Includes/blob/5.x/YSI_Server/y_flooding.md
Ye I just wanted to post this :3
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
Marllun
Offline

Burgershot Member
Posts: 16
Threads: 3
Joined: Apr 2019
Reputation: 0
#13
2021-03-05, 10:30 AM
The bots have the same ip, if you ban a bot you ban them all, you don't need to compare ip or something like that.
Code:
Discord: Marllun#6297
Chaprnks
Offline

Burgershot Member
Posts: 9
Threads: 0
Joined: May 2019
Reputation: 0
Location: Soviet America
#14
2021-05-21, 11:31 PM
What if two legitimate people are playing from the same IP? I used to play SA-MP w/ my brother years ago. Wouldn't this trigger a false positive & ban the both of us?
[Image: ZlUkUJb.png]
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode