[ D-Force (Download Enforcer) ]
Version: 2.0.0
Description:
This plugin checks for
cl_downloadfilter | sv_allowupload | cl_allowdownload cvars when a player connects & if the value wasn't equal to what you allowed, forces the player to change the value and reconnect.
(Using WARN, KICK or NOT ALLOWED TO JOIN TEAM methods)
Required:
SourceMod 1.7.0 or Higher
ConVars:
dforce_cl_downloadfilter "all,nosounds" -
"Value(s) that the player is allowed to set for cl_downloadfilter ('all' or 'mapsonly' or 'nosounds' or 'none) - Separate with comma for multiple allowed values"
dforce_cl_allowdownload "1" -
"Value(s) that the player is allowed to set for cl_allowdownload (0 or 1) - Separate with comma for multiple allowed values"
dforce_sv_allowupload "1" -
"Value(s) that the player is allowed to set for sv_allowupload (0 or 1) - Separate with comma for multiple allowed values"
dforce_punish_mode "1" -
"| 1 = Kick on connect | 2 = Send message every X seconds, Kick after Y minutes | 3 = Not allowed to join a team"
dforce_punish_interval "5.0" -
"(Works only if dforce_punish_mode = 2) - Interval between messages in seconds"
dforce_punish_kickafter "120.0" -
"(Works only if dforce_punish_mode = 2) - The time in seconds to kick the player with wrong cvar value"
dforce_immune_admins "1" -
"Enable/Disable admin immunity for forcing downloads"
dforce_kick_failed "0" -
"Enable/Disable kicking the player if convar query failed"
1. Note: This is the first release, The plugin is tested before but it may have some bugs. If you found one please post it here with logs information.
2. Note: The cfg file will be created in cfg/sourcemod folder named D-Force.cfg so you can set your own settings there.
Change Log:
1.0.0 - Initial release
2.0.0 - Rebuilt & changed the plugin behavior to legal form