AMXX Plugin written by me to those who want a layer of security for their players unique id in the server.
- Updated CS 1.6 Server.
- DPROTO / REUNION installed.
- AMX Mod X 1.8.2 installed.
- FVault.inc (for Coders).
- Web hosting with Remote access privilege.
- Download the plugin.
- If you are not going to use MySQL saving method then just put the .amxx files in the "plugins" folder or compile it yourself.
- Open the .sma file and uncomment this line:
#define USING_SQL
- And also edit this lines:
new const WEBSITE[ ] = "http://www.example.com/index.php";
#define SQL_HOST "host"
#define SQL_DB "database"
#define SQL_USER "username"
#define SQL_PASS "password"
#define SQL_TABLE "tablename"
- Run this SQL command in your web:
CREATE TABLE `database_name`.`table_name` ( `authid` VARCHAR(35) NOT NULL , `password` VARCHAR(32) NOT NULL , `user_ip` VARCHAR(48) NOT NULL , `email` VARCHAR(64) NOT NULL, UNIQUE `authid` (`authid`)) ;
- Put compiled file in "plugins" folder, and restart the server.
- Enjoy!
ls_kick_time "X" // Default: 60 Change the amount of time the player have before getting kicked.
ls_max_attempts "X" // Default: 3 Change the max attempts to login before kicking the player.
#if defined _login_api_included
#endinput
#endif
#define _login_api_included
#pragma reqlib "login_system"
enum LogType
{
LOG_SIGN, // First time player logged in ( signed up )
LOG_LOGIN
};
/* *
* Checks whether the player is logged or not.
* Returns true, else false.
* */
native is_player_logged( const iIndex );
/* *
* Called whenever player is trying to login.
* If returned PLUGIN_CONTINUE, login will continue. To stop login proccess return PLUGIN_HANDLED / PLUGIN_HANDLED_MAIN.
* */
forward Player_Prelogin( const iIndex, const LogType:iType );
/* *
* Called after the player has logged in.
* No return.
* */
forward Player_Postlogin( const iIndex, const LogType:iType );
http://4honor.cl2host.co.il/rps/
if you find any bugs, please report.