So I changed a bit in
sneaKs cash message removal plugin.
I changed from cash messages to the message you get when you plant the bomb:
http://prntscr.com/pgela6
And here is the code, but it doesn't block the message, anyone know what's wrong?
PHP Code:
#include <sourcemod>
#pragma newdecls required
public Plugin myinfo =
{
name = "Remove Cash & Points Messages (CS:GO)",
author = "sneaK",
version = "1.3",
description = "Disables certain messages in chat",
url = "https://snksrv.com"
};
public void OnPluginStart()
{
HookUserMessage(GetUserMessageId("TextMsg"), RemoveMessage, true);
}
public Action RemoveMessage(UserMsg msg_id, BfRead msg, const int[] players, int playersNum, bool reliable, bool init)
{
char buffer[64];
PbReadString(msg, "params", buffer, sizeof(buffer), 0);
if (StrEqual(buffer, "#Cstrike_TitlesTXT_Planting_Bomb"))
{
return Plugin_Handled;
}
return Plugin_Continue;
}