SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/04/2010, 10:47 PM   #1
erorcun
Big Clucker
 
Join Date: Aug 2009
Posts: 144
Reputation: 11
Default [INC] ErroR's new generation user system [BUGS FIXES! V1.3!]

[INC] ErroR's new generation user system

Saves

Money
Score
Team*
Time*
Fight Style and Skills*
Drunk Level*
Wanted Level*
Weapons*
Health and Armour*
Position
Skin*

* = Optional

And you can add your own entries...

Features

-Optional callbacks

OnPlayerLogged(playerid,username[]) //Called after the login.
OnPlayerRegistered(playerid,username[]) // Called after the register.

-Usergroup System

Quote:
SetupUserSystem(mode, defaultusergroup, minpasssize, savetime, saveteam, savefightandskill, savedrunk, savewanted, saveweapon, savehealth, saveskin, failedloginthreshold);

GetMemberUsergroup(username[]);

ChangeMemberUsergroup(username[],usergroup);
-Fully customizable

Now that's easy to add additional entries.
The only thing you need to do, to put the AddIntInfo/AddFloatInfo/AddStringInfo command.

Example:
pawn Code:
public OnPlayerRegistered(playerid,username[])
{
new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start
AddIntInfo(username,"phone",randphone);
return 1;
}

-Improved Auto Login

- Automatically removes invalid entries
- Quickly makes the login. Does not require additional processing.
- IP addresses and user names are stored in autologin.ini.

pawn Code:
SetAutoLogin(username[],ip[]);
RemoveAutoLogin(ip[]);
CheckAutoLogin(ip[]);

-Skill saving

Skill saving, first time in ErroR's user system.

Quote:
SetupUserSystem(mode, defaultusergroup, minpasssize, savetime, saveteam,savefightandskill, savedrunk, savewanted, saveweapon, savehealth, saveskin, failedloginthreshold)
-GUI mode

Quote:
SetupUserSystem(mode, defaultusergroup, minpasssize, savetime, saveteam, savefightandskill, savedrunk, savewanted, saveweapon, savehealth, saveskin, failedloginthreshold)
0 = GUI off
1 = GUI before spawn
2 = GUI after spawn

-Customizable stats saving

Quote:
forward SetupStatsSavingSystem(boolnplayerupdate,booln playerdisconnect,boolnplayerstatechange,timerint erval);
If you set timerinterval to 0, stats saving timer will not work.

Functions

pawn Code:
//###########// CALLBACKS //###############//
forward OnPlayerLogged(playerid,username[]);
forward OnPlayerRegistered(playerid,username[]);
 
//###########// SETUP //#################//
forward SetupUserSystem(mode, defaultusergroup, minpasssize, savetime, saveteam, savefightandskill, savedrunk, savewanted, saveweapon, savehealth, saveskin, failedloginthreshold); //modes: 0:gui system off 1:gui before spawn, 2:gui after spawn
forward SetupStatsSavingSystem(bool:onplayerupdate,bool:onplayerdisconnect,bool:onplayerstatechange,timerinterval);
 
//##########// ADDITIONAL FIELDS //##############//
forward AddIntInfo(username[],key[],value);
forward AddFloatInfo(username[],key[],Float:value);
forward AddStringInfo(username[],key[],value[]);
 
//##########// USER ADD & DELETE //###############//
forward RegisterMember(username[],password[]);
forward RegisterMemberByPlayer(playerid, username[],password[], autologin);
forward DeleteMember(username[]);
 
//##########// LOGIN & LOGOUT //###############//
forward Login(playerid,username[]);
forward Logout(playerid,bool:showlogindialog);
 
//##########// AUTO LOGIN //###############//
forward SetAutoLogin(username[],ip[]);
forward RemoveAutoLogin(ip[]);
//   CheckAutoLogin(ip[]);
 
//##########// GET INFO //###############//
forward GetMemberStatsInt(username[],statname[]);
//       GetMemberStatsFloat(username[],statname[]);
//       GetMemberStatsString(username[],statname[]);
forward GetMemberUsergroup(username[]);
//       GetMemberEncryptedPassword(username[]);
forward GetMemberPlayerID(username[]);
//       GetPlayerUsername(playerid);
forward IsPlayerLogged(playerid);
 
//##########// SET INFO //###############//
forward ChangeMemberName(oldname[],newname[]);
forward ChangeMemberPassword(username[],password[]);
forward ChangeMemberUsergroup(username[],usergroup);
forward SetMemberStatsInt(username[],statname[],value);
forward SetMemberStatsFloat(username[],statname[],Float:value);
forward SetMemberStatsString(username[],statname[],value[]);

Photos & Videos




Installation

1- Put to the top
pawn Code:
#include <usersystem>

2- Put to the OnGameModeInit and configure
pawn Code:
SetupUserSystem(mode, defaultusergroup, minpasssize, savetime, saveteam, savefightandskill, savedrunk, savewanted, saveweapon, savehealth, saveskin, failedloginthreshold); //modes: 0:gui system off 1:gui before spawn, 2:gui after spawn
SetupStatsSavingSystem(bool:onplayerupdate,bool:onplayerdisconnect,bool:onplayerstatechange,timerinterval);

SetupUserSystem function:

Mode = If you set to 0, gui will not work. If you set to 1, gui will appear before spawn, 2= gui will appear after spawn

Default User Group = Default user group while players was registering. I suggest to type 0.

Min pass size = I suggest to type 4.

Failed login threshold = This option sets invalid login limit. I suggest to type 3.

SetupStatsSavingSystem function:

OnPlayerUpdate = If you set true, stats will be saved automaticly in onplayerupdate callback.
OnPlayerDisconnect = If you set true, stats will be saved automaticly in onplayerdisconnect callback.
OnPlayerStateChange = If you set true, stats will be saved automaticly in onplayerstatechage callback.
Timer Interval = If you enter a interval, stats will be saved automaticly with timer. If you set to 0, timer will not work.

Download V1.3

http://solidfiles.com/d/48f4/download/

[TUT]How to add additional entries in ErroR's registration system: http://forum.sa-mp.com/index.php?topic=171614.0

_________________________________________________
Sorry for my english
erorcun is offline   Reply With Quote
Old 10/04/2010, 11:56 PM   #2
gecatahh
Big Clucker
 
Join Date: Mar 2008
Posts: 114
Reputation: 0
Default Re: [FS&INC] ErroR's new generation user system [Coming soon]

Looks very very nice.... I will wait for it!
gecatahh is offline   Reply With Quote
Old 11/04/2010, 02:10 AM   #3
Carlton
Banned
 
Join Date: Mar 2010
Posts: 723
Reputation: 0
Default Re: [FS&INC] ErroR's new generation user system [Coming soon]

This looks very interesting.
Carlton is offline   Reply With Quote
Old 11/04/2010, 02:32 AM   #4
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 3,076
Reputation: 406
Default Re: [FS&INC] ErroR's new generation user system [Coming soon]

Nice, but you probably should have waited to post this.
__________________
People seem to enjoy negitive repping me for topics that I made in 2009.
Therefore, if you want to view my releases, you can go here.

Skype: TheKiller@dr.com
I do NOT script for cash. Add me on MSN if you need help with small issues.
[HiC]TheKiller is offline   Reply With Quote
Old 11/04/2010, 04:09 AM   #5
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,104
Reputation: 883
Default Re: [FS&INC] ErroR's new generation user system [Coming soon]

holy shit im waiting
__________________

198.24.168.202:7777 - An awesome CnR server consisting of doozy features! Come, we have players!


Lorenc_ is offline   Reply With Quote
Old 11/04/2010, 06:56 PM   #6
erorcun
Big Clucker
 
Join Date: Aug 2009
Posts: 144
Reputation: 11
Default Re: [INC] ErroR's new generation user system [Coming soon]

First screenshots:




Currently, only the stats import system remained.
Skill saving system was completed today.
I will publish few weeks later.
erorcun is offline   Reply With Quote
Old 16/04/2010, 12:04 PM   #7
ineoncore
Big Clucker
 
Join Date: Feb 2010
Posts: 169
Reputation: 0
Default Re: [INC] ErroR's new generation user system [Coming soon]

few weeks wow that a lot.
ineoncore is offline   Reply With Quote
Old 17/04/2010, 11:06 AM   #8
Mc. B-Ko
Little Clucker
 
Join Date: Nov 2008
Posts: 1
Reputation: 0
Default Re: [INC] ErroR's new generation user system [Coming soon]

Nice work.
Mc. B-Ko is offline   Reply With Quote
Old 17/04/2010, 03:18 PM   #9
Roymer
Huge Clucker
 
Roymer's Avatar
 
Join Date: Dec 2009
Posts: 287
Reputation: 0
Default Re: [INC] ErroR's new generation user system [Coming soon]

LOL and the Link?
Roymer is offline   Reply With Quote
Old 17/04/2010, 04:55 PM   #10
¤Adas¤
Gangsta
 
¤Adas¤'s Avatar
 
Join Date: Jan 2010
Posts: 564
Reputation: 21
Default Re: [INC] ErroR's new generation user system [Coming soon]

It looks nice.
¤Adas¤ 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] ErroR's Registration System with GUI! erorcun Filterscripts 220 11/07/2010 07:56 PM
[Tutorial] [TUT] How to add additional entries in ErroR's registration system erorcun Tutorials 1 06/05/2010 03:22 PM
ErroR's Registration System en mi GM SuperMarioRol Espaņol/Spanish 4 07/01/2010 06:27 PM


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


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