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

Remove "attacked a teammate" message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
semihkerim31
Member
Join Date: Feb 2017
Old 04-15-2017 , 16:13   Remove "attacked a teammate" message
Reply With Quote #1

hello im server murder mod.

i remove attacked a teammate message ?

possible ?
semihkerim31 is offline
woooow
Member
Join Date: Mar 2017
Old 04-15-2017 , 16:26   Re: Remove "attacked a teammate" message
Reply With Quote #2

Try this

code by georgik57

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin"Block Attacked Message""1.0""georgik57" );
    
    
register_message(get_user_msgid("SayText"), "message_SayText")
}

// Credits to Johnny got his gun
public message_SayText()
{
    if (
get_msg_args() > 4)
        return 
PLUGIN_CONTINUE;
    
    static 
szBuffer[40];
    
get_msg_arg_string(2szBuffer39)
    
    if (!
equali(szBuffer"#Cstrike_TitlesTXT_Game_teammate_attack"))
        return 
PLUGIN_CONTINUE;
    
    return 
PLUGIN_HANDLED;

woooow is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-15-2017 , 16:27   Re: Remove "attacked a teammate" message
Reply With Quote #3

You can search before ask something - https://forums.alliedmods.net/showthread.php?p=2180235
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
semihkerim31
Member
Join Date: Feb 2017
Old 04-15-2017 , 16:34   Re: Remove "attacked a teammate" message
Reply With Quote #4

thank you bro


sv_restart message block ?

thank you
semihkerim31 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-15-2017 , 16:37   Re: Remove "attacked a teammate" message
Reply With Quote #5

Search. And do not ask more scripts than one in one thread, make another one.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
woooow
Member
Join Date: Mar 2017
Old 04-16-2017 , 01:16   Re: Remove "attacked a teammate" message
Reply With Quote #6

Quote:
Originally Posted by semihkerim31 View Post
thank you bro


sv_restart message block ?

thank you
PHP Code:
#include <amxmodx> 

public plugin_init() 

    
register_plugin"Block Messages""2.0""X" ); 
     
    
register_message(get_user_msgid("SayText"), "message_SayText"
    
register_message(get_user_msgid("TextMsg") ,"message_TextMsg")


public 
message_SayText() 

    if (
get_msg_args() > 4
        return 
PLUGIN_CONTINUE
     
    static 
szBuffer[40]; 
    
get_msg_arg_string(2szBuffer39
     
    if (!
equali(szBuffer"#Cstrike_TitlesTXT_Game_teammate_attack")) 
        return 
PLUGIN_CONTINUE
     
    return 
PLUGIN_HANDLED
}  

public 
message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{     
    static 
message[32
    
get_msg_arg_string(2messagecharsmax(message))
     
    if(
equal(message"#Game_will_restart_in"))
    { 
        return 
PLUGIN_HANDLED;
    } 
    return 
PLUGIN_CONTINUE;

woooow 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 16:18.


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