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

[CS:GO] possible to block the new pinging


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 12-06-2020 , 09:36   [CS:GO] possible to block the new pinging
Reply With Quote #1

Hi, is it possible to block the new pinging introduced with the recent update including Operation Broken Fang?

Would be awesome if someone could tell me how to do this?

Thanks in advance.
fragnichtnach is offline
Nocky
Member
Join Date: Oct 2013
Location: Czech Republic
Old 12-06-2020 , 17:12   Re: [CS:GO] possible to block the new pinging
Reply With Quote #2

https://forums.alliedmods.net/showth...p;goto=newpost
__________________
Taking paid private requests! Contact me on steam/discord!

Steam | Discord: Nocky#0001 | Github
Nocky is offline
FAQU
Member
Join Date: Sep 2020
Location: Romania
Old 12-07-2020 , 04:29   Re: [CS:GO] possible to block the new pinging
Reply With Quote #3

Note that this will also block (pretty much) all the Radio chat messages.

PHP Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo 
{
    
name "Block Ping",
    
author "FAQU",
    
description "Disables the ping system introduced in Broken Fang update"
};

public 
void OnPluginStart()
{
    
AddCommandListener(Command_Ping"player_ping");
    
AddCommandListener(Command_Ping"chatwheel_ping");
    
HookUserMessage(GetUserMessageId("RadioText"), Hook_Radiotrue);
}

public 
Action Command_Ping(int client, const char[] commandint argc)
{
    return 
Plugin_Handled;
}

public 
Action Hook_Radio(UserMsg msg_idBfRead msg, const int[] playersint playersNumbool reliablebool init)
{
    return 
Plugin_Handled;

FAQU 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 01:16.


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