diff --git a/BossHP/scripting/BossHP_Ranking.sp b/BossHP/scripting/BossHP_Ranking.sp index 349b9b43..b6f2784f 100644 --- a/BossHP/scripting/BossHP_Ranking.sp +++ b/BossHP/scripting/BossHP_Ranking.sp @@ -84,7 +84,10 @@ public void OnBossDamaged(CBoss Boss, CConfig Config, int client, float damage) if (!IsValidClient(client)) return; - SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount") + 2); + 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; CConfig _Config = view_as(Config);