Raised This Month: $64 Target: $400
 16% 

Lt - Advanced Login System + API


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
LtIbrahim
Junior Member
Join Date: Feb 2014
Old 11-06-2018 , 08:25   Lt - Advanced Login System + API
Reply With Quote #1

Version: 1.3
Desc: The plugin allow register and login server. Autologin included.

Requirements
SQLX module
Advanced Say Commands(v1.2) + Api




Installation:
Complie plugin with compiler.
Add ibm_say.amxx and scxp_login.amxx to plugins.ini

Cvar Commands
xp_login_required(default 4 - 0 to 4): 0 disabled, 1 required all, 2 required users.ini users only, 3 required admin only, 4 required usersi.ini users and admin only


xp_login_emailrequired (default 0 - 0 to 1): if set 1, user must be enter email on register.


xp_login_auto (default 1 - 0 to 1): Enable or disable automatic login(If set disabled users must be login every maps).


xp_login_autoregister (default 1 - 0 to 1):Enable or disable automatic register system for not logged in users.


xp_login_autoregistertime(default 150): Set automatic register time for not logged in users.




Admin Command
xp_deleteuser (username, @userid, #usermail): Delete user data.
xp_changeuserpass(username, @userid, #usermail) newpass: Change user password.


Client Command
xp_login <username> <password> or <directcode>: Login to system.
xp_register <username> <password> <email>: Register to sytem.
xp_changepassword <newpassword>: Change login password.
xp_logout: Logout from system.
xp_clean: Clean automatic login informations.

Say Command
/lastusers: Show last registered users.
/top15time: Show top15 time
/loginmenu: Open the loginmenu
/login <username> <password> or <directcode>: Login to system.
/register <username> <password> <email>: username





API Informations:
Forwards:
xp_login_main(): Called when plugin initilaizing

xp_player_logindeleted(plid[], plname[]): Called when using
xp_player_loggedin(id, plid[], plname[]): Called when user logged in the sytem
xp_player_register(id, plid[], plname[]): Called when user register in the system.
xp_player_disconnected(id, plid[], plname[]): Called when user disconnected from sytem.
xp_player_loggedout(id, plid[], plname[]): Called when user logged out from server.
xp_player_passwordchanged(id, plid[], plname[]): Called when user changing password.
xp_player_namechanged(id, OldName[], NewName[], plid[], plname[]): Called when user changin name.
Natives:
xp_isplayerloggedin(id): Check player is logged in system.
xp_login_getplayerid(id, out_plid[], out_len) Get userid if user is not logged in system return 0, otherwise 1
xp_login_getusername(id, out_plname[], out_len) Get username if user is not logged in system return 0, otherwise 1
xp_show_loginmenu(id): Show loginmenu to desired user.
Arrayp_getplayerstats(userid[], statgroup[]): Return logged users stats array. (look PlayerStatInfo in scxp_login_const.inc)
xp_setuserstats(data[], len): Set logged user stats (look XPL_NATIVEVALUE in scxp_login_const.inc)
xp_setuserstat(userid[], statname[], statgroup[], statvalue[]): Set logged user stat.(The data ise saving to db)
xp_setuserstat(userid[], statname[], statgroup[], statvalue[]): Set user stat
xp_setuserstat_num(userid[], statname[], statgroup[], statvalue, n_statsettype): Set user stat as Num. (n_statsettype = stat_set , stat_add, sat_sub)
xp_setuserstat_float(userid[], statname[], statgroup[], Float:statvalue, n_statsettype): Set user stat as Float. (n_statsettype = stat_set , stat_add, sat_sub)
xp_setuserstat_datetime(userid[], statname[], statgroup[], statvalue[], n_statsettype): Set user stat as Datetimen_statsettype = stat_set , stat_add, sat_sub)
xp_getuserstat(userid[], statname[], statgroup[], statvalue[], n_outlen): Get user stat
xp_getuserstat_num(userid[], statname[], statgroup[]): Get user stat as Num

Floatp_getuserstat_float(userid[], statname[], statgroup[]): Get user stat as Float

xp_deletuserstat(userid[], statname[], statgroup[]): Delete user stat by name from db.
xp_deletuserstats(userid[], statgroup[]): Delete user stat group from db.
Attached Images
File Type: jpg loginmod1.jpg (69.7 KB, 66 views)
File Type: jpg loginmod2.jpg (42.0 KB, 59 views)
Attached Files
File Type: zip loginmod130.zip (26.8 KB, 33 views)
LtIbrahim is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 11-06-2018 , 09:29   Re: Lt - Advanced Login System + API
Reply With Quote #2

Is there another reasonable use for this other than on a non-steam server?

Useless.
__________________

Mordekay is offline
Nutu_
Senior Member
Join Date: Mar 2016
Location: no where
Old 11-08-2018 , 19:09   Re: Lt - Advanced Login System + API
Reply With Quote #3

email? really :')
useless,
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
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

Forum Jump


All times are GMT -4. The time now is 21:44.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode