Raised This Month: $193 Target: $400
 48% 

AFK Manager by Leon McVeran


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   ConnorMcLeod (74)
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-27-2010 , 04:26   AFK Manager by Leon McVeran
Reply With Quote #1

AFK Manager v1.6 by Leon McVeran


Content
First of all ... yes ... I know there are a lot of plugins that deal with this issue. This plugin is very simple and contains features of several plugins that I think belong in an "AFK Manger". Maybe you will like it.

Features
- Bomb will be transferred after 15 seconds (hardcoded) to a teammate who is not afk
- Players who are afk for 45 seconds (cvar) will be transferred to the spectators
- Players will be kicked (after 120 seconds, cvar) from the server when a minimum number of players is playing (12 players, cvar). It will be also kicked players who only join a team but not a class. Admins with flag "d" have a kick-immunity.
- Password system to grant access to the spectator. Players, who have access will not be kicked from the server e.g. to make a demo.

If you use ATAC then disable the punishment called "Bury Player"

CVARs (changes shows effect on next round)
afk_check "1"
- 0: Disable the plugin
- 1: Enable the plugin and check the positions of the players
- 2: Enable the plugin and check the last activity of the players

afk_drop_bomb "2"
- 0: Disable the function
- 1: Drop the bomb
- 2: Transfer the bomb to a teammate

afk_transfer_time "9" (min is 6)
- Transfer a player to the spectators after 45 seconds (9 * frequency of 5 seconds)

afk_kick_time "24" (min is 6)
- Kick a spectator from the server after 120 seconds (24 * frequency of 5 seconds)

afk_kick_players "12"
- Kick a spectator when 12 real players connected to the server. A value of 0 will disable this feature.

afk_spec_pw "password"
- Password which is needed to have permanently access for spectators (until map change)

Changelog
v1.1 - First release
v1.2 - Added: Alternative AFK-Check (Thanks fezh)
v1.3 - Added: Support for Multilingual
v1.4 - Fixed: Players who have used the old menus were not marked as a spectator.
- Added: Now, a HLTV User will be ignored (Thanks KadiR)
- Added: Some Translations (Thanks to all translators)
v1.4a - Added: CVAR afk_bomb_drop (Requested by Ikary)
v1.4d - Fixed: Some issue with deathmatch (Player was respawned as CT or T)
- Added: Some translations

v1.5 - Added: Some translations and log messages

v1.6 - Added: Password system for spectators
e.g. to make a demo

ToDo/Request
- I added a new chat messages. So I need some translations.

Credits

- VEN for his BombTransfer-Code
- Thanks to all translators

Download-Historie:

- v1.1 25times

- v1.2 30times
- v1.3 29times
- v1.4 303times

- v1.5 789times
Attached Files
File Type: sma Get Plugin or Get Source (afk_manager.sma - 4387 views - 10.0 KB)
File Type: txt afk_manager.txt (6.6 KB, 2893 views)
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015

Last edited by Leon M.; 08-02-2011 at 10:24. Reason: Released new version
Leon M. is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 04-27-2010 , 15:44   Re: AFK Manager by Leon McVeran
Reply With Quote #2

No offense, but its really to unoriginal to get approved. (not looked at the code)
__________________
I am out of order!
grimvh2 is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 04-27-2010 , 16:47   Re: AFK Manager by Leon McVeran
Reply With Quote #3

instead of using HUD "You got the bomb", you could add a hud text arg, with that #you got bomb future...
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-27-2010 , 16:54   Re: AFK Manager by Leon McVeran
Reply With Quote #4

@grimvh2
hehe, I know, but there is included a bugfix ("Join team but not class"-thing). Maybe I would have to publish this code a bit earlier, I use this plugin since 2 1/2 years.

However, I've just released the code because someone has asked for exactly these features.

@tuty
Yeah, actually I use a custom message . Do some people interested in the suggestion of tuty? If so then I can modify the plugin.
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015

Last edited by Leon M.; 06-27-2010 at 04:43.
Leon M. is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 04-27-2010 , 17:46   Re: AFK Manager by Leon McVeran
Reply With Quote #5

What about using OFFSET_LAST_MOVEMENT (124) instead of cheking origins all the time?
__________________
"There is no knowledge, that is not power"
fezh is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-27-2010 , 18:15   Re: AFK Manager by Leon McVeran
Reply With Quote #6

Thats a good idea, I will try to coded it tomorrow, thanks.

EDIT: I uploaded a new version with your idea. I decided to use the native cs_get_user_lastactivity instead of get_cbase_...

Last edited by Leon M.; 04-28-2010 at 03:49. Reason: Update
Leon M. is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: At home FFS
Old 04-28-2010 , 11:35   Re: AFK Manager by Leon McVeran
Reply With Quote #7

Yes, it's very good;
I say: If you have free-time, register a dictionary (multi-lingual) for plugin .

Last edited by claudiuhks; 04-28-2010 at 11:37.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
flamin
BANNED
Join Date: Jul 2009
Location: Los Teques
Old 05-01-2010 , 19:48   Re: AFK Manager by Leon McVeran
Reply With Quote #8

@Leon M.

As i can configure the plugin so that only works with the spectators?

I mean that do not work with the afk nor with the bomb transfer or transfer spectator, only that kicking spectators?
flamin is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 05-01-2010 , 20:01   Re: AFK Manager by Leon McVeran
Reply With Quote #9

Quote:
Originally Posted by flamin View Post
@Leon M.

As i can configure the plugin so that only works with the spectators?

I mean that do not work with the afk nor with the bomb transfer or transfer spectator, only that kicking spectators?
KadiR is offline
flamin
BANNED
Join Date: Jul 2009
Location: Los Teques
Old 05-01-2010 , 21:20   Re: AFK Manager by Leon McVeran
Reply With Quote #10

Quote:
Originally Posted by KadiR View Post
what?
flamin is offline
Reply


Thread Tools
Display Modes

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 01:28.


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