AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Admin Sounds 1.2.2 (https://forums.alliedmods.net/showthread.php?t=88201)

Cadav0r 03-21-2009 15:06

Admin Sounds 1.2.2
 
1 Attachment(s)
Admin Sounds (new version)

Current Version: 1.2.2


Description:
This plugin continue the dalto's plugin of the same name.
It uses a new scheme of sound list file. Look at the sample file soundslist.cfg in addons/sourcemod/configs/ directory.
No sounds are provided with this plugin at this time.
The menu is added in the topmenu

/!\ This plugin doesn't work on L4D and L4D2 game!!!


Commands:
Admin Commands:
sm_admin_sounds_menu : Display a menu to select sound to play

sm_admin_sounds_stop : Stop the playing sound for everyone
sm_admin_sounds_list : Display a list of categories and sounds
User Commands:
!stop : When used in chat will per-user stop any sound currently playing by this plug-in
!stopall : When used in chat will per-user enable/disable hearing of any sound

Required Plugin:
For the stopall option, the clientpref plugin is required.
If this plugin isn't loaded, this option is disabled even if the sm_admin_sounds_stopall cvar is on


Planned Features:
  • None, make a request!

CVar's:
// The version number
sm_admin_sounds_version

// Default time in seconds after playing a sound that another one can be played.
// Default: "60"
// Minimum: "0.000000"
sm_admin_sounds_delay "60"

// Enable the display of message to client when a sound is played. Default: on
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_admin_sounds_display "1"

// Admin flag for delay time immunity (see admin_level.cfg). Leave blank for no immunity.
// Default: "z"
sm_admin_sounds_immunity "z"

// Enable the possibility to reprint the menu after each sound.
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_admin_sounds_menureprint "0"

// How long the menu still show.
// Default: "20"
// Minimum: "5.000000"
// Maximum: "60.000000"
sm_admin_sounds_menutime "20"

// Enable the possibility to stop currently played sound.
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_admin_sounds_stop "1"

// Enable the possibility to stop all sounds.
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_admin_sounds_stopall "1"

// Default volume of played sounds : 0.0 <= x <= 1.0.
// Default: "1.0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_admin_sounds_volume "1.0"

(new in 1.2.2)
// Admin flag to be allow to stop played sound (see admin_level.cfg). If blank no stop possibility for admin.
// Default: "b".
sm_admin_sounds_adminlevelstop "b"


Changelog:
- 1.0
* Initial Release of dalto
- 1.0.1
* Increased the max number of sounds to 50
* Added error checking on the number of sounds
- 1.0.2 // Modified by o_O.Uberman.O_o upon request of|HS|Jesus
* Added a chat "!stop" command to allow players to stop sounds started by this plug-in
- 1.0.3 // Modified by |HS|Jesus
* Added output of what sound is playing
- 1.1
* Made the config file load automatically
* Added sm_admin_sounds_delay
- 1.1.1 // Modified by cadavor
* Added Log message
* Disable menu after launch sound
* Added Cvar to enable or disable display and stop command
- 1.1.2 // Modified by cadavor
* Added to admin menu
* Added translations
- 1.1.3 // Modified by cadavor
* Added how many sounds has been loaded in log
* Added error in log when filename is too long to prevent crash of the plugin
- 1.1.4a // Modified by cadavor (not released)
* Added an option to stop all sound (require clientpref plugin) with say command !stopall
* Added cvar to control the volume of sounds
- 1.1.4b // Modified by cadavor (not released)
* Correction of displayed message
- 1.2.0 // Modified by cadavor
* Change config file to use KeyValue function (see soundslist.cfg for more details)
* Added command "sm_admin_sounds_list" to display in console all sounds and categories with parameters
* Added Cvar to choose the show time of menu
* Reset next sound delay on map start
- 1.2.1 // Modified by cadavor
* Added stop option for each categories and sounds
* Added Cvar to choose if menu will be shown again after each sound
* Added Cvar to choose admin flag for delay immunity
* Correction of StopAll option to check if ClientPref plugin is running
* Correction of Cvar tag to don't record the version in config file
- 1.2.2 (25-04-2010) // Modified by cadavor
* Added Back button to all menus
* Added stop action in menu
* Added cvar to choose admin level for stop option
* Added message for reenable sounds to client who "stopall" on each sound launched
* Change precache option to enable precache before level startup
* Fix check ClientPref plugin which sometimes made too early
* Fix stop option
* Fix say command if only one stop option was enabled
* Fix menu display again
* Fix sound selection when categories have same name (allow sound with same name in different category)
* Fix GetMenuIem errors

Attention:
You must delete the config file (cfg/sourcemod/adminsounds.cfg) to have new cvar added in!!!
(Delete the file, upload the plugin new version, changemap or reboot your server, the new config file has been created then you can download it and change options.)

DontWannaName 03-21-2009 15:15

Re: Admin Sounds
 
Does it use client prefs to save that setting to turn it off for the user?

Cadav0r 03-21-2009 17:21

Re: Admin Sounds
 
Yes I forget to mention this point

[EDIT] I edit my first post to add this.

DontWannaName 03-21-2009 18:58

Re: Admin Sounds
 
Does it add a category in !settings where inside there is an option to turn it on/off for people instead of that command.

Cadav0r 03-22-2009 06:39

Re: Admin Sounds
 
No, I will look that

Thanks

Chaos Llama 03-25-2009 19:20

Re: Admin Sounds
 
Something odd is happening to me.

Sounds download but when one is played, there's no audio. I have volume set to 1.0 in the adminsounds.cfg file.

The sounds are the exact same sounds i used with the previous adminsounds plugin (which works).

Xp3r7 03-25-2009 20:44

Re: Admin Sounds
 
Being integrated into the admin menu would be a plus. :)

DontWannaName 03-25-2009 23:19

Re: Admin Sounds
 
But then u couldnt spam a sound a few times...

Cadav0r 03-26-2009 10:10

Re: Admin Sounds
 
Quote:

Originally Posted by Chaos Llama (Post 789092)
Something odd is happening to me.

Sounds download but when one is played, there's no audio. I have volume set to 1.0 in the adminsounds.cfg file.

The sounds are the exact same sounds i used with the previous adminsounds plugin (which works).

Look your log file or your console after launching the sound to verify that there are no errors!


Quote:

Originally Posted by Xp3r7
Being integrated into the admin menu would be a plus.

It's already done!!!

waertf 03-28-2009 11:14

Re: Admin Sounds
 
work for l4d?


All times are GMT -4. The time now is 17:58.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.