StuffAccounts

[Reusable] StuffAccounts 1.3

I give permission for this addon to be reused, modified, or ported by anyone
  1. Yes
I understand my submission will be rejected if it does not follow forum rules, Submissions guidelines, and/or file name conventions
  1. Yes
StuffAccounts
Script for co-op game type. Players can create an account and save stuff in their accounts.
srb20115.gif
srb20114.gif
(The player registers his account and login)​
(Stuffs are returned to the player after server restart)​

The script is automated, if the player registers his account, he automatically enters his account if he rejoin the game. Saves the player's data such as: points, lives, rings, skipscrap and admin if the player has it. There is also a command "do_autoreg" that automatically registers players if they do not have accounts.

Here is a list of commands for this script!
Var nameDescriptionPossible valueDefault value
do_autoregautomatically registers accounts for players
On/Off​
Off​
do_stufflogwrites logs when a player saves their items
On/Off​
Off​
do_accountlogwrites logs when a player creates or changes a password
On/Off​
Off​
do_setadminreturns admin if enabled
On/Off​
Off​

Player commands:
    -- "ac_register" - registers on the server;
    -- "ac_login" - Login to account;
    -- "ac_changepass" - Changes password

NOTE: You need to edit the script so as not to conflict with other servers!
Open the script:
StuffAccounts.lua:
...
-- NOTE: Do not use symbols such as / \ | < > * : ? ^ "
local stuff_servername = "SRB2 Server"
-- Folder where accounts will be saved.
local folderstuff = "StuffAccounts/Accounts/"
-- The folder in which the player saves the username and password for HIMSELF.
local client_folderstuff = "client/StuffAccounts/"..stuff_servername.."/login/account.dat"
...
Edit the line local stuff_servername = "SRB2 Server".
Where "SRB2 Server" should be replaced with another name, for example: "My cool server". You should get it like this: local stuff_servername = "My cool server".
StuffAccounts_Edit.lua:
...
-- NOTE: Do not use symbols such as / \ | < > * : ? ^ "
local stuff_servername = "My cool server"
...

Congratulations! Now the players will not yell at you that they have lost access to their account because they do not remember their password.
Author
Sirexer
Downloads
130
Views
1,591
Extension type
lua
File size
25 KB
MD5 Hash
ca85b3eedfd5471df78b7f5b50192181
First release
Last update
Rating
5.00 star(s) 2 ratings

More resources from Sirexer

Share this resource

Latest updates

  1. Small Update

    Little script optimization; Added command ac_help; The password from the server account is...
  2. Small Update

    do_autoreg works if the player starts moving; Fixed bug with directories on linux; Added...
  3. HotFix 1.1

    Fixed save icon in screen resolutions 320x200, 640x400 and others.  Auto-registration works if...

Latest reviews

Oh my god! I've been looking for this for a long time!
Upvote 0
Well, uh, first time giving an real rating here.

The mod is perfect, everything works how it should be and it's REALLY useful if like.
An example: the player creates an account, later on the game he gets disconnected, when he comes back, he will still has the same things that he had, and wouldn't be sad that he lost everything.

Thank you Sirexer for making this :)
Upvote 0
Top