Raised This Month: $32 Target: $400
 8% 

Allow HLSS


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Plugin ID:
892
Plugin Version:
0.4
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows specified players to use HLSS/HLDJ even if sv_allow_voice_from_file is set to 0
    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
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 05-24-2009 , 04:11   Re: Allow HLSS
    Reply With Quote #2

    Perhaps adding a cvar to allow people with a certain admin flag or admin at all have access?
    __________________

    DontWannaName is offline
    Arg!
    Veteran Member
    Join Date: Jul 2008
    Location: Australia
    Old 05-25-2009 , 00:38   Re: Allow HLSS
    Reply With Quote #3

    Got an example of a plugin that already does this kind of thing? The override system means that you can set it up exactly how you like.
    __________________
    Arg! is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 05-25-2009 , 00:44   Re: Allow HLSS
    Reply With Quote #4

    There are a few plugins that give access based on flags, the AFK managers do for example.
    __________________

    DontWannaName is offline
    Arg!
    Veteran Member
    Join Date: Jul 2008
    Location: Australia
    Old 05-25-2009 , 01:18   Re: Allow HLSS
    Reply With Quote #5

    But what would you pass into the cvar for the value?
    __________________
    Arg! is offline
    Arg!
    Veteran Member
    Join Date: Jul 2008
    Location: Australia
    Old 06-11-2009 , 05:48   Re: Allow HLSS
    Reply With Quote #6

    0.2 version released.
    __________________
    Arg! is offline
    Dragonshadow
    BANNED
    Join Date: Jun 2008
    Old 06-11-2009 , 10:30   Re: Allow HLSS
    Reply With Quote #7

    You shouldn't upload a zip file, upload the sp file and let the forum compile it.
    You could also just define the version in the plugin instead of in another file

    instead of

    #include "..\temp\version.sp"

    use

    #define VERSION "#"

    Last edited by Dragonshadow; 06-11-2009 at 10:33.
    Dragonshadow is offline
    Arg!
    Veteran Member
    Join Date: Jul 2008
    Location: Australia
    Old 06-12-2009 , 07:33   Re: Allow HLSS
    Reply With Quote #8

    rolled back to version 0.1 as the time based function i used in 0.2 does not work at all.
    __________________
    Arg! is offline
    Arg!
    Veteran Member
    Join Date: Jul 2008
    Location: Australia
    Old 06-13-2009 , 01:12   Re: Allow HLSS
    Reply With Quote #9

    Scratch that! I had the numbers in my config file around the wrong way.

    Feel free to fish slap me now.
    __________________
    Arg! is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 07-18-2009 , 19:09   Re: Allow HLSS
    Reply With Quote #10

    Few issues:

    There is no reason to include your version.sp file, move that define to the alowhlss.sp.
    Once that is done, plugin should compile on forums, and with no other files needed, please upload the .sp file by itsel. (You can also upload the release notes file separtely as well.

    Since your plugin should then compile on the forums, remove your compiled version.
    __________________
    [my plugins]

    When you think about asking a question... consider what have you tried?
    Antithasys is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:35.


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