Kiruku wrote: this code is useless anyways... a command is better i think... "i have 900 rep but what does this 0RepCandy?" "Eat it" "NOOO MY REP = 0 BYE SERVER" it should have rep lower then 0 then it goes back to 0... he setted the limit to < 10000 rep coz if u get higher then 10000 rep your rep gets to 0 anyways.... its coded into hg. if u dont edit it
just change: (there are a few of these around to replace)
Code: Select all
if (m_pClientList[sAttackerH]->m_iRating < -10000) m_pClientList[sAttackerH]->m_iRating = -10000;
to
Code: Select all
if (m_pClientList[sAttackerH]->m_iRating < 0) m_pClientList[sAttackerH]->m_iRating = 0;
just change (several places for these too)
Code: Select all
if (m_pClientList[iClientH]->m_iRating > 10000) m_pClientList[iClientH]->m_iRating = 0;
to
Code: Select all
if (m_pClientList[iClientH]->m_iRating > 10000) m_pClientList[iClientH]->m_iRating = 10000;
also in the function
Code: Select all
void CGame::___RestorePlayerRating(int iClientH)
replace
Code: Select all
if (m_pClientList[iClientH]->m_iRating < -10000) m_pClientList[iClientH]->m_iRating = 0;
if (m_pClientList[iClientH]->m_iRating > 10000) m_pClientList[iClientH]->m_iRating = 0;
with
Code: Select all
if (m_pClientList[iClientH]->m_iRating < 0) m_pClientList[iClientH]->m_iRating = 0;
if (m_pClientList[iClientH]->m_iRating > 10000) m_pClientList[iClientH]->m_iRating = 10000;
<i>"Always write good code. Feel bad to write bad code."</i>