View Single Post
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