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

CS AFK Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   HamletEagle (36)
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 01-26-2015 , 09:35   CS AFK Manager
Reply With Quote #1

CS AFK Manager
- v1.0.6, last updated : 30 jun 2016
There is many AFK manager on here, most of them are outdated, buggy or not complete.
This plugin aim to fix that problem.

The check method is based on the usage of buttons and can be complemented by a method based on aim.

This plugin features:
  • A Management for alive AFK client and AFK client in appearance select menu based on switch to spectators (or based on kick if this feature is disabled) ;
  • A Kick management for AFK spectators (or for all players if spectator switch management is disabled) ;
  • The ability to kick clients in spectators only if the server is full ;
  • A bomb management based on bomb transfer to the nearest non-AFK terrorist or a forced drop of the bomb ;
  • Optional admin immunities for all the previous features ;
  • A global HUD message sent to alive players of a team if all the opposing team is AFK.

Contents :


Requirements top
CS 1.6, CZ.
AMX Mod X 1.8.x or higher.
Steam server.

Usage (Cvars) top
list

Installation top
1. You only need ONE of the 2 plugin version provided here :
  • Running on amxmodx 1.8.2 the default plugin, afk_manager_1-8-2.
    To use this version, you will need to
    compile it locally.
    You will first need to download colorchat.inc provided below and put it in
    addons/amxmodx/scripting/include.
    Then you will
    need to download afk_manager_1-8-2.sma and put it in addons/amxmodx/scripting and do the compile process.

  • Running on amxmodx 1.8.3 git 5029 or higher, the enhanced version, afk_manager_1-8-3.
    To use this version, you will need to compile it locally with an 1.8.3 compiler.
    The colorchat.inc include is NOT required because colored messages are included by default in amxmodx 1.8.3.

    You will need to download afk_manager_1-8-3.sma and put it in addons/amxmodx/scripting and do the compile process.
    This version will automatically create a cvar config file in addons/amxmodx/configs/plugins that is an user friendly way to configure the plugin. Also, this version bring some improvements that directly come from amxmodx 1.8.3.
2. Install your chosen afk_manager.amxx in addons/amxmodx/plugins
3.
In your plugins.ini file, add afk_manager_1-8-X.amxx where you want
4.
Put afk_manager.txt in addons/amxmodx/data/lang

Installation Files top
Attached Files
File Type: sma Get Plugin or Get Source (afk_manager_1-8-2.sma - 5147 views - 21.0 KB)
File Type: inc colorchat.inc (4.9 KB, 1993 views)
File Type: sma Get Plugin or Get Source (afk_manager_1-8-3.sma - 5113 views - 21.8 KB)
File Type: txt afk_manager.txt (13.0 KB, 3269 views)

Last edited by Fr33m@n; 06-30-2016 at 09:49. Reason: Update to v1.0.6
Fr33m@n is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 01-26-2015 , 09:35   CS AFK Manager
Reply With Quote #2

Lang Contributions top
If you want to contribute to the translation of this plugin, please follow this link.

Credits top

Arkshine & HamletEagle: for some useful advises.
Phant: for some ideas and some parts imspired of his AFK manager.
Ven: for some ideas and some parts imspired of his AFK bomb transfer.
ConnorMcLeod: for his get_pdata_bool stock and his chat color include.
Lang contributors: Freeman (en), Mordekay (de), redivcram (sr), Freeman (fr), OnePL (pl), tompietje (nl), ACM1PT/baneado (es), addons_zz (bp), HamletEagle (ro), mforce (hu), Belo95135 (sk), icimaro1337 (ru).

Change Log top
v1.0.6 : [ 30 jun 2016 ]
- ALL:
Introduction of russian language.
- afk_manager_1-8-3:
Replaced filename afk_manager_1.8.3.sma by afk_manager_1-8-3.sma to avoid a bug related to automatic config not being able to read file configs/plugins/afk_manager_1.8.3.cfg because it has more than one point in the name.

- afk_manager_1-8-2:
filename afk_manager_1.8.2.sma has been replaced by afk_manager_1-8-2.sma for pure consistency of the plugin thread.
v1.0.5 : [ 7 mar 2016 ]
- ALL:
Kick spectator only if the server is full feature: Fix the fact that it kicks all the spectators instead of kicking only one. Now it kicks the player who is AFK for the longest time.
afk_loop_frequency min is now 1.0.
Removed a redundant check for the bomb owner.
Introduction of dutch language.
- afk_manager_1.8.3:
Hardcoded Menu_ChooseAppearance constant replaced by amxmodx 1.8.3 CS_Menu_ChooseAppearance constant.
v1.0.4 : [ 29 oct 2015 ]
- ALL:
Introduction of serbian and hungarian languages.
- afk_manager_1.8.2:
Replace register_dictionary by register_dictionary_colored
colorchat.inc use a specific way to register dictionary and it was forgotten.
v1.0.3 : [ 12 oct 2015 ]
- ALL:
Add a new complementary method to check aim movements.
Fusion of colored and uncolored version, color is now controlled by a cvar.
Use of HUD messages rather than chat messages for AFK gobal messages. It avoid chat spam and is now more real-time based. So, frequency is now stick to loop frequency and global_message_away_frequency cvar is removed because useless.
Possibility to define the full state of the server with a new cvar (can be useful for plugins using custom slot reservation features, as xREDIRECT)
Move a misplaced block of code.
Introduction of romanian and brazilian languages.
- afk_manager_1.8.3:
Replacement of get/set_pdata_* function by get/set_ent_data* natives since offsets are now hardcoded in amxmodx (CStrike update).
Automatic generation of a config file.
plugin_cfg() now remplaced by OnConfigsExecuted()
v1.0.2 : [ 08 may 2015 ]
- ALL: Fix a bug caused by the miss of adminslots.amxx default plugin or a load before it.
- Introduction of slovak language.
- Introduction of 3 different versions, see installation instructions.
- afk_manager_1.8.3: Usage of new enhanced features introduced recenlty in amxmodx: cvar natives (bind_pcvar_*, create_cvar), the new %l text format. Compliance to change of MAX_PLAYERS value.
v1.0.1 : [ 28 jan 2015 ]
- Replace C4Ent = find_ent_by_owner(-1, "weapon_usp", id)
by C4Ent = get_pdata_cbase(player, m_rgpPlayerItems[5]).
- Remove define dependancy to less hardcoded methods with new cvars.
v1.0.0 : [ 26 jan 2015 ]
Initial release.

Last edited by Fr33m@n; 02-23-2017 at 14:23. Reason: Update to v1.0.6
Fr33m@n is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 01-26-2015 , 09:46   Re: CS AFK Manager (TOPIC IN BUILD!)
Reply With Quote #3

German translation. If some of the other german users here know a better short sentence for "Nicht am Rechner" you are welcome to post it.
Code:
[de]
AFK_KICK_REASON = Nicht am Rechner (AFK)
TRANSFERRED_TO_SPEC = [AFK Manager] %s wurde zu den Zuschauern verschoben weil er zu lange AFK war.
COLORED_TRANSFERRED_TO_SPEC = ^4[AFK Manager]^3 %s^1 wurde zu den Zuschauern verschoben weil er zu lange AFK war.
AFK_KICKED = [AFK Manager] %s wurde gekickt weil er zu lange AFK war.
COLORED_AFK_KICKED = ^4[AFK Manager]^3 %s^1 wurde gekickt weil er zu lange AFK war.
ALL_TERRORISTS_AFK = [AFK Manager] Alle verbleibenden Terroristen sind AFK.
COLORED_ALL_TERRORISTS_AFK = ^4[AFK Manager]^1 Alle verbleibenden^3 Terroristen^1 sind AFK.
ALL_CTS_AFK = [AFK Manager] Alle verbleibenden Counter-Terroristen sind AFK.
COLORED_ALL_CTS_AFK = ^4[AFK Manager]^1 Alle verbleibenden^3 Counter-Terroristen^1 sind AFK.
BOMB_TRANSFERRED = [AFK Manager] Bombe wurde transferiert zu %s weil %s AFK ist.
COLORED_BOMB_TRANSFERRED = ^4[AFK Manager]^1 Bombe wurde transferiert zu^3 %s^1 weil^3 %s^1 AFK ist.
BOMB_GOT = [AFK Manager] Du hast die Bombe bekommen weil %s AFK ist.
COLORED_BOMB_GOT = ^4[AFK Manager]^1 Du hast die Bombe bekommen weil^3 %s^1 AFK ist.
FORCED_TO_DROP = [AFK Manager] %s hat die Bombe fallen gelassen weil er AFK ist.
COLORED_FORCED_TO_DROP = ^4[AFK Manager]^3 %s^1 hat die Bombe fallen gelassen weil er AFK ist.
__________________


Last edited by Mordekay; 01-26-2015 at 09:46.
Mordekay is offline
Skuduriukas
Junior Member
Join Date: Jan 2015
Old 01-26-2015 , 12:26   Re: CS AFK Manager (TOPIC IN BUILD!)
Reply With Quote #4

If i want to have working plugin i need ALL of these?
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <fakemeta>

EDIT: oh it's works without all of these . Awesome, nice plugin. Thanks!

But i have a lil question.
Quote:
/* CVARS - copy and paste to amxx.cfg
I'm new with that all. So what do you mean copy cvars? What cvars? like afk_global_messages_time 25?

Last edited by Skuduriukas; 01-26-2015 at 12:33.
Skuduriukas is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 01-26-2015 , 14:48   Re: CS AFK Manager (TOPIC IN BUILD!)
Reply With Quote #5

This is awesome DD

The ability to kick clients in spectators only if the server is full .

GJ
Freezo Begin is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 01-26-2015 , 14:49   Re: CS AFK Manager (TOPIC IN BUILD!)
Reply With Quote #6

I was thinking about do this xD
Thanks for saving my time
__________________
Jhob94 is offline
ACM1PT
Member
Join Date: Feb 2014
Location: Argentina
Old 01-26-2015 , 15:34   Re: CS AFK Manager (TOPIC IN BUILD!)
Reply With Quote #7

Spanish

Code:
[es]
AFK_KICK_REASON = Por estar ausente (AFK)
TRANSFERRED_TO_SPEC = [AFK Manager] %s fue transferido a espectador por estar AFK mucho tiempo.
COLORED_TRANSFERRED_TO_SPEC = ^4[AFK Manager]^3 %s^1 fue transferido a espectador por estar AFK mucho tiempo.
AFK_KICKED = [AFK Manager] %s fue expulsado por estar AFK mucho tiempo.
COLORED_AFK_KICKED = ^4[AFK Manager]^3 %s^1 fue expulsado por estar AFK mucho tiempo.
ALL_TERRORISTS_AFK = [AFK Manager] Todos los terroristar restantes estan AFK.
COLORED_ALL_TERRORISTS_AFK = ^4[AFK Manager]^1 Todos los^3 terroristars^1 restantes estan AFK.
ALL_CTS_AFK = [AFK Manager] Todos los anti-terroristas restantes estan AFK.
COLORED_ALL_CTS_AFK = ^4[AFK Manager]^1 Todos los^3 anti-terroristas^1 restantes estan AFK.
BOMB_TRANSFERRED = [AFK Manager] La bomba fue transferida a %s porque %s estaba AFK.
COLORED_BOMB_TRANSFERRED = ^4[AFK Manager]^1 La bomba fue transferida a^3 %s^1 porque^3 %s^1 estaba AFK.
BOMB_GOT = [AFK Manager] Ahora tenes la bomba ya que %s estaba AFK.
COLORED_BOMB_GOT = ^4[AFK Manager]^1 Ahora tenes la bomba ya que^3 %s^1 estaba AFK.
FORCED_TO_DROP = [AFK Manager] %s se forzo a tirar la bomba ya que estaba AFK.
COLORED_FORCED_TO_DROP = ^4[AFK Manager]^3 %s^1 se forzo a tirar la bomba ya que estaba AFK.

Last edited by ACM1PT; 01-26-2015 at 15:35.
ACM1PT is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 01-26-2015 , 15:41   Re: CS AFK Manager (TOPIC IN BUILD!)
Reply With Quote #8

Great plugins !!!!!!!!! GOOD JOB MY FRIENDS !
GoRiLliAz is offline
Old 01-26-2015, 18:04
Fr33m@n
This message has been deleted by Fr33m@n. Reason: epic fail
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 01-26-2015 , 19:27   Re: CS AFK Manager
Reply With Quote #9

Translation thread created.

Feel free to give suggestions, improvements or optimizations advices.
Thanks.
Fr33m@n is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 01-27-2015 , 01:05   Re: CS AFK Manager
Reply With Quote #10

Fr33m@n , is there any thing like max afk players in spec and if hes afk more that x minutes in spec he will be kicked

Last edited by tousif; 01-27-2015 at 01:33.
tousif 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 09:47.


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