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

[CSS] Remove lines damage teammate


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 01-16-2015 , 07:21   [CSS] Remove lines damage teammate
Reply With Quote #1

Hello,

I search a functions for remove a lines of damage teammate, for remove line to player connect for exemple, i use this :

Code:
public OnPluginStart()
{
	HookEvent("player_connect", EVENT_PLAYER_CONNECT, EventHookMode_Pre);
}

public Action:EVENT_PLAYER_CONNECT(Handle:event, const String:name[], bool:dontBroadcast)  
{ 
    SetEventBroadcast(event, true); 
}
But for a damage team mate i don't now...

Thank you in advance
NeXoU
NeXoU is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 01-16-2015 , 07:31   Re: [CSS] Remove lines damage teammate
Reply With Quote #2

Perhaps something like this:
PHP Code:
#include <sdktools>

public OnPluginStart()
{
    
HookUserMessage(GetUserMessageId("HintText"), MsgHook_HintTexttrue)
}

public 
Action:MsgHook_HintText(UserMsg:msg_idHandle:bf, const players[], playersNumbool:reliablebool:init)
{
    
decl String:str[128];
    
BfReadString(bfstrsizeof(str), false);
    if(
StrEqual(str"#Hint_try_not_to_injure_teammates"))
    {
        return 
Plugin_Handled;
    }
    return 
Plugin_Continue

__________________
...

Last edited by Oshizu; 01-16-2015 at 07:31.
Oshizu is offline
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 01-16-2015 , 09:54   Re: [CSS] Remove lines damage teammate
Reply With Quote #3

No this code don't work.
Thank you in advance for reading
NeXoU is offline
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 01-16-2015 , 10:13   Re: [CSS] Remove lines damage teammate
Reply With Quote #4

I have find it's ok.
Thank you
NeXoU is offline
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 01-16-2015 , 13:10   Re: [CSS] Remove lines damage teammate
Reply With Quote #5

I have another problem, i don't now remove a sound of radio, i have remove a chat message of radio but for a sound i don't now...
Thank in advance for reading
NeXoU is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-17-2015 , 04:46   Re: [CSS] Remove lines damage teammate
Reply With Quote #6

I know how to.
Thank you
__________________
Peace-Maker is offline
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 01-17-2015 , 15:34   Re: [CSS] Remove lines damage teammate
Reply With Quote #7

Quote:
Originally Posted by Peace-Maker View Post
I know how to.
Thank you
Can you help me ? How you Can block a sound of radio ?
Thank you in advance
NeXoU is offline
Reply


Thread Tools
Display Modes

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 08:06.


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