AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [HL2:DM] Switch Suppress (v1.2, 5/04/13) (https://forums.alliedmods.net/showthread.php?t=153889)

SpaceBass 03-30-2011 18:32

[HL2:DM] Switch Suppress (v1.2, 5/04/13)
 
1 Attachment(s)
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.

Samantha 03-30-2011 19:21

Re: [HL2:DM] Switch Suppress (v1.0, 3/30/11)
 
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.

Silvers 03-30-2011 21:46

Re: [HL2:DM] Switch Suppress (v1.0, 3/30/11)
 
No need to attach a zip or compiled SMX, it will compile on the forum.

SpaceBass 03-31-2011 00:05

Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
 
Thank you Samantha. I removed the checks, was completely pointless :D 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.

Samantha 04-04-2011 20:23

Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
 
Nice job btw :)

Master53 07-05-2011 06:33

Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
 
nice plugin :)

SpaceBass 07-05-2011 16:38

Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
 
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.

Master53 07-13-2011 22:11

Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
 
well. i think you will find out that if it works for rebel only it will work for combine or any other infact :D

KyleS 10-06-2012 17:34

Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
 
Any chance at a unique version convar? Looks great (and simplistic) otherwise!

Sheepdude 02-06-2013 10:17

Re: [HL2:DM] Switch Suppress (v1.1, 3/30/11)
 
To reiterate on KyleS' post, this plugin is OK for approval, except that "suppress_version" is already taken by another SourceMod plugin.


All times are GMT -4. The time now is 19:04.

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