shavitush / AFK-Kicker

Kicks AFK players after verifying they're actually AFK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AFK-Kicker

Kicks AFK players after verifying they're actually AFK.
If the player doesn't do anything difference within X seconds since the round started, he will be prompted with a captcha-like random menu. Every menu option except for one ('Don't kick me!'), will kick the player as he was verified as a bot/AFK. He will also be kicked if he chooses nothing within Y seconds.
Verification durations (X/Y) are definable. Check cfg/sourcemod/plugin.afk_kicker.cfg for CVars.
Also respects admins (b flag or afk-kicker-immunity override).
Will also log kicks to addons/sourcemod/logs/afk_kicker.log.

Note

This plugin is for servers with rounds, such as casual and jailbreak servers.
The plugin will most likely not function properly in MG/KZ/bhop/deathmatch!

TODO

  • Make 'matches' bitwise for modularity purposes.

API

Natives:

  • AFKKicker_SendVerification(int client, int matches)

Forwards:

  • AFKKicker_OnKick(int client, int matches)
  • AFKKicker_OnVerification(int client, int matches, bool modular)

About

Kicks AFK players after verifying they're actually AFK.

License:GNU General Public License v3.0


Languages

Language:SourcePawn 100.0%