Description:
This plugin enables to block map commands from the entity point_servercommand
Installation:
First install PointDetour :
https://forums.alliedmods.net/showthread.php?t=184270
Then, upload antimapabuse.smx file to addons/sourcemod/plugins
Finally, upload the antimapabuse folder inside cfg/sourcemod
Cvar:
sm_antimapabuse_debug "0" : If it is set to 1, it shows all the commands sent by Point_ServerCommand entity
Configuration :
This plugin has only one configuration per map, so you need to create a file with the exact map name inside cfg/sourcemod/antimapabuse/maps
Configuration example:
WARNING ! In the case of westersand, apparently Stripper Source brokes the map, this is why it is unloaded.
PHP Code:
//First the more specific commands (meta unload)
//After the more global commands (meta)
"antimapabuse"
{
"Change"
{
"Value" "exec westersand.cfg"
"NewValue" "exec cfg/sourcemod/antimapabuse/newmapcfg/westersand"
}
"Change"
{
"Value" "meta unload stripper"
"NewValue" "say Don't touch Stripper Source ! ;sm_slay Sithranduil"
}
"Enable"
{
"Value" "meta"
}
"Disable"
{
"Value" "sm"
}
}
TODO:
Later, I will make a script to search for all the commands inside the map.