From d539c84c3e820b43ed47c6a3d216586c57429459 Mon Sep 17 00:00:00 2001 From: dogan Date: Thu, 30 Jul 2020 11:19:13 +0200 Subject: [PATCH] StuckRequest: fix death event --- StuckRequest/scripting/StuckRequest.sp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/StuckRequest/scripting/StuckRequest.sp b/StuckRequest/scripting/StuckRequest.sp index 03e616fe..54772fc2 100644 --- a/StuckRequest/scripting/StuckRequest.sp +++ b/StuckRequest/scripting/StuckRequest.sp @@ -59,7 +59,10 @@ public Action OnPlayerDeath(Event event, const char[] name, bool dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); - if(g_iStuckRequester == client) + char sWepName[64]; + GetEventString(event, "weapon", sWepName, sizeof(sWepName)); + + if(g_iStuckRequester == client && !StrEqual(sWepName, "knife")) { CPrintToChat(client, "{lightgreen}[StuckRequest]{yellow} You died while the Request was pending! Request aborted.");