AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   CSGO:How can I remove location from team chat & voice chat (https://forums.alliedmods.net/showthread.php?t=331803)

zennc 04-08-2021 06:45

CSGO:How can I remove location from team chat & voice chat
 
Hi, so i just can't figure out how do i remove these, if it is even possible but it is i saw it on other servers.
pictures:
https://imgur.com/a/8MrFsWx

Franc1sco 04-08-2021 08:13

Re: CSGO:How can I remove location from team chat & voice chat
 
1 Attachment(s)
This should work.

zennc 04-08-2021 09:23

Re: CSGO:How can I remove location from team chat & voice chat
 
Quote:

Originally Posted by Franc1sco (Post 2743417)
This should work.

It works, thanks.

Ilusion9 04-08-2021 13:21

Re: CSGO:How can I remove location from team chat & voice chat
 
PHP Code:

#include <sourcemod>
#include <sdktools>

public void OnPluginStart()
{
    
UserMsg sayText GetUserMessageId("SayText2");
    if (
sayText)
    {
        
HookUserMessage(sayTextUserMessage_SayText2true);
    }
}

public 
Action UserMessage_SayText2(UserMsg msg_idany msg, const int[] playersint playersNumbool reliablebool init)
{
    
Protobuf pb view_as<Protobuf>(msg);
    
    
// get message
    
char buffer[256];
    
pb.ReadString("msg_name"buffersizeof(buffer));

    if (
StrEqual(buffer"Cstrike_Chat_T_Loc"true))
    {
        
pb.SetString("msg_name""Cstrike_Chat_T");
        
pb.SetString("params"""2);
        return 
Plugin_Changed;
    }
    
    if (
StrEqual(buffer"Cstrike_Chat_CT_Loc"true))
    {
        
pb.SetString("msg_name""Cstrike_Chat_CT");
        
pb.SetString("params"""2);
        return 
Plugin_Changed;
    }
    
    return 
Plugin_Continue;




All times are GMT -4. The time now is 16:08.

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