VOID EspHacks(LPDIRECT3DDEVICE9 pDevice)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if ( dwPlayerPtr != 0 )
{
for (INT MaxPlayer = 0; MaxPlayer < 32; MaxPlayer++)
{
D3DXVECTOR3 PlayerView(p_Player->pGlobal[MaxPlayer]->ViewX,p_Player->pGlobal[MaxPlayer]->ViewY,p_Player->pGlobal[MaxPlayer]->ViewZ),EspView;
if(GetScreenCoordFromWorld(pDevice,EspView,PlayerV iew))
{
if ( GetGlobalInfo(MaxPlayer)->Health > 0 )
{
if ( p_Player->pGlobal[MaxPlayer]->ViewX != 0 && p_Player->pGlobal[MaxPlayer]->ViewZ != 0 )
{
if ( cEsp.CH_EspTeam )
{
char chTeam[100];
if ( GetGlobalInfo(MaxPlayer)->Team == 1 )
sprintf(chTeam,"<= Team: N.I.U =>");
else if ( GetGlobalInfo(MaxPlayer)->Team == 0 )
sprintf(chTeam,"<= Team: Derberan =>");
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,C yan,DT_CENTER,chTeam);
EspView.y += 12;
}
if ( cEsp.CH_EspPremium )
{
char chPremium[100];
if ( GetGlobalInfo(MaxPlayer)->Premium == 0 )
sprintf(chPremium,"<= Premium: Free =>");
else if ( GetGlobalInfo(MaxPlayer)->Premium == 1 )
sprintf(chPremium,"<= Premium: Bronce =>");
else if ( GetGlobalInfo(MaxPlayer)->Premium == 2 )
sprintf(chPremium,"<= Premium: Silver =>");
else if ( GetGlobalInfo(MaxPlayer)->Premium == 3 )
sprintf(chPremium,"<= Premium: Gold =>");
else if ( GetGlobalInfo(MaxPlayer)->Premium == 4 )
sprintf(chPremium,"<= Premium: Platinum =>");
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,G reen,DT_CENTER,chPremium);
EspView.y += 12;
}
if ( cEsp.CH_EspHealth )
{
char chHealth[100];
sprintf(chHealth,"<= Health: %d =>",GetGlobalInfo(MaxPlayer)->Health/10);
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,R ed,DT_CENTER,chHealth);
EspView.y += 12;
}
if ( cEsp.CH_EspPing )
{
char chPing[100];
sprintf(chPing,"<= Ping: %i =>",GetGlobalInfo(MaxPlayer)->Ping);
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,O range,DT_CENTER,chPing);
EspView.y += 12;
}
if ( cEsp.CH_EspIp )
{
char chIp[100];
sprintf(chIp,"<= Ip: %s =>",GetGlobalInfo(MaxPlayer)->Ip);
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,B lue,DT_CENTER,chIp);
EspView.y += 12;
}
if ( cEsp.CH_EspName )
{
char chTeam[100];
sprintf(chTeam,"<= Name: %s =>",GetGlobalInfo(MaxPlayer)->Name);
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,Y ellow,DT_CENTER,chTeam);
EspView.y += 12;
}
if ( cEsp.CH_EspFlags )
{
char chFlags[100];
sprintf(chFlags,"<= Flags: %i =>",GetGlobalInfo(MaxPlayer)->Flags);
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,G reen,DT_CENTER,chFlags);
EspView.y += 12;
}
if ( cEsp.CH_EspKills )
{
char chKills[100];
sprintf(chKills,"<= Kills: %i =>",GetGlobalInfo(MaxPlayer)->Kills);
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,R ed,DT_CENTER,chKills);
EspView.y += 12;
}
if ( cEsp.CH_EspDeaths )
{
char chDeaths[100];
sprintf(chDeaths,"<= Deaths: %i =>",GetGlobalInfo(MaxPlayer)->Deaths);
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,B lue,DT_CENTER,chDeaths);
EspView.y += 12;
}
if ( cEsp.CH_EspClass )
{
char chClass[100];
switch ( GetGlobalInfo(MaxPlayer)->Class )
{
case 0: sprintf(chClass,"<= Class: Enginer =>"); break;
case 1: sprintf(chClass,"<= Class: Medic =>"); break;
case 2: sprintf(chClass,"<= Class: Sniper =>"); break;
case 3: sprintf(chClass,"<= Class: Assault =>"); break;
case 4: sprintf(chClass,"<= Class: Heavy =>"); break;
}
UDBase.DrawGameTextPixelFlag(EspView.x,EspView.y,O range,DT_CENTER,chClass);
EspView.y += 12;
}
if(cEsp.CH_EspBoxes)
{
UDBase.DrawBox((int)(EspView.x),(int)(EspView.y+10 ),170,35,Green,Orange,pDevice);
}
}
}
}
}
}
}
|