Raised This Month: $ Target: $400
 0% 

Solved block teamattack message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-07-2022 , 17:28   Re: block teamattack message
Reply With Quote #1

Remove "Cstrike_TitlesTXT_" from the first code.
The message code is "#Game_teammate_attack".

You can also use my plugin to modify/block any message - https://forums.alliedmods.net/showthread.php?t=282218
You can get a full list of messages in resource/cstrike_english.txt. Again, the "Cstrike_TitlesTXT_" part needs to be ommited.
__________________

Last edited by OciXCrom; 01-07-2022 at 17:30.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
The overrated maniac
Member
Join Date: Jun 2021
Location: Argentina
Old 01-07-2022 , 18:09   Re: block teamattack message
Reply With Quote #2

Quote:
Originally Posted by OciXCrom View Post
Remove "Cstrike_TitlesTXT_" from the first code.
The message code is "#Game_teammate_attack".

You can also use my plugin to modify/block any message - https://forums.alliedmods.net/showthread.php?t=282218
You can get a full list of messages in resource/cstrike_english.txt. Again, the "Cstrike_TitlesTXT_" part needs to be ommited.

still not working:
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("D7 block saytext team attack""0.0.1""D i 5 7 i n c T, Johnny got his gun")
    
    
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"#Game_teammate_attack"))
        return 
PLUGIN_CONTINUE;
    
    return 
PLUGIN_HANDLED;

The message in cstrike_english.txt is Cstrike_TitlesTXT_Game_teammate_attack

I dont like to use a plugin like that only for block 1 message, but if its the only way, I will

Last edited by The overrated maniac; 01-07-2022 at 18:14.
The overrated maniac 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:32.


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