BossHP: limit cash gain to sm_maxcash
This commit is contained in:
parent
065941b8e3
commit
473abce62e
@ -84,6 +84,9 @@ public void OnBossDamaged(CBoss Boss, CConfig Config, int client, float damage)
|
||||
if (!IsValidClient(client))
|
||||
return;
|
||||
|
||||
int iMaxCash = GetConVarInt(FindConVar("sm_maxcash"));
|
||||
|
||||
if(!(GetEntProp(client, Prop_Send, "m_iAccount") >= iMaxCash))
|
||||
SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount") + 2);
|
||||
|
||||
bool bBreakable;
|
||||
|
Loading…
Reference in New Issue
Block a user