hlstatsx_ze: add human solo win

500 points static
This commit is contained in:
Dogan 2019-04-10 20:15:43 +02:00
parent 0da12beb35
commit 5cc005f9c9

View File

@ -136,7 +136,13 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast
{ {
if (IsValidClient(client)) if (IsValidClient(client))
{ {
if (bAwardHumans && g_bIsHuman[client]) int HumanCount = GetTeamClientCount(CS_TEAM_CT);
if (bAwardHumans && g_bIsHuman[client] && HumanCount == 1)
{
LogPlayerEvent(client, "triggered", "ze_h_win_solo");
}
else if (bAwardHumans && g_bIsHuman[client])
{ {
char sPlayerEvent[32]; char sPlayerEvent[32];
Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_h_win_%d", g_cvarDifficultyHuman.IntValue); Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_h_win_%d", g_cvarDifficultyHuman.IntValue);