Raised This Month: $ Target: $400
 0% 

Any good Team Kill protection for CS:S?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
IcEWoLF
Senior Member
Join Date: Jul 2007
Old 07-19-2012 , 00:26   Any good Team Kill protection for CS:S?
Reply With Quote #1

Any good up to date plugins for CS:S that work?
Basically when someone TK's someone they will be able to punish kill them, and if they TK enough that they would get banned from the server for a period of time.

Your help is very much appreciated!
IcEWoLF is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 07-19-2012 , 01:06   Re: Any good Team Kill protection for CS:S?
Reply With Quote #2

I've used this one: https://forums.alliedmods.net/showthread.php?p=714326, and Rothgar is great at monitoring and replying to the threads for his plugins
__________________
View my Plugins | Donate

Last edited by TnTSCS; 07-19-2012 at 01:06.
TnTSCS is offline
IcEWoLF
Senior Member
Join Date: Jul 2007
Old 07-19-2012 , 01:41   Re: Any good Team Kill protection for CS:S?
Reply With Quote #3

Thanks! Will give that mod a try!
IcEWoLF is offline
Hunter S. Thompson
Senior Member
Join Date: Jun 2012
Old 07-19-2012 , 02:01   Re: Any good Team Kill protection for CS:S?
Reply With Quote #4

You know, I've looked through your threads and it seems that you're just asking for plugin after plugin. Especially with something that's quite easy to write yourself.

Code:
#pragma semicolon 1

#include <sourcemod>

public OnPluginStart()
{
    HookEvent("player_death", PlayerDeath);
}

public Action:PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    new attacker = GetClientOfUserId(GetEventInt(event, "attacker"));
    
    decl String:attTeam[128], String:userTeam[128];
    GetTeamName(attacker, attTeam, sizeof(attTeam));
    GetTeamName(client, userTeam, sizeof(userTeam));
    
    if (StrEquals(attTeam, userTeam))
    {
        ForcePlayerSuicide(attacker);
    }
}
Of course, other plugins go into a lot more detail, but this is so very simple.
Hunter S. Thompson is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 07-19-2012 , 02:49   Re: Any good Team Kill protection for CS:S?
Reply With Quote #5

i dont understand, why add more plugins when you could just disable team killing?
Mitchell is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 07-19-2012 , 03:47   Re: Any good Team Kill protection for CS:S?
Reply With Quote #6

Quote:
Originally Posted by Hunter S. Thompson View Post
You know, I've looked through your threads and it seems that you're just asking for plugin after plugin. Especially with something that's quite easy to write yourself.

Code:
#pragma semicolon 1

#include <sourcemod>

public OnPluginStart()
{
    HookEvent("player_death", PlayerDeath);
}

public Action:PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    new attacker = GetClientOfUserId(GetEventInt(event, "attacker"));
    
    decl String:attTeam[128], String:userTeam[128];
    GetTeamName(attacker, attTeam, sizeof(attTeam));
    GetTeamName(client, userTeam, sizeof(userTeam));
    
    if (StrEquals(attTeam, userTeam))
    {
        ForcePlayerSuicide(attacker);
    }
}
Of course, other plugins go into a lot more detail, but this is so very simple.
Hell, why not use SDKHooks and block the damage completely then send damage back to the attacker?
ReFlexPoison is offline
Hunter S. Thompson
Senior Member
Join Date: Jun 2012
Old 07-19-2012 , 15:06   Re: Any good Team Kill protection for CS:S?
Reply With Quote #7

Quote:
Originally Posted by ReFlexPoison View Post
Hell, why not use SDKHooks and block the damage completely then send damage back to the attacker?
I've never really dived into SDKHooks, but yes this is a good idea, essentially mirror damage from TheTwistedPanda's RTD plugin, except resetting/removing the damage done to the player being shot.
Hunter S. Thompson 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 02:44.


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