Raised This Month: $51 Target: $400
 12% 

[ANY] Block Spectators (UPDATED 10/18/15)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
headline
SourceMod Moderator
Join Date: Mar 2015
Plugin ID:
4842
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A simple plugin designed to block people from joining the spectator team.
    Unapprover:
    Reason for Unapproving:
    not maintained by author
    Old 10-11-2015 , 15:44   [ANY] Block Spectators (UPDATED 10/18/15)
    Reply With Quote #1

    [ANY] Block Spectators

    If you want to lock spectators for EVERYONE (including admins) see if your game has a cvar already made for that. (mp_spectators_max, mp_allowspectators, etc.)

    ABOUT:
    Basically, I formed this plugin based off of a request that I saw in the "Plugin Requests" section of this forum. After looking around I saw that there wasn't a publicly available plugin that does this (possibly because its so simple), but not everyone knows how to make SourceMod plugins so this is for them!

    INSTALLATION:
    To install, simply download the newest version of the .smx file and place it into your /plugins/ folder.

    SOURCE CODE:
    Spoiler


    CVARS:
    Code:
    hl_blockspec_allow_admins  - "1" - Allow admins to pass the spectator block?
    DONATE:
    If you feel that I have done a good job, please consider supporting me.



    Thanks!
    Attached Files
    File Type: sp Get Plugin or Get Source (hl_blockspec.sp - 1605 views - 1.4 KB)

    Last edited by headline; 10-18-2015 at 21:03.
    headline is offline
    Konkey Dong
    Junior Member
    Join Date: Feb 2013
    Old 10-11-2015 , 22:37   Re: [ANY] Block Spectators
    Reply With Quote #2

    mp_allowspectators 0?
    Konkey Dong is offline
    headline
    SourceMod Moderator
    Join Date: Mar 2015
    Old 10-12-2015 , 11:59   Re: [ANY] Block Spectators
    Reply With Quote #3

    Quote:
    Originally Posted by Konkey Dong View Post
    mp_allowspectators 0?
    Yes. I might as well keep it up just incase. Idk if all source games have that cvar... Probably.
    headline is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 10-12-2015 , 12:12   Re: [ANY] Block Spectators
    Reply With Quote #4

    Quote:
    Originally Posted by Headline22 View Post
    Yes. I might as well keep it up just incase. Idk if all source games have that cvar... Probably.
    csgo has mp_max_spectators 0 instead
    __________________
    retired
    shavit is offline
    SPYderman
    Senior Member
    Join Date: Aug 2013
    Old 10-13-2015 , 21:05   Re: [ANY] Block Spectators
    Reply With Quote #5

    mp_allowspectators doesn't seem to work on Fistful of Frags, so this plugin is useful for that.

    Last edited by SPYderman; 10-13-2015 at 21:05.
    SPYderman is offline
    headline
    SourceMod Moderator
    Join Date: Mar 2015
    Old 10-18-2015 , 20:58   Re: [ANY] Block Spectators
    Reply With Quote #6

    Quote:
    Originally Posted by SPYderman View Post
    mp_allowspectators doesn't seem to work on Fistful of Frags, so this plugin is useful for that.
    Since that is such a small percentage of players, I made a cvar to exclude admins from the block. Might as well add some more use to this.

    Version 1.1:
    - Updated to 1.7 syntax
    - Added sm_blockspec_allow_admins to exclude admins from the block
    headline is offline
    omarcristian
    Junior Member
    Join Date: Oct 2015
    Location: Cuba
    Old 04-28-2016 , 13:00   Re: [ANY] Block Spectators (UPDATED 10/18/15)
    Reply With Quote #7

    Quote:
    Originally Posted by Headline View Post
    [ANY] Block Spectators

    If you want to lock spectators for EVERYONE (including admins) see if your game has a cvar already made for that. (mp_spectators_max, mp_allowspectators, etc.)

    ABOUT:
    Basically, I formed this plugin based off of a request that I saw in the "Plugin Requests" section of this forum. After looking around I saw that there wasn't a publicly available plugin that does this (possibly because its so simple), but not everyone knows how to make SourceMod plugins so this is for them!

    INSTALLATION:
    To install, simply download the newest version of the .smx file and place it into your /plugins/ folder.

    SOURCE CODE:
    Spoiler


    CVARS:
    Code:
    hl_blockspec_allow_admins  - "1" - Allow admins to pass the spectator block?
    DONATE:
    If you feel that I have done a good job, please consider supporting me.



    Thanks!
    Excelent Plugin!!!!!But,i have a request,can you incorporate to this plugin,a funcionallity to redirect specters to SourceTv please?
    omarcristian 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 20:18.


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