Might want to change the plugin so Generic Admins can't afk check Roots and get them kicked using CanUserTarget.
change
PHP Code:
public Action:Command_AFKCheck(client, args)
{
for (new i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i) || IsFakeClient(i) || CheckCommandAccess(i, "sm_afkcheck", ADMFLAG_GENERIC)) continue;
ShowAFKMenu(i);
}
ReplyToCommand(client, "[SM] Sent out an AFK check to all non-admins.");
return Plugin_Handled;
}
to
PHP Code:
public Action:Command_AFKCheck(client, args)
{
for (new i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i) || IsFakeClient(i) || CheckCommandAccess(i, "sm_afkcheck", ADMFLAG_GENERIC) || !CanUserTarget(client, i)) continue;
ShowAFKMenu(i);
}
ReplyToCommand(client, "[SM] Sent out an AFK check to all non-admins.");
return Plugin_Handled;
}