From 48d793437ac8ce2dc678c433c1d39004b53c1f50 Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 29 Apr 2023 13:41:32 +0200 Subject: [PATCH] added more print messages --- RaceTimer/scripting/unloze_racetimer_redux.sp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/RaceTimer/scripting/unloze_racetimer_redux.sp b/RaceTimer/scripting/unloze_racetimer_redux.sp index 9f03b47d..c9203ae3 100755 --- a/RaceTimer/scripting/unloze_racetimer_redux.sp +++ b/RaceTimer/scripting/unloze_racetimer_redux.sp @@ -394,6 +394,7 @@ public void Event_RoundStart(Handle event, const char[] name, bool dontBroadcast if (l_iZoneCount == 1 && race_zone_count == 1) { g_bHumansAllowedTime[i] = true; + PrintToChat(i, "Started timer: There is only a finish zone"); g_fStartTime[i] = GetEngineTime(); mysql_get_player_time(i, 0); } @@ -714,8 +715,11 @@ public void CheckIfSpecialRoundZones(char[] resultstart, char[] resultend) //---------------------------------------------------------------------------------------------------- public void CheckifAntiZones(int client, bool reset) { - if (reset) - g_bHumansAllowedTime[client] = false; + if (reset) + { + g_bHumansAllowedTime[client] = false; + PrintToChat(client, "Disabled Timer due to using illegal shortcut"); + } } //---------------------------------------------------------------------------------------------------- // Purpose: