Filter Connection
Description:
With this plugin you can choose who player can connect to the server by steamid.
Players that not have your steamid in steamid list will be kicked.
This plugin is nice to use when you want to make a championship or a mix game.
Credits:
SQLx Tutorial by Hawk552 -
https://forums.alliedmods.net/showthread.php?t=46779
Tries Tutorial by guipatinador -
https://forums.alliedmods.net/showthread.php?t=201872
Kick message:
Configuration:
If you want to clear connection to admin configure .sma file.
Mysql - Just open the plugin (.sma), activate mysql, configure host,user,etc. and compile.
"FilterConnection.sma"
PHP Code:
//////////////////////////////////////////////////////////
// Configuration of Plugin ============================ //
// ==================================================== //
// Remove "//" below to clear pass for admins. //
//#define ADMINCLEARPASS
//////////////////////////////////////////////////////////
// Remove "//" below to ability mysql otherwise file. //
//#include <sqlx>
//////////////////////////////////////////////////////////
#if defined _sqlx_included //
//////////////////////////////////////////////////////////
// If you activated mysql configure this! //
#define HOST ""
#define USER ""
#define PASS ""
#define DB ""
//////////////////////////////////////////////////////////
File - Put "filterconnection.list.ini" on your configs directory (Like "addons\amxmodx\configs\filterconnection.list .ini") and write the steamid's that can connect to the server.
"filterconnection.list.ini"
PHP Code:
// Plugin Filter Connection by Mauricio Frb.
//
// - Put here the list of steamid (one per line and without "//").
// Ex:
// STEAM_ID_LAN
// STEAM_2:3:123456
// STEAM_2:3:456123
Changelog:
Code:
1.0 - First release.