hlstats: add extra points for a nade kill
This commit is contained in:
parent
01d9a20a5c
commit
611b95c505
@ -208,6 +208,20 @@ public void OnClientDeath(Event hEvent, const char[] sEvent, bool bDontBroadcast
|
||||
{
|
||||
g_iKillCount[killer] += 1;
|
||||
}
|
||||
|
||||
char sWepName[64];
|
||||
GetEventString(hEvent, "weapon", sWepName, sizeof(sWepName));
|
||||
|
||||
if (!IsValidClient(client) && !IsValidClient(killer))
|
||||
return;
|
||||
|
||||
if(client != killer && GetClientTeam(client) == CS_TEAM_T && StrEqual(sWepName, "hegrenade"))
|
||||
{
|
||||
char sPlayerEvent[32];
|
||||
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_h_kill_nade");
|
||||
|
||||
LH_LogPlayerEvent(client, "triggered", sPlayerEvent, true);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user