Raised This Month: $32 Target: $400
 8% 

Team Damage and kill in admin chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EagleEye91
Junior Member
Join Date: Mar 2012
Old 03-18-2012 , 18:35   Team Damage and kill in admin chat
Reply With Quote #1

Hi, i was searching around for a plugin that writes teamdamage and teamkill in the adminchat.

Since the opposite team cannot see if someone on the other team teamattack in chat.

I guess this is a easy plugin to create, since it will just post teamdamage in admin chat.

Hope anyone would like to create a plugin like this, it would be wery helpful for admins. Or if one already exist please tell me

Best Regards
EagleEye
EagleEye91 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-18-2012 , 19:45   Re: Team Damage and kill in admin chat
Reply With Quote #2

at least three have been written
__________________
View my Plugins | Donate
TnTSCS is offline
Bibby
Member
Join Date: Sep 2012
Location: Sweden
Old 04-10-2013 , 16:24   Re: Team Damage and kill in admin chat
Reply With Quote #3

is there any addons for this out there ? please link it here
Bibby is offline
The End Is Near...
Member
Join Date: Dec 2012
Location: Siberia
Old 04-11-2013 , 06:21   Re: Team Damage and kill in admin chat
Reply With Quote #4

test.
PHP Code:
#include <sourcemod>

public OnPluginStart()
{
    
HookEvent("player_hurt"Event_OnPlayerHurt);
}

public 
Event_OnPlayerHurt(Handle:event, const String:name[], bool:silent)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid")),
        
attacker GetClientOfUserId(GetEventInt(event"attacker"));
        
    if (
client != attacker)
    {
        new 
team GetClientTeam(attacker);
        if (
GetClientTeam(client) == team)
        {
            for (new 
1<= MaxClientsi++)
            {
                if (
IsClientInGame(i) && GetClientTeam(i) != team && GetUserAdmin(i) != INVALID_ADMIN_ID)
                {
                    
PrintToChat(i"[TEAM Damage] %N attacked %N"attackerclient)
                }
            }
        }
    }

The End Is Near... is offline
Bibby
Member
Join Date: Sep 2012
Location: Sweden
Old 05-05-2013 , 12:46   Re: Team Damage and kill in admin chat
Reply With Quote #5

It works well but can you do it so itīs delay cus when people are standing in the molotovs the chat will be spammed
Bibby 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 06:56.


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