Raised This Month: $102 Target: $400
 25% 

Generic AFK Kicker


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   DS (30)
CheesyPeteza
Senior Member
Join Date: Feb 2004
Location: UK
Old 03-18-2004 , 06:25   Generic AFK Kicker
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (afkkicker.sma - 48795 views - 3.5 KB)
__________________
YO|Cheesy Peteza

[email protected]

CheesyPeteza is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-18-2004 , 07:02  
Reply With Quote #2

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)
__________________
hello, i am pm
PM is offline
CheesyPeteza
Senior Member
Join Date: Feb 2004
Location: UK
Old 03-18-2004 , 07:26  
Reply With Quote #3

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

Plugin modified.
__________________
YO|Cheesy Peteza

[email protected]

CheesyPeteza is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-18-2004 , 10:26  
Reply With Quote #4

How is this different from the default HLDS AFK kick feature?
Johnny got his gun is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-18-2004 , 10:30   hmm
Reply With Quote #5

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..
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
pr0*killa
Member
Join Date: Mar 2004
Location: Estonia,Tallinn
Old 03-18-2004 , 14:29  
Reply With Quote #6

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_"
__________________
"bug" is a verry big problem
pr0*killa is offline
Send a message via ICQ to pr0*killa
CheesyPeteza
Senior Member
Join Date: Feb 2004
Location: UK
Old 03-18-2004 , 14:44  
Reply With Quote #7

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.
__________________
YO|Cheesy Peteza

[email protected]

CheesyPeteza is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 03-18-2004 , 19:01  
Reply With Quote #8

you'd be better off with a cs only afk kicker anyway. This was made for other mods. Like TFC/DOD/NS/SC/HLDM
__________________
QwertyAccess is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-19-2004 , 02:43  
Reply With Quote #9

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.
Johnny got his gun is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 03-19-2004 , 03:14  
Reply With Quote #10

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.
__________________
QwertyAccess 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 04:34.


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