:: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
iPLEOMAX - 11.08.2011
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
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
Jay. - 11.08.2011
Cool MAX!
I wont test it now but it might come in handy some time

good job!
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
ylleron - 11.08.2011
holy sh*t! Nice man! usefull, i put it in my AS
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
Lorenc_ - 11.08.2011
I don't get it, and hook your functions, use ******'s y_hooks include to hook those functions. More explanation please?
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
iPLEOMAX - 11.08.2011
Quote:
Originally Posted by Jay.
Cool MAX!
I wont test it now but it might come in handy some time 
good job!
|
Np, Thanks
Quote:
Originally Posted by ylleron
holy sh*t! Nice man! usefull, i put it in my AS 
|
Glad you liked it.
Quote:
Originally Posted by Lorenc_
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.
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
Basicz - 11.08.2011
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.
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
iPLEOMAX - 11.08.2011
Quote:
Originally Posted by Basicz
What's up with tha' playerIP argument.. =P
|
Thanks. & Fixed the mistake, forgot to put %s in there..
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
iPLEOMAX - 11.08.2011
Quote:
Originally Posted by RealCop228
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)
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
Scenario - 11.08.2011
Quote:
Originally Posted by iPLEOMAX
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!
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
iPLEOMAX - 11.08.2011
Quote:
Originally Posted by RealCop228
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.
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
Scenario - 11.08.2011
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...
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
Sasino97 - 02.09.2011
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 )
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
FireCat - 02.09.2011
So this is basicly a temp ban?
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
JoxyBullet - 02.09.2011
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.
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
MahdiGames - 21.12.2013
When a flooder join its crashing him by adding object , so when he disconnect and another play join he will got also crash..
Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools! -
Deduction - 27.12.2013
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.