[REQ]need 1 code
-
- Loyal fan
- Posts: 216
- Joined: Wed Apr 19, 2006 12:19 am
no you don'tMaldo wrote: hello i need this code plz /showdmg thx
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
lol
it shows dmg when you hit
it shows dmg when you hit

<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
I think I understand what he edging at.. perhaps he is talking about damage done to players, rather than monsters; opposed to the critical hit damage. Then again, I have not played a server seriously since 2.20, so I don't know much of what is comprehensive in the newer versions.Tafka12 wrote: lol
it shows dmg when you hit![]()
hes talking about a code i wrote for HB coup [ <a href='http://coup.ath.cx' target='_blank'>http://coup.ath.cx</a> ]
the hd on the server kicked the bucket last week so they are still rebuilding shit but thats not what this topic is about
well theres what you asked for, ill let you deal with the rest of the details yourself
the hd on the server kicked the bucket last week so they are still rebuilding shit but thats not what this topic is about
Code: Select all
void CGame::AdminOrder_ShowDamage(int iClientH)
{
char cStatMessage[80];
if (m_pClientList[iClientH] == NULL) return;
if(m_pClientList[iClientH]->m_iShowDamage == 1)
{
m_pClientList[iClientH]->m_iShowDamage = 0;
wsprintf(cStatMessage, "Command: ShowDamage Disabled");
}else{
m_pClientList[iClientH]->m_iShowDamage = 1;
wsprintf(cStatMessage, "Command: ShowDamage Enabled");
}
ShowClientMsg(iClientH, cStatMessage);
return;
}
void CGame::AdminOrder_ShowDamageLog(int iClientH)
{
char cStatMessage[80];
if (m_pClientList[iClientH] == NULL) return;
if(m_pClientList[iClientH]->m_iShowDamage == 2)
{
m_pClientList[iClientH]->m_iShowDamage = 0;
wsprintf(cStatMessage, "Command: ShowDamageLog Disabled");
}else{
m_pClientList[iClientH]->m_iShowDamage = 2;
wsprintf(cStatMessage, "Command: ShowDamageLog Enabled");
}
ShowClientMsg(iClientH, cStatMessage);
return;
}
Code: Select all
if (memcmp(cp, "/showdmglog", 11) == 0) {
AdminOrder_ShowDamageLog(iClientH);
return;
}
if (memcmp(cp, "/showdmg", 8) == 0) {
AdminOrder_ShowDamage(iClientH);
return;
}

-><-
OK Code posted, closed.
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />