SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 11/08/2011, 10:14 AM   #1
iPLEOMAX
High-roller
 
iPLEOMAX's Avatar
 
Join Date: Mar 2011
Location: AE
Posts: 1,250
Reputation: 746
Thumbs up :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

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
__________________
Goodbye SA-MP.

Last edited by iPLEOMAX; 11/08/2011 at 02:26 PM.
iPLEOMAX is offline   Reply With Quote
Old 11/08/2011, 10:31 AM   #2
Jay.
High-roller
 
Join Date: Nov 2009
Location: UK
Posts: 1,121
Reputation: 47
Default Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

Cool MAX!

I wont test it now but it might come in handy some time
good job!
Jay. is offline   Reply With Quote
Old 11/08/2011, 10:39 AM   #3
ylleron
Big Clucker
 
ylleron's Avatar
 
Join Date: May 2011
Location: Slovakia
Posts: 193
Reputation: 7
Default Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

holy sh*t! Nice man! usefull, i put it in my AS
__________________
ylleron is offline   Reply With Quote
Old 11/08/2011, 10:42 AM   #4
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,793
Reputation: 1179
Default Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

I don't get it, and hook your functions, use ******'s y_hooks include to hook those functions. More explanation please?
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777

Lorenc_ is offline   Reply With Quote
Old 11/08/2011, 10:47 AM   #5
iPLEOMAX
High-roller
 
iPLEOMAX's Avatar
 
Join Date: Mar 2011
Location: AE
Posts: 1,250
Reputation: 746
Default Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

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.
__________________
Goodbye SA-MP.
iPLEOMAX is offline   Reply With Quote
Old 11/08/2011, 12:17 PM   #6
Basicz
Gangsta
 
Basicz's Avatar
 
Join Date: Aug 2010
Location: Indonesia, Surabaya.
Posts: 605
Reputation: 35
Default Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

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.
__________________

- Quina, from the game " Final Fantasy IX "
Basicz is offline   Reply With Quote
Old 11/08/2011, 12:21 PM   #7
iPLEOMAX
High-roller
 
iPLEOMAX's Avatar
 
Join Date: Mar 2011
Location: AE
Posts: 1,250
Reputation: 746
Default Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

Quote:
Originally Posted by Basicz
What's up with tha' playerIP argument.. =P
Thanks. & Fixed the mistake, forgot to put %s in there..
__________________
Goodbye SA-MP.
iPLEOMAX is offline   Reply With Quote
Old 11/08/2011, 02:19 PM   #8
iPLEOMAX
High-roller
 
iPLEOMAX's Avatar
 
Join Date: Mar 2011
Location: AE
Posts: 1,250
Reputation: 746
Default Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

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)
__________________
Goodbye SA-MP.
iPLEOMAX is offline   Reply With Quote
Old 11/08/2011, 02:43 PM   #9
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

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!
Scenario is offline   Reply With Quote
Old 11/08/2011, 02:49 PM   #10
iPLEOMAX
High-roller
 
iPLEOMAX's Avatar
 
Join Date: Mar 2011
Location: AE
Posts: 1,250
Reputation: 746
Default Re: :: Anti-Reconnect Script. Avoid Auto Reconnects made by * tools!

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.
__________________
Goodbye SA-MP.
iPLEOMAX is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] Anti Auto Reconnect - MySQL | Stops Cheaters And Auto Reconnect Bot Attacks StrickenKid Filterscripts 33 05/05/2012 07:14 PM
[Tutorial] How To Avoid Getting Your Script Stolen Sledge Tutorials 22 04/01/2011 11:47 AM
How to auto-reconnect a player? blackwave Portuguкs/Portuguese 8 15/11/2010 07:37 PM
[FilterScript] Anti Quick Reconnect MX_Master Релизы/Releases 41 25/07/2010 07:58 PM
Anti crash or Auto reconnect? NEW_IE General 7 21/01/2009 07:25 AM


All times are GMT. The time now is 12:52 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.