Someone correct me if I did something wrong. Untested.
PHP Code:
#include <amxmodx>
#include <cstrike>
public plugin_init()
{
register_plugin("Block StatusValue CT on T", "0.0.1", "D i 5 7 i n c T")
register_message(get_user_msgid("StatusValue"), "fwMsgStatusValue")
}
public fwMsgStatusValue(const iIDMsg, const iDestMsg)
{
// Ignore if the message isn't sent to a specific player
// Ignore if the teams of the player receiving the message and the player he's aiming on aren't different
if (iDestMsg != MSG_ONE && iDestMsg != MSG_ONE_UNRELIABLE || get_msg_arg_int(2) != 2)
return PLUGIN_CONTINUE;
// Get the ID of the player that is receiving the message
new iID = get_msg_arg_int(1);
// Ignore if the player receiving the message is not alive and CT
if (!is_user_alive(iID) || CsTeams:cs_get_user_team(iID) != CS_TEAM_CT)
return PLUGIN_CONTINUE;
// Block the message but let other plug-ins read it
return PLUGIN_HANDLED_MAIN;
}