How did u disable Idle completely? I could use a plugin like that, on my server a boatload of people keep abusing the witch idle glitch, i could use this, please let me know how or a plugin.
How did u disable Idle completely? I could use a plugin like that, on my server a boatload of people keep abusing the witch idle glitch, i could use this, please let me know how or a plugin.
thank you.
Since "go_away_from_keyboard" is only detected for manually going idle and not automatic (afk) idle - you can just block the command entirely.
Spoiler
PHP Code:
#include <sourcemod>
#pragma semicolon 1 #pragma newdecls required
public Plugin myinfo = { name = "Idle blocker", author = "anonymous", description = "", version = "0.0.0", url = "" };
public void OnPluginStart() { AddCommandListener(IdleCommand_Callback, "go_away_from_keyboard"); }
public Action IdleCommand_Callback(int client, const char[] command, int argc) { // Don't think this check is necessary but whatever if (!client || !IsClientInGame(client)) return Plugin_Continue;
PrintToChat(client, "[SM] idle is blocked on this server."); return Plugin_Handled; }
Last edited by dustinandband; 06-30-2020 at 02:35.
Reason: Edit
Since "go_away_from_keyboard" is only detected for manually going idle and not automatic (afk) idle - you can just block the command entirely.
Spoiler
PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public Plugin myinfo = {
name = "Idle blocker",
author = "anonymous",
description = "",
version = "0.0.0",
url = ""
};
public void OnPluginStart()
{
AddCommandListener(IdleCommand_Callback, "go_away_from_keyboard");
}
public Action IdleCommand_Callback(int client, const char[] command, int argc)
{
// Don't think this check is necessary but whatever
if (!client || !IsClientInGame(client))
return Plugin_Continue;
PrintToChat(client, "[SM] idle is blocked on this server.");
return Plugin_Handled;
}
OK currently i am using Alex Idle block plugin however it doesnt have the source code, so for this mod i use i cant use it for a release or it could get unapproved so i was curious this one, that provides the source code, does it block all Idle commands one could use to cheat around the standard idle block of clicking escape and hitting go idle?
example if u know this stuff can u program your idle plugin to have all idle commands and go to spectate commands blocked indefinetely and with that i just have a 15 second timer of not moving for ppl to get switched into idle.
this would work perfectly for this mod i use here https://forums.alliedmods.net/showthread.php?t=314630 currently i just need to find a plugin that fixes the witch glitch bug in this case blocking idle fixes all those annoying bugs so if u can do this that would be great!
basically, it has to have the source code and putting the source and .smx up would be nice as well.