Skip to content

Kicks AFK players after verifying they're actually AFK.

License

Notifications You must be signed in to change notification settings

shavitush/AFK-Kicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published