From ce4933d1248773e17c90f1c35f5635c613a157f8 Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 2 Jul 2021 19:56:15 +0200 Subject: [PATCH] fixed check if player has no previous time and added check for displaying a certain message --- RaceTimer/scripting/unloze_racetimer_redux.sp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/RaceTimer/scripting/unloze_racetimer_redux.sp b/RaceTimer/scripting/unloze_racetimer_redux.sp index 9ec015e7..254c412e 100644 --- a/RaceTimer/scripting/unloze_racetimer_redux.sp +++ b/RaceTimer/scripting/unloze_racetimer_redux.sp @@ -81,7 +81,10 @@ public void trigger_teleport(const char[] output, int entity_index, int client, { g_bHumansAllowedTime[client] = false; resetClientVectors(client); - PrintToChat(client, "Disabled timer due to potential teleport abuse, if this is wrong annoy jenz on discord"); + if (GetClientTeam(client) == 3) + { + PrintToChat(client, "Disabled timer due to potential teleport abuse, if this is wrong annoy jenz on discord"); + } } } } @@ -600,7 +603,7 @@ public void FinishedStageRaceZone(int client) { old_client_time = StringToFloat(g_csTime_record[client]); } - if (client_time >= old_client_time) + if (client_time >= old_client_time && old_client_time > 0.0) { return; }