StuckRequest: fix death event

This commit is contained in:
dogan 2020-07-30 11:19:13 +02:00
parent 6ba9f4a319
commit d539c84c3e

View File

@ -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.");