Hello, please tell me how you can block the setinfo command? I try this way, but it doesn't work out:
Code:
#pragma semicolon 1
#pragma newdecls required
char
sFile[PLATFORM_MAX_PATH];
public void OnPluginStart()
{
BuildPath(Path_SM, sFile, sizeof(sFile), "logs/client_console.log");
}
public Action OnClientCommand(int client, int args)
{
char cmd[16];
GetCmdArg(0, cmd, sizeof(cmd));
char argstr[128];
GetCmdArgString(argstr, sizeof(argstr));
if(argstr[0])
{
LogToFile(sFile, "-> [%s %s]", cmd, argstr);
PrintToChatAll("-> [%s %s]", cmd, argstr);
}
else
{
LogToFile(sFile, "--> [%s]", cmd);
PrintToChatAll("-> [%s]", cmd);
}
return Plugin_Continue;
}
__________________