[SMAC] Commands Monitor
[Module] - smac_commands.smx
This module manages, monitors, checks for commands being used by players on the server. It manages commands that can be used to lag, crash, or freeze the server and manages them accordingly by either blocking them, kicking the player, banning the player, etc.
Admin Commands :
Code:
// Adds a command to be blocked by SMAC.
!smac_addcmd <command> <0=block-only; 1=ban; 2=kick>
Example: !smac_addcmd kill 0
// Removes the command from block list
!smac_removecmd <command>
Example: !smac_removecmd kill
// Adds a command to ignore on command spam.
!smac_addignorecmd <command>
Example: !smac_addignorecmd buy
// Remove a command to ignore
!smac_removeignorecmd <command>
Example: !smac_removeignorecmd buy
ConVars :
Code:
// Amount of commands allowed per second. (0 = Disabled)
// Default: "35"
smac_antispam_cmds "35"
// Log command usage. Use only for debugging purposes.
// Default: "0"
smac_commands_log "0"
Detection Sample (Log) :
Code:
Hacker1 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was banned for command usage violation of command: sm_command
Hacker2 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was banned for command usage violation of command: sm_command
More Details :
To see what commands are considered as cheat commands :
Visit Here
For blocking commands from plugins :
Use this plugin instead
This plugin (as well as the one linked above) DOES NOT BLOCK "sm plugins list" or commands similar to this. It is hardcoded into Sourcemod itself and cannot be blocked by plugin.
If you want to block commands from plugins, you may want to consider either editing the plugin and/or set the command to only be usable by admins. Using this plugin to block another plugin's commands is not advised as most plugins are open source and can been recompiled without use of the command.
Finally, please be aware that not all commands can be blocked/prevented, including some client-side commands that players can use. While you can sometimes detect when they are being used, and sometimes take actions like kick/ban against them for doing so, it does not mean that you can always successfully block the command itself from working.