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_Radio, true);
}
public Action Command_Ping(int client, const char[] command, int argc)
{
return Plugin_Handled;
}
public Action Hook_Radio(UserMsg msg_id, BfRead msg, const int[] players, int playersNum, bool reliable, bool init)
{
return Plugin_Handled;
}