From 5cc005f9c9763b96992a38d8cb02d5119252a0fe Mon Sep 17 00:00:00 2001 From: Dogan Date: Wed, 10 Apr 2019 20:15:43 +0200 Subject: [PATCH] hlstatsx_ze: add human solo win 500 points static --- hlstatsx/scripting/hlstatsx_ze.sp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hlstatsx/scripting/hlstatsx_ze.sp b/hlstatsx/scripting/hlstatsx_ze.sp index 361ad469..f3e3dd03 100644 --- a/hlstatsx/scripting/hlstatsx_ze.sp +++ b/hlstatsx/scripting/hlstatsx_ze.sp @@ -136,7 +136,13 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast { 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]; Format(sPlayerEvent, sizeof(sPlayerEvent), "ze_h_win_%d", g_cvarDifficultyHuman.IntValue);