[Include] :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!
#1

Simple Anti-Reconnect Script.

Hi Guys, I made a new FS actually but later converted into
an include and wanted to share with you guys.

What it does?
As you know there are few methods of auto-reconnect when someone gets kicked/banned...
To avoid that, the script will crash the gta of the client.
Most of you use SQL/ini/non rcon ban systems which is
quite sophisticated compared to default rcon ban method.
So, it creates a problem for the server to check the
reconnecters for existence of bans/info or w/e.

Normal ban: (without AR)
-Player pressed the button to reconnect: Rejoins
-Kicked
-Rejoin, server loads the ban info.
-Kicked
-Rejoin, server loads the ban info.
-Kicked
-Rejoin, server loads the ban info. and so on...(Heavy load for Server)

Ban (with AR) -Player pressed the button.
-Rejoins And gets crashed. (No more problems)

Also Good if he cheats to connect to server instantly after getting PingKicked/VoteKicked/Spam,FloodKicked etc..
Make it simple, crash him! xD

Picture (of me getting pwnt. >.>)


How to use?
pawn Code:
//Copy whole text from pastebin and paste it in notepad.
//Save it as "arec.inc" in your Server/pawno/includes folder.

//Then use this in the gamemode script (Use only once out of all server scripts)
#include <arec>

//natives:
ARKick(playerid); //Replace all your Kick(s); with this one.
ARIgnore(playerid); //If you want someone to spam your connection, use this.
ARConnect(playerid); //Add this on TOP of OnPlayerConnect
ARDisconnect(playerid); //Add This on TOP of OnPlayerDisconnect.

//To make it work:
public OnPlayerConnect(playerid)
{
    ARConnect(playerid);   
}

public OnPlayerDisconnect(playerid, reason)
{
    ARDisconnect(playerid);
}
Download:
Pastebin

Please report bugs if you find any, do something with the script! :P

Post a reply about what you think..
Could be useful, could be useless.. IDK, depends on you. :>

If you like my work, Help me to help a community: AlertPay E-Mail: morshidul@hotmail.com
AlertPay Link
Reply
#2

Cool MAX!

I wont test it now but it might come in handy some time
good job!
Reply
#3

holy sh*t! Nice man! usefull, i put it in my AS
Reply
#4

I don't get it, and hook your functions, use ******'s y_hooks include to hook those functions. More explanation please?
Reply
#5

Quote:
Originally Posted by Jay.
View Post
Cool MAX!

I wont test it now but it might come in handy some time
good job!
Np, Thanks

Quote:
Originally Posted by ylleron
View Post
holy sh*t! Nice man! usefull, i put it in my AS
Glad you liked it.

Quote:
Originally Posted by Lorenc_
View Post
I don't get it, and hook your functions, use ******'s y_hooks include to hook those functions. More explanation please?
Ok, I'll use and learn about it. I was never good with creating "includes" x) it was originally an FS when i created.

About the include:
Sometimes, when you kick/ban a player (non samp.ban), they manage to rejoin server using some tools, you kick him, you see him back, you ban him, he floods your server with incoming requests.. just to avoid such situations, the script crashes the client. It won't let him connect instantly after a second.
Reply
#6

Err
pawn Code:
{ printf("[info] Crashed ID%i. [SUCCESS]",playerid,playerIP); }
What's up with tha' playerIP argument.. =P

Overall, this is an useful script.
Reply
#7

Quote:
Originally Posted by Basicz
What's up with tha' playerIP argument.. =P
Thanks. & Fixed the mistake, forgot to put %s in there..
Reply
#8

Quote:
Originally Posted by RealCop228
View Post
Why in hell do you crash the player? Just kick them off the server again!
I'm restricted to post videos on those tools. Lol, the guy above posted it.. anyway..

Normal ban: (without AR)
-Player pressed the button to reconnect: Rejoins
-Kicked
-Rejoin, server loads the ban info.
-Kicked
-Rejoin, server loads the ban info.
-Kicked
-Rejoin, server loads the ban info.
and so on...(Heavy load for Server)

Ban (with AR)
-Player pressed the button.
-Rejoins And gets crashed.
(No more problems)

Also Good if he cheats to connect to server instantly after getting PingKicked/VoteKicked/Spam,FloodKicked etc..

(Also added these to the first post)
Reply
#9

Quote:
Originally Posted by iPLEOMAX
View Post
I'm restricted to post videos on those tools. Lol, the guy above posted it.. anyway..

Normal ban: (without AR)
-Player pressed the button to reconnect: Rejoins
-Kicked
-Rejoin, server loads the ban info.
-Kicked
-Rejoin, server loads the ban info.
-Kicked
-Rejoin, server loads the ban info.
and so on...(Heavy load for Server)

Ban (with AR)
-Player pressed the button.
-Rejoins And gets crashed.
(No more problems)

Also Good if he cheats to connect to server instantly after getting PingKicked/VoteKicked/Spam,FloodKicked etc..

(Also added these to the first post)
I'm pretty sure if you did a little more coding you could avoid that issue and be able to kick the player, instead of crashing them!
Reply
#10

Quote:
Originally Posted by RealCop228
View Post
I'm pretty sure if you did a little more coding you could avoid that issue and be able to kick the player, instead of crashing them!
The actual purpose of crashing is closing his gta, which means to won't be able to "spam reconnect" anymore.

Which is better?
1. More protection codes OnPlayerConnect and let him spam the reconnect button.
2. Crash him once and avoid future spam.

As I said, this is useful for general kicks and seperate ban systems. Those who use rcon bans doesn't benefit much from it.
Reply
#11

Quote:
Originally Posted by iPLEOMAX
Посмотреть сообщение
The actual purpose of crashing is closing his gta, which means to won't be able to "spam reconnect" anymore.

Which is better?
1. More protection codes OnPlayerConnect and let him spam the reconnect button.
2. Crash him once and avoid future spam.

As I said, this is useful for general kicks and seperate ban systems. Those who use rcon bans doesn't benefit much from it.
Okay, you have a point there...
Reply
#12

Great Work


Quote:
Originally Posted by KoczkaHUN
Посмотреть сообщение
how do this crash the player?
There are some methods to crash a player:

- Creating a bad PlayerObject ( CreatePlayerObject )
- Setting an invalid skin to him ( SetPlayerSkin )
Reply
#13

So this is basicly a temp ban?
Reply
#14

Actually this can be avoided by creating (client-side) checks by cheat tool's developer on whatever crashes the player(SetPlayerSkin/CreatePlayerObject, etc.) and avoid it. It is far better to have some system that will ban the player who reconnects too many times, thus avoiding the issue entirely.
Reply
#15

When a flooder join its crashing him by adding object , so when he disconnect and another play join he will got also crash..
Reply
#16

I don't like this idea as innocent players may crash and think their game is buggy or the server itself is buggy and they won't join the server anymore and find a new one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)