From c0e0492a7b743a7735e34e65d35fa78f435f1c08 Mon Sep 17 00:00:00 2001 From: Dogan Date: Fri, 9 Aug 2019 20:02:22 +0200 Subject: [PATCH] Extend: add chat print + no closehandle --- Extend/scripting/Extend.sp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Extend/scripting/Extend.sp b/Extend/scripting/Extend.sp index 442bcca4..6ea08cf5 100644 --- a/Extend/scripting/Extend.sp +++ b/Extend/scripting/Extend.sp @@ -80,13 +80,13 @@ public void OnPluginStart() if(!(g_pGameOver = GameConfGetAddress(hGameConf, "GameOver"))) { g_bGameOver = false; - CloseHandle(hGameConf); + delete hGameConf; LogError("Couldn't get GameOver address from game config! GameOver cancel disabled."); return; } g_bGameOver = true; - CloseHandle(hGameConf); + delete hGameConf; } public Action Command_Extend_Rounds(int client, int argc) @@ -249,6 +249,7 @@ public Action Command_Extend(int client, int argc) g_cvarMpTimeLimit.IntValue -= iMinutesToDeduct; LogAction(client, -1, "\"%L\" deducted \"%d\" minutes from \"mp_timelimit\"", client, iMinutesToDeduct); + PrintToChatAll("[SM] %N deducted %d minutes from the timelimit.", client, iMinutesToDeduct); return Plugin_Handled; } @@ -265,6 +266,7 @@ public Action Command_Extend(int client, int argc) CancelGameOver(); LogAction(client, -1, "\"%L\" added \"%d\" minutes to \"mp_timelimit\"", client, iMinutesToAdd); + PrintToChatAll("[SM] %N added %d minutes to the timelimit.", client, iMinutesToAdd); return Plugin_Handled; }