diff --git a/CashManager/scripting/CashManager.sp b/CashManager/scripting/CashManager.sp index 33e4d5b1..c18964b4 100644 --- a/CashManager/scripting/CashManager.sp +++ b/CashManager/scripting/CashManager.sp @@ -232,7 +232,15 @@ public Action EventHook_PlayerDeath(Event hEvent, const char[] sEventName, bool g_iCash[client] = GetEntProp(client, Prop_Send, "m_iAccount"); - if (!IsValidClient(attacker) || !ZR_IsClientHuman(attacker)) + char sWeapon[16]; + hEvent.GetString("weapon", sWeapon, sizeof(sWeapon)); + + if(!IsValidClient(attacker)) + return Plugin_Continue; + + if(ZR_IsClientZombie(attacker) && StrEqual(sWeapon, "knife", true) && !(GetEntProp(attacker, Prop_Send, "m_iAccount") >= g_cvarMaxCash.IntValue)) //nemesis kill + SetEntProp(attacker, Prop_Send, "m_iAccount", GetEntProp(attacker, Prop_Send, "m_iAccount") + g_cvarInfectionGain.IntValue); + else if(ZR_IsClientZombie(attacker)) // regular infection return Plugin_Continue; int iPacked = (attacker<<16) | (GetEntProp(attacker, Prop_Send, "m_iAccount")&0xFFFF);