Description:
Everyone knows that valve has restricted use of some plugins, yet people always type !knife, !skins, etc. This plugin has the option to play a game sound and or display a message when players type a restricted command.
Commands to restrict are read from: addons/sourcemod/configs/restricted_commands.ini
Messages are read from: addons/sourcemod/translations/restrictedcommands.phrases.txt
Cvars:
1. sm_restricted_commands_enabled: Enables or disables the plugin (Default: 1)
2. sm_restricted_commands_message_enabled: Enables or disables sending a message (Default: 1)
3. sm_restricted_commands_sound: Sound to be played (Default: random)
4. sm_restricted_commands_sound_enabled: Enables or disables playing a sound (Default: 1)
5. sm_restricted_commands_admin_flag: Do not display message and sound to admins with this flag. Valid flags: any, abcdefghijkmnzop (Default: any)
6. sm_restricted_commands_block_chat: Whether to block restricted commands in chat (Default: 1)
Sound:
By default plays a random negative sound from selected bot radio sounds.
To change the sound change sm_restricted_commands_sound
Examples:
error.wav
/buttons/weapon_cant_buy.wav
/player/vo/fbihrt/radiobotreponsenegative09.wav
More game sounds can be found using
gcfscape
Base path is the sound folder (ie csgo/sound/)
To Do (maybe lol):
Add color
More translations
Download:
https://github.com/RavageCS/Restricted-Commands