Experienced Elementalist
- Joined
- Oct 14, 2015
- Messages
- 293
- Reaction score
- 86
Hello, I hope this will serve as a base for you to improve more for free, and a simple system instead of numbers will be used image, and an idea that came to me a while ago and I ended up doing and this does not forget to leave credits when to use although this area has a lot of toxic people and that.
zcombatinterface.cpp
Credits: Me.
zcombatinterface.cpp
Code:
// Ping bar.
x = ITEM_XPOS[5];
int nIconSize = .8f * linespace * (float)MGetWorkspaceHeight();
float icony = itemy + (linespace - (float)nIconSize / (float)MGetWorkspaceHeight())*.5f;
if (pItem->nPing == 0 || pItem->nPing == 999)
{
BitmapRelative(pDC, x, texty, nIconSize + 4, nIconSize, MBitmapManager::Get("AgentPing01.tga"));
}
else if (pItem->nPing >= 250)
{
BitmapRelative(pDC, x, texty, nIconSize + 4, nIconSize, MBitmapManager::Get("AgentPing03.tga"));
}
else if (pItem->nPing >= 1)
{
BitmapRelative(pDC, x, texty, nIconSize + 4, nIconSize, MBitmapManager::Get("AgentPing05.tga"));
}
Credits: Me.
Attachments
You must be registered for see attachments list