AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Generic AFK Kicker (https://forums.alliedmods.net/showthread.php?t=300)

CheesyPeteza 03-18-2004 06:25

Generic AFK Kicker
 
1 Attachment(s)
This AFK Kicker should work with any Half-Life mod.

Incase you don't know, AFK stands for Away From Keyboard.

It has 2 cvars shown below with their default values:

mp_afktime 90 This sets the time a player must be AFK (while alive) before he is kicked.
mp_afkminplayers 8 This is number of players required on the server before people will be kicked for being AFK.

Players will receive warnings from 15 seconds before they are kicked. They will also be notified why they were kicked.

A player is determined to be AFK by simply checking if he has moved since he spawned.
Players are only counted as AFK when they are alive.

The plugin has been tested with Natural-Selection, Day of Defeat and Counter-Strike. If you use it for another mod, please let me know that it works correctly.

PM 03-18-2004 07:02

Looks nice, please modify the log functions of this plugin to use the log_amx native though. (don't use a log tag then, the log tags will be ok in the next release)

CheesyPeteza 03-18-2004 07:26

I hadn't noticed log_amx, thats a nice function. :)

Plugin modified.

Johnny got his gun 03-18-2004 10:26

How is this different from the default HLDS AFK kick feature?

MagicShot 03-18-2004 10:30

hmm
 
Quote:

Originally Posted by Johnny got his gun
How is this different from the default HLDS AFK kick feature?

I don't eally think the default one is adiqute.. because I run my CS 1.5 windowed.. and sit afk.. I rarely get kicked but If I run full screen I do.
Also, when I switch back to windows from full screen after 30 seconds it kicks me. but In windowed mode I can be afk for several map changed and sstill there unless admin kicks me..

pr0*killa 03-18-2004 14:29

AFK is OLO's module! Did you take it from OLO or you modified your self?
i know that OLO has the same AFK only in AMX not by "mp_"

CheesyPeteza 03-18-2004 14:44

Quote:

Originally Posted by pr0*killa
AFK is OLO's module! Did you take it from OLO or you modified your self?
i know that OLO has the same AFK only in AMX not by "mp_"

I don't know what you are talking about pr0*killa, I've never heard of or seen Olo's AFK Kicker, and I wrote this completely on my own. Nobodys code was modified.

Quote:

Originally Posted by Johnny got his gun
How is this different from the default HLDS AFK kick feature?

As far as I know, there is no hlds AFK kicker. Counter-Strike has an AFK kicker which is enabled with mp_autokick 1, but its rubbish. It kicks people that are AFK 2 x mp_roundtime, but if the AFK person gets killed they are no longer considered AFK.

QwertyAccess 03-18-2004 19:01

you'd be better off with a cs only afk kicker anyway. This was made for other mods. Like TFC/DOD/NS/SC/HLDM

Johnny got his gun 03-19-2004 02:43

Ok fine. Everyone should install stuff like this, we all get tired of AFKs don't we...
You know what you can do, sometimes when gaming you get a phone call or whatever and the second you're back you are kicked by the admin for AFKing. How about something like this:

* after one round/period of time of AFK, move player to spectators
* after another round of AFK (that must be next to the first round of AFK), kick the person.

QwertyAccess 03-19-2004 03:14

well this was made to be able to use for mods besides cs Adding some cs only stuff would kinda remove the fact that its Generic.


All times are GMT -4. The time now is 21:09.

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