[REQ]need 1 code

All Helbreath Server Source Discussion here.
Post Reply
Maldo
just visiting
Posts: 5
Joined: Fri Jun 02, 2006 7:13 pm

Post by Maldo »

hello i need this code plz /showdmg thx
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

Maldo wrote: hello i need this code plz /showdmg thx
no you don't
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

haha :D
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

lol
it shows dmg when you hit :P
<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' />
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

cmon now, i posted a portion of the older version here somewhere (it was in reply to something)

use the search or make it yourself :P
-><-
youth89
Loyal fan
Posts: 239
Joined: Sun Mar 07, 2004 8:57 pm

Post by youth89 »

Tafka12 wrote: lol
it shows dmg when you hit :P
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.
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

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

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;
  	}
well theres what you asked for, ill let you deal with the rest of the details yourself :P
-><-
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

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' />
Post Reply