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

[HL2:DM] Switch Suppress (v1.2, 5/04/13)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SpaceBass
Junior Member
Join Date: Feb 2011
Location: U.S. , TX
Plugin ID:
2292
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Half-Life 2 Deathmatch
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Blocks all team switch event messages
    Old 03-30-2011 , 18:32   [HL2:DM] Switch Suppress (v1.2, 5/04/13)
    Reply With Quote #1

    Switch Suppress
    Version 1.2

    Description:
    This plugin blocks all team switch event messages.

    Installation:
    • Move the .smx file into your addons/sourcemod/plugins directory.
    • You're done!
    Change log:
    • V1.2
      • Changed to a unique version ConVar
    • V1.1
      • Removed team checks. Will now block any team switch message in chat instead of specified teams
    • V1.0
      • Released

    Credit:
    FlyingMongoose: I got the idea from his plug-in, used part of his coding and just cut it down, Thanks: http://forums.alliedmods.net/showthread.php?p=716436

    Games:
    I have not tested with any other game mods, but it should work. Let me know if it does and I can update the Title & Game.
    Attached Files
    File Type: sp Get Plugin or Get Source (switchsuppress.sp - 1072 views - 691 Bytes)

    Last edited by SpaceBass; 05-04-2013 at 13:52. Reason: Changed to a unique version ConVar.
    SpaceBass is offline
    Samantha
    SourceMod Donor
    Join Date: Feb 2010
    Location: Madagascar
    Old 03-30-2011 , 19:21   Re: [HL2:DM] Switch Suppress (v1.0, 3/30/11)
    Reply With Quote #2

    Code:
    public Action:ev_PlayerTeam(Handle:event, const String:name[], bool:dontBroadcast)
    {
        if (!dontBroadcast && !GetEventBool(event, "silent"))
        {
    //There is really no need to check the team, if you are blocking all team switch messages.
                  
                SetEventBroadcast(event, true);
                return Plugin_Changed;
        }
        return Plugin_Continue;
    }
    Also, if you must check for teams use defines instead of variables since they dont change.
    __________________
    "I give sopport and knolage in making extractions"
    "MASTER(D) - dun0: are you mocing me?" -Master the grate

    Plugins
    Godmode Until Attack | No Block Team Filter
    Extensions
    Rcon Hooks
    Samantha is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-30-2011 , 21:46   Re: [HL2:DM] Switch Suppress (v1.0, 3/30/11)
    Reply With Quote #3

    No need to attach a zip or compiled SMX, it will compile on the forum.
    __________________

    Last edited by Silvers; 03-30-2011 at 21:50.
    Silvers is offline
    SpaceBass
    Junior Member
    Join Date: Feb 2011
    Location: U.S. , TX
    Old 03-31-2011 , 00:05   Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
    Reply With Quote #4

    Thank you Samantha. I removed the checks, was completely pointless Unless someone wanted to just block certain messages. Which I'll be willing to do if anyone wants.

    I removed the zip and just uploaded the SMX, Silvers.
    SpaceBass is offline
    Samantha
    SourceMod Donor
    Join Date: Feb 2010
    Location: Madagascar
    Old 04-04-2011 , 20:23   Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
    Reply With Quote #5

    Nice job btw
    __________________
    "I give sopport and knolage in making extractions"
    "MASTER(D) - dun0: are you mocing me?" -Master the grate

    Plugins
    Godmode Until Attack | No Block Team Filter
    Extensions
    Rcon Hooks
    Samantha is offline
    Master53
    Veteran Member
    Join Date: Dec 2009
    Old 07-05-2011 , 06:33   Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
    Reply With Quote #6

    nice plugin
    __________________
    Master(d)




    Last edited by Master53; 07-13-2011 at 22:16.
    Master53 is offline
    SpaceBass
    Junior Member
    Join Date: Feb 2011
    Location: U.S. , TX
    Old 07-05-2011 , 16:38   Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
    Reply With Quote #7

    There is already a plug-in for that.
    As in Rebel Only. I'm not sure if it is released to the public however?
    I myself only have the compiled version. I could try re making it.
    SpaceBass is offline
    Master53
    Veteran Member
    Join Date: Dec 2009
    Old 07-13-2011 , 22:11   Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
    Reply With Quote #8

    well. i think you will find out that if it works for rebel only it will work for combine or any other infact
    __________________
    Master(d)



    Master53 is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 10-06-2012 , 17:34   Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
    Reply With Quote #9

    Any chance at a unique version convar? Looks great (and simplistic) otherwise!
    KyleS is offline
    Sheepdude
    SourceMod Donor
    Join Date: Aug 2012
    Location: Chicago
    Old 02-06-2013 , 10:17   Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
    Reply With Quote #10

    To reiterate on KyleS' post, this plugin is OK for approval, except that "suppress_version" is already taken by another SourceMod plugin.
    __________________
    Sheepdude is offline
    Reply


    Thread Tools
    Display Modes

    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 09:08.


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