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

Solved [Req] Hide messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.EwY
Junior Member
Join Date: Apr 2018
Location: In your mind
Old 04-09-2018 , 08:44   [Req] Hide messages
Reply With Quote #1

On my server , when player attack his teammate , a message display :
[Player] attacked a teammat
I want to hide it !
Can any one made it to my ?

Last edited by Mr.EwY; 04-10-2018 at 10:33.
Mr.EwY is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 04-09-2018 , 16:32   Re: [Req] Hide messages
Reply With Quote #2

I think it can work out using TextMsg id.
__________________
Relaxing is offline
Mr.EwY
Junior Member
Join Date: Apr 2018
Location: In your mind
Old 04-09-2018 , 16:57   Re: [Req] Hide messages
Reply With Quote #3

I don't understand what you're trying to say
Explain please !
If they're a plugin give it to me
Mr.EwY is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 04-09-2018 , 17:42   Re: [Req] Hide messages
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post

Code:
    #include <amxmodx>         new gi_FriendlyFire;         public plugin_init ()     {         register_plugin ( "Block Attack/Kill Teammates Messages", "1.0.0", "Arksine" );                 gi_FriendlyFire = get_cvar_pointer ( "mp_friendlyfire" );                 if ( !get_pcvar_num ( gi_FriendlyFire ) )         {             pause ( "ad" );             return;         }                 register_message ( get_user_msgid ( "TextMsg" ), "m_TextMsg" );     }         public m_TextMsg ( msg_id, msg_type, msg_id )     {         if ( get_msg_arg_int ( 1 ) == print_notify )         {             return PLUGIN_CONTINUE;         }             static s_Message[ 22 ];         get_msg_arg_string  ( 2, s_Message, charsmax ( s_Message ) );                 if ( equal ( s_Message, "#Game_teammate_attack" ) || equal ( s_Message, "#Killed_Teammate" ) || equal ( s_Message, "#Game_teammate_kills" ) )         {             return PLUGIN_HANDLED;         }                 return PLUGIN_CONTINUE;     }         /* -- Informations --             s_Message = #Game_teammate_attack | print_chat         s_Message = #Killed_Teammate      | print_center         s_Message = #Game_teammate_kills  | print_console     */
__________________

Last edited by Relaxing; 04-09-2018 at 17:47.
Relaxing is offline
Mr.EwY
Junior Member
Join Date: Apr 2018
Location: In your mind
Old 04-09-2018 , 17:46   Re: [Req] Hide messages
Reply With Quote #5

Thank you bro , you're my hero <3
Working perfect !
Mr.EwY 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 10:34.


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