Raised This Month: $ Target: $400
 0% 

Filter Connection


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
Mauricio Frb
Member
Join Date: Jul 2013
Old 08-03-2013 , 20:29   Filter Connection
Reply With Quote #1

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.
Attached Thumbnails
Click image for larger version

Name:	kickmessage.png
Views:	607
Size:	14.8 KB
ID:	123705  
Attached Files
File Type: sma Get Plugin or Get Source (FilterConnection.sma - 803 views - 4.1 KB)
File Type: ini filterconnection.list.ini (183 Bytes, 189 views)
Mauricio Frb is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-03-2013 , 20:32   Re: Filter Connection
Reply With Quote #2

Great plugin, but why not just adding the player in users.ini and he can join.
sami_spt is offline
Mauricio Frb
Member
Join Date: Jul 2013
Old 08-03-2013 , 20:55   Re: Filter Connection
Reply With Quote #3

Because won't kick the other players.
Mauricio Frb is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-04-2013 , 04:26   Re: Filter Connection
Reply With Quote #4

amxx.cfg -> amx_mode 2

// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
//
// Default value: 1

Redundant. Unapproved.
__________________

Last edited by Arkshine; 08-04-2013 at 04:27.
Arkshine is offline
Mauricio Frb
Member
Join Date: Jul 2013
Old 08-04-2013 , 07:15   Re: Filter Connection
Reply With Quote #5

I don't see this =(.
Mauricio Frb is offline
Reply



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 23:23.


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