Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Ping Bar.

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
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"));
        }
pctLi3T - Ping Bar. - RaGEZONE Forums

Credits: Me.
 

Attachments

You must be registered for see attachments list
Back
Top