Plugin Name: Register System
Plugin Author: m0skVi4a ;]
Plugin Version: 5.0
Modification: Counter - Strike
Category: General PurposeDescription:This is Register System. You can put a password to your name and if
someone connect to the server with the same name he will be kicked if he
does not login.
Pictures:
Commands:say /reg
say_team /reg
Open the register system menu
Or the Jointeam button (Default:
M)
CVARS:"rs_on" - Is the plugin on(1) or off(0).
Default: 1
"rs_save_type" - Where to seve the information: to file(0) or to MySQL(1). [b]Default: 0"rs_host" - The host for the database.
Default: 127.0.0.1"rs_user" - The username for the database login.
Default: root"rs_pass" - The password for the database login.
Default:"rs_db" - The database name.
Default: registersystem"rs_password_prefix" - The prefix of the setinfo for the Auto Login function.
Default: _rspass"rs_register_time" - How much time has the client to register. If is set to 0 registration is not mandatory.
Default: 0"rs_login_time" - How much time has the client to login if is registered.
Default: 60.0"rs_messages" - What messages will be displayed when the client
connect - only hud messages(1), only chat messages(2) or hud and chat
messages(3).
Default: 3"rs_password_len" - What is minimum length of the password.
Default: 6"rs_attempts" - How much attempts has the client to login if he type wrong password.
Default: 3"rs_chngpass_times" - How much times can the client change his password per map.
Default: 3"rs_register_log" - Is it allowed the plugin to log in file when the client is registered.
Default: 1"rs_chngpass_log" - Is it allowed the plugin to log in file when the client has change his password.
Default: 1"rs_autologin_log" - Is it allowed the plugin to log in file when the client has change his Auto Login function.
Default: 1"rs_name_change" - Which of the clients can change their names - all
clients(0), all clients without Logged cients(1) or no one can(2).
Default: 1"rs_blind" - Whether clients who have not Logged or who must Register be blinded.
Default: 1"rs_chat" - Whether clients who have not Logged or who must Register chat's be blocked.
Default: 1"rs_logout" - What to do when client Logout - kick him from the server(0) or wait to Login during the Login time(1).
Default: 0All CVARS are without quotesCredits:m0skVi4a ;] - for the idea and make the plugin
ConnorMcLeod - for his help to block the name change for the clients
Sylwester - for the idea for the encrypt
dark_style - for ideas in the plugin
Changelog:November 6, 2011 - v1.0 BETA:
- First Release
November 20, 2011 - v1.1 FINAL
- Fixed some bugs
- Added hange Password function
- Added Info/Help
- Added cvars to show when the client is registered and change his password
- Password are now encrypted for more safety
November 23, 2011 - v1.1 FINAL FIX 1
- Fixed bug if the client type more than CVAR setted attempts passwords
November 28, 2011 - v1.1 FINAL FIX 2
- Fixed bug if that the menu does not pop up when user connect
December 26, 2011 - v2.0
- Fixed bug if player change his name and the system does not check the new name
- Added block chooseteam if the client is registered but not logged
- Added MySQL support
- Added .cfg file to manually set the settings of the system
- Added CVAR for to set which clients can change their names
- Added auto login on changevel or client retry
December 27, 2011 - v2.0 FIX 1
- Fixed bug with the kick function
January 3, 2012 - v2.0 FIX 2
- Fixed bug with the auto login function that does not work on steam clients
January 24, 2012 - v3.0
- Fixed bug with the MYSQL Connection
- Added new style of the Change Password function
- Removed some CVARs and added new
- Now in the Register System file or into MYSQL table is not saving
the date and time for registering or for changing password for the
client. They are saving in special log file with name
register_system_log.txt
February 17, 2012 - v4.0
- Fixed some little bugs
- Added new style of the main menu
- Removed the possibility of SQL Injection
- The whole name change function is rewritten
- Added option for the not registered and not logged clients to be blinded
- Added option for the not registered and not logged clients chat's to be blocked
- Added showing information in the consoles of the clients about why they are kicked
February 19, 2012 - V4.0 FIX 1
- Fixed bug with the join in the Spectator team
- Added the Auto Assign option in the main menu
- Small rewrite of the Auto Login function
March 10, 2012 - V5.0
- Fixed bug with % that replace the space in the name of the client
- Fixed the bug with the menu that stands when client choose team
- Fixed some little bugs
- Added new style of the main menu
Moduls: PHP Code:
#include
#include
#include
#include
Libraries: PHP Code:
#include
Installation1. Compile the plugin
2.
.amxx file goes to
plugins dir
3.
registersystem.cfg goes to
configs dir
4.
(незадължително) goes to
regusers.ini в
configs dir
5. Choose
rshelpmotd_*.txt, rename it to
rshelpmotd.txt and put it in
cstrike dir
6. Add
at the top of plugins.ini the name of the
.amxx file
7. Set up
registersystem.cfg and start the server. The plugin will automatically create
regusers.ini file or the table for the database if it is necessary.
IMPORTANT - To work the plugin properly, it has to
be at the top of plugins.ini - If you want to edit the SALT, find:
PHP Code:
#define SALT "8c4f4370c53e0c1e1ae9acd577dddbed"
and edit this "8c4f4370c53e0c1e1ae9acd577dddbed", but not to be more than 32 characters.
- If in the console pops up the message
info string length exceeded it means that the client has too many setinfo's in his
configs.cfg and he would not be able to use Auto Login function until he delete some of the setinfos
This plugin is tested by me, m0skVi4a ;] , on AMX MOD X 1.8.1 and it works properly!!!Download :Register System V5.0