StuckRequest: fix death event
This commit is contained in:
parent
6ba9f4a319
commit
d539c84c3e
@ -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.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user