public void OnPluginStart()
{
HookEvent("player_death", Event_PlayerDeath);
}
public void Event_PlayerDeath(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(event.GetInt("userid"));
int attacker = GetClientOfUserId(event.GetInt("attacker"));
if (client && IsClientInGame(client))
{
if (attacker != 0 && IsClientInGame(attacker))
{
if (attacker != client)
{
char weapon[32];
GetEventString(event, "weapon", weapon, sizeof(weapon));
if (!GetEntProp(attacker, Prop_Send, "m_bIsScoped") && strcmp(weapon, "awp", false) == 0 || strcmp(weapon, "ssg08", false) == 0)
{
PrintToChatAll("%N убил без прицела %N", attacker, client);
}
}
}
}
}