Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zennc
New Member
Join Date: Apr 2021
Old 04-08-2021 , 06:45   CSGO:How can I remove location from team chat & voice chat
Reply With Quote #1

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
zennc is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-08-2021 , 08:13   Re: CSGO:How can I remove location from team chat & voice chat
Reply With Quote #2

This should work.
Attached Files
File Type: sp Get Plugin or Get Source (hide_player_location.sp - 166 views - 1.4 KB)
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 04-08-2021 at 08:14.
Franc1sco is offline
Send a message via MSN to Franc1sco
zennc
New Member
Join Date: Apr 2021
Old 04-08-2021 , 09:23   Re: CSGO:How can I remove location from team chat & voice chat
Reply With Quote #3

Quote:
Originally Posted by Franc1sco View Post
This should work.
It works, thanks.
zennc is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 04-08-2021 , 13:21   Re: CSGO:How can I remove location from team chat & voice chat
Reply With Quote #4

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;

__________________
Ilusion9 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 07:32.


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