Table of Contents 
1. Description
2. Features
3. Installation
4. Configuration
5. Reserved Variables
6. Useful Info
7. Notes
8. Limitations
9. Rules
10. Version History
Description 
Just long time not uploading a script. Hey wait, i'm still alive, i'm just start learn to be a music producer.
This Lua allows you to restore all of your stats, position, weapons, and addtional script-specific stats data when you reconnect from connection problems.
Features 
Restores weapon and ammo(uses
Delete saved data after x seconds(configurable, uses
You also can use
Should compatible with another scripts(also you can save script-specific data, example: your saved position in blocker's roleplay lua)
Installation 
Install it as usual(see download page)
Configuration 
Recs.Permissions - Use VADemon's permissions(default false). The permission is reconnect.restore
Recs.IPMatch - Match only x sequence of IP(default 3). If you only expect static-ip only, set to 4
Recs.Timeout - Delete saved player data after x seconds(default 60)
Recs.AddtionalData - List of table reference that retrieved when timeout(another script-specific table should be here. Just put the table name without quotes)
Reserved Variables 
Recs
timerEx*
freetimerEx*
LogCapture** - Doesn't re-allocated when already exists
Useful Info 
223 lines of code
You can add your addtional data with table.insert(Recs.AddtionalData,<your data table name without quotes>)(key is player id)
Uses 3 hooks(
log,
leave,
join)
It only save player data when leave reason is 1 or 9
Notes 
1. Again, again, and again. Your feedbacks, bug reports on comments.
2. This is my first lua which uses UNIX End-Of-Line system.
3. I just test some parts of it. Like, it's basic feature.
4. Sometimes it doesn't set your weapon to your last-used weapon
5. Because bug in v1.0, you can update to v1.1 by replacing line 174 with this
local t,ain,a=w:match("Titem: #0, pl: %d+, typ: (%d*) %([^,]*%), a: (%d*)|(%d*)")
Limitations 
Skin look doesn't saved.
Rules 
You can use it for your lua and your server
You can edit it
Share to others
Say
MikuAuahDark made it
Reupload with me on credits
Say you made it
Redistribute your edited version
Re-upload without me on credits
Version History 
V1.1

V1.0

I'm sure that screenshot doesn't needed
edited 1×, last 22.12.14 10:06:00 am
Approved by Seekay
Download
3 kb, 633 Downloads
MikuAuahDark: Reconnect-Restore v1.1
Offline
1