[CS:GO] Restricted Commands

Post Reply
User avatar
Andreeas
Hero Member
Hero Member
Posts: 601
Joined: Wed Jan 22, 2020 8:17 pm
Jucator SA:MP ?: Nu
Nick:: Andreeas
Jucator CS ?: Nu

[CS:GO] Restricted Commands

Post by Andreeas »

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)

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/)





Download
Source
Post Reply

Return to “General Purpose”