Thread: Allow HLSS
View Single Post
Author Message
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 05-24-2009 , 02:36   Allow HLSS
Reply With Quote #1

Allow HLSS - By Arg!

Description:
Allows specified players to use HLSS/HLDJ even if sv_allow_voice_from_file is set to 0. Also has facility to allow HLSS/HLDJ during a certain time period every day (gets set after each map change).

Commands:
  • sm_hlsson - Does nothing at all.
Cvars:
  • sm_hlssallowedtime <1|0> - If enabled, sv_allow_voice_from_file will be set to enabled during the specified hour range. (requires map change to set)
  • sm_hlssallowedtime_start - 24 hour time hour to enable sv_allow_voice_from_file
  • sm_hlssallowedtime_end - 24 hour time hour to disable sv_allow_voice_from_file
  • sm_hlssallowedlevel <1|2>
    • 1 - Players with sm_hlsson access can play any time, everyone can play during specified time if enabled.
    • 2 - Players with sm_hlsson access can only play during specified time if enabled, everyone else cannot play at all
Install Instructions:
  • 'plugins/allowhlss.smx' goes into 'sourcemod/plugins'
  • To give access, setup an override for the command 'sm_hlsson' and assign this to people who wish to have this access. May require client reconnect or map change to start working.
  • The file 'cfg/sourcemod/allowhlss.cfg' will be created on plugin load, use this file to change cvar settings. NOTE: If cvars are added or changed in any future releases you may need to delete this file and reload the plugin. Keep an eye on release notes for specific changes.
Changelog:

24th May 2009 - 0.1
  • Initial Release
11th June 2009 - 0.2
  • Added cvar 'sm_hlssallowedtime' which enables sv_allow_voice_from_file during the specified time
  • Added cvars 'sm_hlssallowedtime_start' and 'sm_hlssallowedtime_end' to specify time period for to be enabled
19th July 2009 - 0.3
  • Tested with SourceMod 1.2.1
  • Changed versioning sytem to avoid zip file packaging
22nd July 2009 - 0.4
  • IMPORTANT UPGRADE NOTE: After updating and loading this version your MUST delete the file 'cfg/sourcemod/allowhlss.cfg'. If you have customized this file, check for non default settings and edit the file after reloading the plugin.
  • Added cvar 'sm_hlssallowedlevel' <1|2>
    • 1 - Players with sm_hlsson access can play any time, everyone can play during specified time if enabled.
    • 2 - Players with sm_hlsson access can only play during specified time if enabled, everyone else cannot play at all
Attached Files
File Type: sp Get Plugin or Get Source (allowhlss.sp - 1953 views - 6.4 KB)
File Type: txt Release Notes.txt (1.2 KB, 618 views)
__________________

Last edited by Arg!; 07-22-2009 at 00:13. Reason: 0.4 release
Arg! is offline