Raised This Month: $105 Target: $400
 26% 

User registration


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   devicenull (200)
TheWeed
Junior Member
Join Date: Jun 2005
Old 06-17-2005 , 13:58   User registration
Reply With Quote #1

Code:
===============================================================================
User registration plugin - Version 1.25
===============================================================================
http://forums.alliedmods.net/showthread.php?p=120842

--------
Features
--------
-Changes users names if
    # not logged in
    # uses a blocked name (support for exceptions)
-Option to gag users that are not logged in (gag say, say_team and voice comm)
** voice comm gag untested **
-Authentication via 3 systems
    # Name and password
    # Steam ID
    # IP
-1 account per Steam ID / IP (only if Steam ID / IP authentication is used)
-uses a variable in 'setinfo' to store password / Steam ID / IP
-For email registration in game register and unregister is disabled
-PHP registration form available

------------
Requirements
------------
-MySQL
-engine module (used for voice mute)

---------
Tested on
---------
-Windows XP Professional Edition
-AMX mod v 1.71
-MySQL 5.0.18-nt
-Counter-Strike
    Exe version 1.1.2.5/2.0.0.0 (cstrike)
    Exe build: 21:56:52 Feb  8 2006 (338

--------------
Main Functions
--------------
Register, Unregister, Login functions have different syntax depending on authentication type

    reg <name> <pass>       Register a name (Name/Password authentication)
    reg <name>              Register a name (Steam ID / IP authentication)
    ureg <name> <pass>      Unregister (Name/Password authentication)
    ureg                    Unregister (Steam ID / IP authentication)
    login <name> <pass>     Login (Name/Password authentication)
    login                   Login (Steam ID / IP authentication)
    logout                  Logout of account
    userReghelp             Help screen

'''''''''''''''
Admin Functions
'''''''''''''''
    adreg <user> <pass>      Register a user. <pass> may be password / Steam ID / IP
    adureg <name>            Unregister user via name
    aduregID <id>            Unregister user via Steam ID / IP
    addblock <word>          Add word to block list
    delblock <word>          Remove word to block list

-----
cvars
-----
    amx_registerLogin        if set auto logs user in after registration of name

    punishments for not loggin in
    '''''''''''''''''''''''''''''
    amx_punishGag            gag chat
        -1 - no gag
         0 - gag say and team say
         1 - gag say
         2 - gag team say
    amx_punishGagVoice        gag voice communication
        0 - no gag
        1 - gag set

    amx_msgOverload
        1 - displays a lot of messages continually


---------
Changelog
---------
v 1.25  Added using a file to store data instead of a database
        Works with AMX Mod v 1.71: changed set_user_info() function - removed last parameter
        Fixed consoleAdminUnregister() that did not unregister user
v 1.24  Changed behavour of msgOverload slightly and fixed bug where logged in users logouts and does not get any msgOverload
        Added md5 hashing of passwords, and thus changed table layout for email activation        
v 1.23  Added a few fixes and changed the working of the plugin so that as long as user isnt registered, name will be [Unregistered]
v 1.22  Added plugin_modules() as suggested by devicenull :)


=========================================================================================
Online Username registration to accompany amxmodx User registration plugin - Version 1.23
=========================================================================================

Changelog
---------
v1.23 Uncommented mailing function used for debugging. Updated populateDB.php to correct WAITING_TABLE create table command
v1.22 Changed email verification regular expression. Previous expression incorrect
        Old incorrect:          http://codewalkers.com/tutorials/73/1.html
        New verified correct:   http://www.zend.com/zend/spotlight/ev12apr.php
v1.21 Removed email verification for nus.edu.sg. Uncommented generic email verification
This is my first plugin so be kind
A bit of inspiration from twisted's Name Registration / Management.
Attached Files
File Type: sma Get Plugin or Get Source (userreg.sma - 16599 views - 57.8 KB)
File Type: zip userreg.zip (6.0 KB, 5703 views)
TheWeed is offline
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 06-17-2005 , 15:13  
Reply With Quote #2

Just wondering, but what would the use of this be? Admin? Special commands?

It's a good idea if some of those were incorperated, like you can register a name, login to your admin account and logout, etc, but I don't see in your post what good this may have. I'm just curious.
__________________
f1del1ty.oXi is offline
schlifers
Junior Member
Join Date: Feb 2005
Old 06-18-2005 , 05:32  
Reply With Quote #3

This is good for LAN servers as this allows people to play with only one nick so that ranking/managing your players can be easier. This was a big problem on my server where people used to change their names all the time to avoid negative changes in their ranks. Good job TheWeed I'll test this soon, I was requesting this from twisted for a long time...Finally we'll have authentic rankings
schlifers is offline
schlifers
Junior Member
Join Date: Feb 2005
Old 06-28-2005 , 02:14  
Reply With Quote #4

nice work on the punsihments! can we have something like a big bugging text message with different colors to give users instructions on how to register? plus I am making a web registration form for my server so I was wondering if there is anyway to disable registration through console? and one more thing anyway to change pass through console?

Excellent Job! I love this plugin....
schlifers is offline
TheWeed
Junior Member
Join Date: Jun 2005
Old 06-28-2005 , 11:59  
Reply With Quote #5

Updated accordingly.
Added a cvar of msgOverload to control annoying text to bug the user to log in
When EMAIL_VERIFY is set, registration is disabled in game.
I will put up a PHP registration form shortly
TheWeed is offline
TheWeed
Junior Member
Join Date: Jun 2005
Old 07-05-2005 , 14:29  
Reply With Quote #6

Sorry for the slow update but a few things came up with my other projects and life itself in the past week.
PHP form for easy user registration done.
Hope you like it
TheWeed is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-15-2005 , 13:50  
Reply With Quote #7

public plugin_modules() {
require_module(etc)
}

Add that
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
TheWeed
Junior Member
Join Date: Jun 2005
Old 07-27-2005 , 18:24  
Reply With Quote #8

Thanx
Just added it and updated ;-)
TheWeed is offline
jubilee
Junior Member
Join Date: Oct 2005
Old 10-03-2005 , 13:53  
Reply With Quote #9

ok ... wold enyone help me set it up ? please ... it allways shows me in the hud to register ... and when i register it tells me "unknown command: reg"
and the site too ... or ... if not ...only the site please
jubilee is offline
Send a message via Yahoo to jubilee
lai
Junior Member
Join Date: Apr 2005
Old 10-16-2005 , 05:26  
Reply With Quote #10

help me!

L 10/16/2005 - 15:26:11: [AMXX] Invalid Plugin (plugin "userReg.amxx")
[AMXX] Loaded 3 admins from file
lai 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 15:25.


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