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

[L4D1] CSS Style Attacked Teammate Notification In Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sades160
Junior Member
Join Date: Feb 2023
Old 03-28-2023 , 18:25   [L4D1] CSS Style Attacked Teammate Notification In Chat
Reply With Quote #1

I was hopping for a plugin to make it more like css

Example:

"Sades160 Attacked Bill"
Attached Thumbnails
Click image for larger version

Name:	image.png
Views:	63
Size:	20.3 KB
ID:	200075  
Sades160 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-01-2023 , 22:17   Re: [L4D1] CSS Style Attacked Teammate Notification In Chat
Reply With Quote #2

PHP Code:
public void OnPluginStart()
{
    
HookEventEx("friendly_fire"friendly_fire);
}

public 
void friendly_fire(Event event, const char[] namebool dontBroadcast)
{
    
int guilty GetClientOfUserId(event.GetInt("guilty"));
    
int victim GetClientOfUserId(event.GetInt("victim"));

    if(
guilty && victim)
    {
        
PrintToChatAll("%N attacked %N"guiltyvictim);
    }

__________________
Do not Private Message @me
Bacardi 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 11:41.


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