AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   AFK Manager by Leon McVeran (https://forums.alliedmods.net/showthread.php?t=125317)

Leon M. 04-27-2010 04:26

AFK Manager by Leon McVeran
 
2 Attachment(s)
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" :wink:

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

grimvh2 04-27-2010 15:44

Re: AFK Manager by Leon McVeran
 
No offense, but its really to unoriginal to get approved. (not looked at the code)

tuty 04-27-2010 16:47

Re: AFK Manager by Leon McVeran
 
instead of using HUD "You got the bomb", you could add a hud text arg, with that #you got bomb future...

Leon M. 04-27-2010 16:54

Re: AFK Manager by Leon McVeran
 
@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 :D. Do some people interested in the suggestion of tuty? If so then I can modify the plugin.

fezh 04-27-2010 17:46

Re: AFK Manager by Leon McVeran
 
What about using OFFSET_LAST_MOVEMENT (124) instead of cheking origins all the time?

Leon M. 04-27-2010 18:15

Re: AFK Manager by Leon McVeran
 
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_...

claudiuhks 04-28-2010 11:35

Re: AFK Manager by Leon McVeran
 
Yes, it's very good;
I say: If you have free-time, register a dictionary (multi-lingual) for plugin :D.

flamin 05-01-2010 19:48

Re: AFK Manager by Leon McVeran
 
@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 05-01-2010 20:01

Re: AFK Manager by Leon McVeran
 
Quote:

Originally Posted by flamin (Post 1167187)
@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?

:rtfm:

flamin 05-01-2010 21:20

Re: AFK Manager by Leon McVeran
 
Quote:

Originally Posted by KadiR (Post 1167197)
:rtfm:

what?


All times are GMT -4. The time now is 19:55.

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