Raised This Month: $32 Target: $400
 8% 

Play or Be Kicked 1.5.243


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   devicenull (200)
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 07-10-2005 , 00:19   Play or Be Kicked 1.5.243
Reply With Quote #1

Play or Be Kicked 1.5.243 released 2008-JUL-23

This plugin has the ability to kick players based on any of the following three events:
  • not joining a team or spectator mode in time when initially joining the server
  • spectatating too long
  • being AFK too long
Which events your server looks for is configurable as is the amount of time allowed for each event.


Table of Contents

Support
Options (CVARS)
Compilation
Installation
Installation Files
Notes
Change Log
Credits
Previous Versions (unsupported)


Support
top

You can receive support for this plugin within this thread. Non-Steam servers are not supported.


If you are posting in this thread because the plugin or a feature of the plugin isn't working for you, please do all of the following so that we can more efficiently figure out what's going on:

Quote:
If you have access to your game server's console, type the following in the server console:
  • status
  • meta list
  • amxx plugins
  • amxx cvars
If you don't have access the your game server's console, join your server and type the following in your game console:
  • status
  • rcon_password your_rcon_password
  • rcon meta list
  • rcon amxx plugins
  • rcon amxx cvars
Paste everything from the status command *except* the player list.
Paste the entire result from the meta list and amxx plugins commands.
Paste *only* the CVARs that contain "pbk.amxx" in the last column from the amxx cvars command. They will be grouped together.

Options (CVARs)

top

Code:
// Play or Be Kicked Configuration File
echo Executing Play or Be Kicked (PBK) Configuration File


////////////////////////////////////////////////////////////////////////
// The 'join' event, as defined by this plugin, is the time between   //
// when a player connects to the server and when the player chooses   //
// their model, thus entering the game.  Normally, a player can sit   //
// in this event indefinitely, thus taking up a slot in your server.  //
////////////////////////////////////////////////////////////////////////

// Specifies the the minimum number of players on the server before 
// people that haven't fully joined start getting kicked.
pbk_join_min_players 4

// Specifies the number of seconds a player has, after connecting to 
// the server, to join a team before getting kicked.
// A value of 0 will disable checking of this event.
pbk_join_time 120

// Specifies the access level flags needed for a player to have 
// immunity for the 'join' event.  Having immunity means the player 
// would not get kicked for failing to join a team.
// 
// Set this CVAR to blank to disallow immunity.
//    
// For available flags,
// http://wiki.amxmodx.org/index.php/Ad...#Access_Levels
//            
// A common value, when admin immunity is desired, is to use the 
// "a" flag (ADMIN_IMMUNITY).
pbk_join_immunity_flags ""


////////////////////////////////////////////////////////////////////////
// The 'spec' event, as defined by this plugin, is the time in which  //
// a player is in spectator mode.  Normally, a player can sit in this //
// mode indefinitely, thus taking up a slot in your server.           //
////////////////////////////////////////////////////////////////////////

// Specifies the the minimum number of players on the server before 
// people that are in spectator mode start getting kicked.
pbk_spec_min_players 4

// Specifies the total number of seconds a player can be in spectator
// mode before they get kicked.
// A value of 0 will disable checking of this event.
pbk_spec_time 120

// Specifies the access level flags needed for a player to have 
// immunity for the 'spec' event.  Having immunity means the player 
// would not get kicked for being in spectator mode too long.
// 
// Set this CVAR to blank to disallow immunity.
//    
// For available flags,
// http://wiki.amxmodx.org/index.php/Ad...#Access_Levels
//            
// A common value, when admin immunity is desired, is to use the 
// "a" flag (ADMIN_IMMUNITY).
pbk_spec_immunity_flags ""

// Indicates whether spectators are queried periodically, in an effort 
// to determine if they are in front of the keyboard or not.
pbk_spec_query 0


////////////////////////////////////////////////////////////////////////
// The 'AFK' event, as defined by this plugin, is when a player has   //
// not moved in a defined period of time.  Normally, a player can be  //
// AFK indefinitely, thus taking up a slot in your server.            //
////////////////////////////////////////////////////////////////////////

// Specifies the the minimum number of players on the server before 
// people that are AFK start getting kicked.
pbk_afk_min_players 4

// Specifies the number of seconds a player can be AFK before 
// getting kicked.
// A value of 0 will disable checking of this event.
pbk_afk_time 120

// Specifies the access level flags needed for a player to have 
// immunity for the 'afk' event.  Having immunity means the player 
// would not get kicked for being AFK too long.
// 
// Set this CVAR to blank to disallow immunity.
//    
// For available flags,
// http://wiki.amxmodx.org/index.php/Ad...#Access_Levels
//            
// A common value, when admin immunity is desired, is to use the 
// "a" flag (ADMIN_IMMUNITY).
pbk_afk_immunity_flags ""


////////////////////////////////////////////////////////////////////////
// As a courtesy to any player about to be kicked, a chat message     //
// will let them know of their impending kick every 5 seconds until   //
// they are kicked.                                                   //
////////////////////////////////////////////////////////////////////////

// Specifies the number of seconds a player starts getting warned before
// they are kicked.
pbk_warning_time 20

// Specifies which events to show the countdown warning for to players 
// with immunity.
//
// The flags are additive. A value of 0 indicates that the countdown is
// not shown for any event.
//
// 1 - joining
// 2 - spectating
// 4 - being AFK
pbk_immunity_warning 7


////////////////////////////////////////////////////////////////////////
// Sometimes you just want to know what's been happening and when.    //
// Logging the kicks from this plugin is an easy way to help          //
// accomplish that.                                                   //
////////////////////////////////////////////////////////////////////////
        
// Indicates how to log kicks.  
// The flags are addtive. A value of 0 will not log any kicks.
// 
// 1 - log in the AMXX log
// 2 - log in the chat log (allows kicks to be seen in programs like 
//     HLSW that show you the chat log)
// 4 - log in their own file ("pbkMM.log" where "MM" is the 
//     two-digit month)
pbk_log 3

// Specifies the number of previous month's logs to retain. 
// The current month is always retained.
pbk_log_cnt 2


////////////////////////////////////////////////////////////////////////
// When you run multiple servers, sometimes, instead of kicking       //
// players into the nether, you would like to kick them over to one   //
// of your other servers.                                             //
////////////////////////////////////////////////////////////////////////

// Specifies the IP to which kicked users should be sent.
// A blank value disables this feature.
pbk_kick2_ip ""

// Specifies the port to which kicked users should be sent.
pbk_kick2_port "27015"

Compilation

top
This plugin *must* be compiled locally, as it uses a custom include file.

File Locations:
  • .\scripting\pbk.sma
  • .\scripting\includes\logging.inc

Installation

top

File Locations:
  • .configs\pbk.cfg
  • .\data\lang\pbk.txt
  • .\plugins\pbk.amxx
Required Modules:
  • fakemeta

Installation Files

top
Attached Files
File Type: sma Get Plugin or Get Source (pbk.sma - 21368 views - 14.9 KB)
File Type: cfg pbk.cfg (6.0 KB, 10613 views)
File Type: txt pbk.txt (8.5 KB, 10798 views)
File Type: inc logging.inc (2.8 KB, 8909 views)

Last edited by Brad; 02-13-2010 at 10:00. Reason: added compilation information
Brad is offline
 



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 15:02.


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