AlliedModders
XFactor Servers

Registration


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 08-07-2008 , 03:13   Registration
Reply With Quote #1

Registration ver. 1.0.1
PHP Code:
/*This Plugin Was Created By Scriptxxcaz
*
*      Credits
*      -------
*  Special Thanks to Allied Modders Forums for helpful and useful information.
*
*
*    This plugin was created to do the following:
*    -------------------------------------------
*  Prevent stolen accounts from being used in servers. [Request in the Allied Modders Forums]
*---------------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------------
*
*     Description:
*  When a player enter's the server he/she must register within a certain 
*  amount of minutes or he/she will be kicked.  A menu will pop-up asking
*  to confirm password or re-type a new password. If confirmed, the 
*  players name,id, and password will be stored in a file. If the player
*  chooses to re-type the password, he/she will be asked to re-register.
*  If he/she re-registers, he/she will have to register within a certain amount of minutes
*  and login within a certain amount of minutes or be kicked. If the 
*  player is already registered he/she must login within a certain 
*  amount of minutes or he/she will be kicked. The amount of minutes can
*  be changed as desired. If a player has forgotten his/her password, he/she
*  can ask an admin to reset their password if rg_resetacc = 1. If rg_resetacc = 2, 
*  the player can reset his,her password themselves. This is done by the rg_resetpass <name>
*  command. This command over writes that players password as "default" and the
*  player is asked to re-register. He/she must re-register and login within a certain
*  amount of minutes or be kicked. If kicked or disconnect before re-registering,
*  when they re-enter they will be asked to register. A userlist can 
*  be obtained to show player's steam id's that are in the server.If file doesn't exist
*  the file will be created when the plugin is first ran.*/ 
Command's
---------
say /register <password> -registers a user. writes the players name,id, and password to file.
say /login <password> -logs a user in. if the password is same as the password in the registration file, player is then logged in.
say /userlist -shows player id's of the players in the server


Console Command's
-----------------
rg_resetpass -resets a players password(player must be in server). Writes "default" as their pass in the file.
***If the player disconnects before re-registering when they reconnect they will be asked to register.***
rg_useracc -sets the access to admin only or all player access. This is used for setting the access on user list(Admin only command)
Uses mp_useracc CVAR
rg_resetacc -sets the access to admin only or all player access. This is used for setting the access on rg_resetpass(Admin only command)
Uses mp_reseracc CVAR
**Note access to these commands are use with #define ADMIN. This can be changed to any admin level of your choice.**

CVAR's
------
mp_useracc -1 = admins only / 2 = all players
mp_resetacc -1 = admins only / 2 = all players
mp_logmin -sets the time that players have to login or the player will be kicked
mp_regmin -sets the time that players have to register or the player will be kicked

version 1.0.1
----------
Fixed login time and register time. -The set_task timer's are now set by cvar's.
Fixed chat. -[Registration] is green and the rest of the text is in yellow

**P.S. version 1.0.5 will have an agreement show when you join a team(optional, set by cvar). If you agree to the agreement, then you will have to register and login. If you were already registered, this agreement will not show for you; therefor you wont have to do anything accept login. If you disagree, you will be allowed to play on the server.(A cvar can also be set to kick a player if he/she disagree's).I believe the newer version will be more user friendly and will not force players to register if they choose not to.**
Attached Files
File Type: sma Get Plugin or Get Source (registration.sma - 601 views - 14.0 KB)
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress

Last edited by scrtxxcaz; 08-07-2008 at 07:53. Reason: changes
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 08-07-2008 , 05:18   Re: Registration
Reply With Quote #2

I saw a few errors make sure this works ;) I mean ... look format(message[lenmes],111,"%s Please type /login password to login or be kicked in %d minute(s).",YELLOW)

weres the time?

things like this.. please check it.
__________________
Styles is offline
Send a message via AIM to Styles Send a message via MSN to Styles
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 08-07-2008 , 07:38   Re: Registration
Reply With Quote #3

ahhhh... thank you.
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
stupok
Veteran Member
Join Date: Feb 2006
Old 08-17-2008 , 01:47   Re: Registration
Reply With Quote #4

It took me a while to figure out why this plugin would be useful. Now that I know its purpose, I still think it's not very useful.

Getting your Steam account stolen means giving out your Steam password. If you're willing to give away your Steam password, what good is another password for a specific server? And what is this second password protecting?

I can think of one situation where this plugin would be of use. Imagine a hosting server that keeps track of players' scores. Now, two brothers use the same computer, but the older one wants to keep his little brother out of this server because he's a noob and he'll ruin his score on this server.

Am I missing something?
__________________
stupok is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 08-17-2008 , 02:46   Re: Registration
Reply With Quote #5

This was a request that i thought might be useful to other people as well but i guess not. But this could be a good example of why this plugin could be useful:

Lots of accounts are being stolen. For example: Say two people want to trade accounts, person a and person b. Person a gives out their steam id and password to person b. Person b then changes person a's password and never gives person a their account. Now person b has two accounts.

BUT

With this plugin, it would act as a second secruity. Example: Person a gives person b their steam id and password for just their steam account (not the server's password). Person b can change person a's steam password but he wont be able to enter a server because person a didnt give person b his server password. This would force person a to have a useless account, give back the account, or give his steam id and password. Then person a and person b can both give out their server passwords.
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 08-17-2008 , 06:30   Re: Registration
Reply With Quote #6

Its lame since, I can just go to another one of the 25k servers for CS1.6... so... really.. why?
__________________
Styles is offline
Send a message via AIM to Styles Send a message via MSN to Styles
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-18-2008 , 12:05   Re: Registration
Reply With Quote #7

u can add a registration with names, not only with steam ids
Alucard^ is offline
Send a message via Skype™ to Alucard^
skymoon
Junior Member
Join Date: Aug 2008
Old 08-29-2008 , 22:43   Re: Registration
Reply With Quote #8

hi
i'm come from taiwan
sorry for my pool english
---------------------------
i have some question
when i open the hlds
then i see the error windows:
Host_Error:WriteDest_Parm:not a client
what happend?
who can help me?
skymoon is offline
freamer
Member
Join Date: Nov 2005
Old 08-31-2008 , 03:45   Re: Registration
Reply With Quote #9

I think this plugin will be useful if you rewrite it to support SQL. For example,I would integrate this plugin to my servers community site,so users could register themselves ingame.
freamer is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 08-31-2008 , 04:46   Re: Registration
Reply With Quote #10

@scrtxxcaz
try implement nick registration like irc uses; eg you connect to server using a registered nick, server then immediately changes your nick to another nick and prompt you to use command "/nick <name> <password>" to login the nick. If you enter wrong password 3 times in a row, be prepared to get disconnected from the server ;)

isn't that much more fool proof? no one could use your nick unless he manage to log in with the correct password, as oppose to the way your plugin works:

Quote:
when a player enter's the server he/she must register within a certain amount of minutes or he/she will be kicked
well if you do it that way, i could see that players gonna have enough time to use other players nick to play before being kicked when time to login timeout, and possiblely giving bad frags to the nick's score

Last edited by Mlk27; 09-03-2008 at 04:15.
Mlk27 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 05:35.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Theme made by Freecode Sponsored by Layered Technologies