Код:
#include <fakemeta>
#define m_iPlayerTeam 114
#define linux_dif 5
enum _:CSTEAM {
UNASSIGNED = 0,
TERRORIST,
CT,
SPECTATOR
}
RegisterHam(Ham_Killed, "player", "fw_killed", 1)
public fw_killed(victim, attacker)
{
if(!is_user_connected(attacker) || attacker == victim)
{
return;
}
if(get_pdata_int(iVictim, m_iPlayerTeam, linux_dif) != TERRORIST ) return;
set_pev(iAttacker, pev_health, pev(iAttacker, pev_health) + 20.0)
}