CashManager: oops

This commit is contained in:
dogan 2020-08-16 23:12:34 +02:00
parent 473abce62e
commit cc1b809d93

View File

@ -248,9 +248,6 @@ public Action EventHook_RoundEnd(Event hEvent, const char[] sEventName, bool bDo
if(!IsValidClient(i))
continue;
if(g_iCash[i] == -1)
continue;
if(GetClientTeam(i) == CS_TEAM_CT && bAwardHumans && !(GetEntProp(i, Prop_Send, "m_iAccount") >= g_cvarMaxCash.IntValue))
{
SetEntProp(i, Prop_Send, "m_iAccount", GetEntProp(i, Prop_Send, "m_iAccount") + g_cvarHumanWinGain.IntValue);