View Single Post
Author Message
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 06-14-2012 , 14:13   [CS:S] Block Radio [2.0.2]
Reply With Quote #1

  • Plugin:
This plugin is allowing the server owner to block the in-game radio commands that are accessible by pressing z/x/c [default keys].
If the game is not "Counter-Strike: Source" the plugin will fail on loading, and a error will be logged.
The plugin is easy to write, Ive searched one and didn't found so I wrote that.
I just found a plugin that blocking radio spam, and I wrote a plugin that blocking all radio commands, not spamming them.
Help me translate the plugin to other languages!
The plugin will automatically create/execute the config file in cfg/sourcemod named blockradio.cfg.

  • Supported lanugages:
English - by me
Hebrew - by me
Hungarian - by blue zebra.
Spanish - by Franc1sco.
Russian - by BOBSON.

  • Console Variables:
// Is "Block Radio" enabled?
// Default - 1
// Minimum - 0.0
// Maximum - 1.0
sm_blockradio_enabled

// Is notifying about blocked radio messages enabled?
// Default - 1
// Minimum - 0.0
// Maximum - 1.0
sm_blockradio_message

// Is "Fire in the hole" radio sound is supressed??
// Default - 1
// Minimum - 0.0
// Maximum - 1.0
sm_blockradio_grenade

// "Block Radio" Plugin version
// Default - Plugin version
sm_blockradio_version

  • Planned:
AMX Mod X version.

  • Installation:
Download the wanted file and copy it to "addons/sourcemod/plugins" then:
Reload the server/change map/execute "sm plugins load blockradio" in the server console/rcon.
Download blockradio.phrases.txt and place it in "addons/sourcemod/translations".

  • Files
blockradio.smx - Locally compiled in my computer, built-in updater support.
blockradio.sp - Locally compiled in alliedmods.net, no built-in updater support. Compile in your computer using updater.inc to get updater support if you didn't downloaded blockradio.smx.


  • Update:
Install 1 of the required extensions to use the Updater.
Install Updater. [If you dont have it yet]
Reload the server. [I think you can reload the map/plugin/updater]
It will automatically update!
  • Required:
SourceMod 1.3+.
Updater for automatic updates/compile.

  • Changelog
2.0.2 -
Fixed a possible client error.
Changed description to "Blocks all of the radio commucations".
Compability to download the .smx from the forum's thread.
Cleaner method to print the chat message.



2.0.1 -
Fixed an "out of bounds" error.


2.0.0 -
Fixed cvars did nothing.
Optimizations.
Made the commands in a loop, shorter code
Change a capital letter to an normal letter in the English phrase

1.9.0 -
+ Spanish translations added.
* Fixed a console spamming each server startup.

1.8 -
+ Hungarian translations added.

1.7 -
* Changed the code to even neater.

1.6 -
* Neater code.

1.5 -

+ Flag for version cvar. [notify flag]

1.4 -
+ Console variable to suppress "Fire in the hole" sound.
+ Double check for fire in the hole removal.

1.3 -
+ Updater URL Changed.

1.2 -
+ Updater support.

1.1 -
+ Translations added.
+ Console variable for messages after pressing a radio added.
+ Config in cfg/sourcemod added.
* Changed the version console variable to not be wrote into .cfg file.

1.0 -
Initial Release.

+ Added
- Removed
* Fixed/Changed
Attached Files
File Type: smx blockradio.smx (3.8 KB, 1300 views)
File Type: sp Get Plugin or Get Source (blockradio.sp - 3427 views - 3.2 KB)
File Type: txt blockradio.phrases.txt (278 Bytes, 10679 views)
__________________
retired

Last edited by shavit; 10-13-2013 at 14:50.
shavit is offline