dphome
Well-known member
Info bar (PL: Status gry)
changes color depending on ping, shows useful information.
proxyIDirect3DDevice9.cpp here:
if not exists on samp.cpp:
getPlayerStreamedInfo() https://pastebin.com/QB22cwqa
getVehicleCount() https://pastebin.com/C5Ad8Cyt
getPlayerCount() https://pastebin.com/ni91GYQs
Screenshot:
changes color depending on ping, shows useful information.
proxyIDirect3DDevice9.cpp here:
Code:
if (g_Players && g_Players->pLocalPlayer && g_Players->pLocalPlayer->iIsActive && set.statusgry && !gta_menu_active())
{
char szInfo[256];
int ping = g_Players->iLocalPlayerPing;
uint32_t ping_color = D3DCOLOR_XRGB(200, 200, 0);
if (ping >= 91)
ping_color = D3DCOLOR_XRGB(200, 0, 0);
else if (ping >= 61 && ping < 91)
ping_color = D3DCOLOR_XRGB(200, 200, 0);
else if (ping < 61)
ping_color = D3DCOLOR_XRGB(0, 200, 0);
sprintf_s(szInfo, sizeof(szInfo), "%s[%d] [Score: %d] [Ping: %d] [Players: %d] [Vehicles: %d] [Server: %d]",
getPlayerName(g_Players->sLocalPlayerID), g_Players->sLocalPlayerID, g_Players->iLocalPlayerScore, g_Players->iLocalPlayerPing, getPlayerStreamedInfo(), getVehicleCount(), getPlayerCount());
pD3DFont->PrintShadow(pPresentParam.BackBufferWidth - pD3DFont->DrawLength(szInfo) - 5, pPresentParam.BackBufferHeight - pD3DFont->DrawHeight() - 25, ping_color, szInfo);
updateScoreboardData();
if not exists on samp.cpp:
getPlayerStreamedInfo() https://pastebin.com/QB22cwqa
getVehicleCount() https://pastebin.com/C5Ad8Cyt
getPlayerCount() https://pastebin.com/ni91GYQs
Screenshot:
Last edited: