SA-MP Forums Archive
[FilterScript] Relog / Reconnect system - 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)
+--- Thread: [FilterScript] Relog / Reconnect system (/showthread.php?tid=553387)



Relog / Reconnect system - Puppy - 29.12.2014

This is a simple filterscript allowing players to re-connect using a simple command. This is done by banning their IP, and unbanning on disconnect - allowing them to reconnect.

NOTICE: If you use RemoveBuildingForPlayer, and do not restore the object by creating an object in it's place; the player will crash when they try to reconnect. I'd recommend creating a PLAYER object, and when they have safely connected removing said object.

You can find the script on pastebin here:
http://pastebin.com/kMH6sFrT


Re: Relog / Reconnect system - Crayder - 29.12.2014

I recommend telling the script that this player (his IP) already has objects removed. When he disconnects from this script and reconnects check his ip and if it matches a player that already had his objects removed then don't remove objects under onplayerconnect.

(I'm typing quickly, i'm on my phone.)


Re: Relog / Reconnect system - Puppy - 29.12.2014

Thats not possible within an FS unless the removebuilding codes are in the same FS. How-ever, that could be done within an include.


Re: Relog / Reconnect system - MohanedZzZ - 29.12.2014

Good job nice signature tho


Re: Relog / Reconnect system - Crayder - 05.01.2015

Quote:
Originally Posted by Puppy
Посмотреть сообщение
Thats not possible within an FS unless the removebuilding codes are in the same FS. How-ever, that could be done within an include.
That said, why isn't this an include? I never use filterscripts that I did not create, and when I do it is a script I created to test features.


Re: Relog / Reconnect system - Banana_Ghost - 09.01.2015

This is nice! However, sometimes the target player may encounter the "You are banned from this server." bug.


Re: Relog / Reconnect system - Puppy - 31.01.2015

Thats not really something I can control, how-ever reloading bans frequently should help a bit.


Re: Relog / Reconnect system - MBilal - 31.01.2015

what if player got crash in reconnecting? he will be banned !!


Re: Relog / Reconnect system - Puppy - 14.02.2015

He won't be banned for crashing, that's a false assumption. They will simply crash because of something such as a RemoveBuildingForPlayer conflict, or server issue. No-one else has ever reported any such issue(to my knowledge) with the IP banning method.


Re: Relog / Reconnect system - M0HAMMAD - 14.02.2015

nice job