AFK KiSSS (Kick/Slay/Spec-Switcher for CS) (with bombdrop)
3 Attachment(s)
Code:
/* Note: to keep CPU-Usage low AFK-Slay will only check in a five-seconds-frequency. It may take up to five seconds until slay so. U may lower this time by changing the following line before compile: Code:
Note2: If you definitifly only want to kick players when afk, use: http://forums.alliedmods.net/showthread.php?p=2874, not this one. Note3: Some parts of this plugin are configurable easily, but you may not want to change them after install. Thats why there is no cvar for them. To change them, you will have to change the following lines before compile: Code:
Note4: I merged wc3 and normal Version. This plugin now definitifly kills the user when time has come. Compatible with all kinds of cs-mods which are reviving players like wc3 does. Note5: afkkicker2 is a well working old version. I f you encounter problems with the new one, plz step back to this version. Anyway I encourage you to use afkkisss.sma, I do so myself. Install instructions:
Configuring this plugin:
Supported languages till now:
Attention: If you are updating from an earlier version don't forget to redownload the language files, too. There are improvments and the languagefile from version 1.5 and earlier is not compatible to pluginversion 1.6 and later... The other way should work (new languagefile for an older version). I do not maintain this addon any more. It is not outdated or so, and if you read the manual properly, it will work, but I simply do not have the time to read this forum since a year by now and this will most likely not change. If anyone is interested in taking it over, someone with some coding experience, I will agree to that. My profile has a valid email address, so ask a mod if you are interested. [02.08.2008] Thx to all users of my plugin for testing and bug reporting. Without you I would already have stopped the developpment of this plugin since version 1.1. |
Changelog
Changelog 1.0: First release, static slay ability Changelog 1.1 new cvar: afk_kicktime -- cvar changed name new cvar: afk_minplayers -- cvar changed name new cvar: afk_slaytime -- new cvar new cvar: afk_slayplayers -- new cvar new cvar: afk_adminimmunity --new cvar Read man to know what the cvars are for. Changelog 1.2: Mulitlingualsupport added... Changelog 1.3: Explodesound on slay added... (and removed now) Changelog 1.4: new cvar: afk_adminkickimmunity -- new cvar Changelog 1.5: Bombdrop added: AFK-Players are dropping bomb when afk for more then 25 seconds... Changelog 1.6: You may now switch afk to spec instead of kicking. new cvar: afk_options -- new cvar 1 - Kick player after kicktime, 0 - switch to spec after kicktime Changelog 1.6.1: - bugfix on spec switch Changelog 1.6.2: - All txt-messages are starting now with [AFK KiSSS] Changelog 2.0.1: - Complete Code revised and partially rewritten... - AFK-Count with a message at round start - Code optimized and debugged. - Plugin tested for more than 3 hours on our clan-server, works perfectly... Seems not to throw errors anymore... Changelog 2.0.2: - Bugfix for wc3-mod Changelog 2.0.3: new cvar: afk_show_counter -- new cvar If set to 1, it will show the AFK-Counter-Msg every "#define SHOW_FREQ 20" seconds (change this line, to make it show more or less often). Changelog 2.1.0: Improved afk-detection alg. - now distinguishes between an afk-player who has an autoturn script and a hardcore camper, not moving but turning his head. Upgrade is highly recommanded to all AFK-KiSSS Users. Changelog 2.1.1: - Bugfix on rejoin from specswitch Changelog 2.1.1 - wc3-release: - intermediate release for wc3-users Changelog 2.1.2: - rejoin of wc3 and normal version Changelog 2.1.3: - Bugfix Changelog 2.1.4: - reseperated wc3 and normasl version due to some runtime errors (nothing dramatic, but not nice to see) Changelog 2.2.0: I now definitifly merged the wc3 and the normal branch. The plugin is now checking every 0,5 seconds if player is really dead after slay until he is, but stops checking on new round. This shall enshure that no "zombies" may exist. Changelog 2.3.0: new cvar: afk_rename -- new cvar It lets the plugin rename AFK-Players during their afk-time. Changelog 2.4.0: new cvar: afk_speckick -- new cvar new cvar: afk_speckicktime -- new cvar Plugin is now able to kick spectators after a certain time. Changelog 2.4.1: - Bugfix in rename function Changelog 2.4.2: - Tweaks Changelog 2.4.3: - Bugfix in speckick function Changelog 2.4.4: - Bugfix in rename function Changelog 2.4.5: - Bugfix in rename function Changelog 2.5.0: - some important bugfixes and tweaks Changelog 2.5.1: - some important bugfixes and tweaks Changelog 3.0: - release of version three, complete rewrite from scratch, file now called afk_kisss.sma I saw this on other servers (afk slay), but I could not find it for amxx, so I codet the slay function myself. This plugin is based on Generic AFK Kicker, but it only works for CS, as other HL-mods are often not roundbased. |
Is this the one like in NS?
|
Don't know, I never played NS...
It's the one u find on several CS-Servers, but unavailable before for amxx. It slays Players who did no move since 30 secs when any other player in the same team is dead. After a several time it kicks these players... In CS long roundtimes due to afk-players suck. This plugin lets the round end, when all active players in the same team are dead. Note: to keep CPU-Usage low AFK-Slay will only check in a five-seconds-frequency. It may take up to five seconds until slay so. U may lower this time by changing the following line before compile: Code:
|
File updated. Plugin will now slay after 90 secs of inaktivity and only if at least mp_afkminplayers are playing. If not, plugin will only send a textmessage to all players.
This shall prevend the server from restarting round every 5 secs. when only 1,2 or 3 players are on the sever and afk, probably chatting togehter... Plugin tested on my server and working fine. How about approving it :D ? |
1 Attachment(s)
Added some features that I needed:
Have not tested it very much, also made some small changes before this post so there might be bugs :P |
Released version 1.1 (approved version, thx to "Jonny got his gun")
I implemented the ideas from juKay, but I rewrote the code on my own (implemented it with less cpu-usage needed in most cases). ATTENTION: ALL CVARS CHANGED NAME. juKay was right with his suggestion about mp_cvars. I took the same names as juKay, only afk_time was to bad, I choosed afk_kicktime as there is also afk_slaytime in my version. Some additional cvars. Changelog 1.1 afk_kicktime -- cvar changed name afk_minplayers -- cvar changed name afk_slaytime -- new cvar afk_slayplayers -- new cvar afk_adminimmunity --new cvar Read man to know what the cvars are for. These cvars shall give you the possibility to configure this plugin differently for each map. Changelog 1.2 Mulitlingualsupport added... Changelog 1.3 Explodesound on slay added... |
if you had a problem with a version downloaded within the last 15 min, sorry about that, I released a version working 100% fine on my server but with a little bug on slay...
Plz redownload the amxx-file to fix it... |
Here you have swedish language:
Code:
[sv] |
Thx man, and another stupid bug fixed. Should be bugclean now...
|
All times are GMT -4. The time now is 21:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.