Ich benutze die Source, meines wissens ist alles Updatet...
Code:
VOID EspHacks(LPDIRECT3DDEVICE9 pDevice)
{
DWORD PTR_PLAYER = *(DWORD*)ADR_PLAYERPOINTER;
if ( PTR_PLAYER != 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,PlayerView))
{
if ( GetGlobalInfo(MaxPlayer)->Health > 0 )
{
if( cEsp.CH_EnemyOnly )
{
if ( p_Player->pGlobal[MaxPlayer]->ViewX != 0 && p_Player->pGlobal[MaxPlayer]->ViewZ != 0 )
{
if(IsAnEnemy(MaxPlayer))
{
if ( cEsp.CH_EspName )
{
char chTeam[100];
sprintf(chTeam,"Name: %s",GetGlobalInfo(MaxPlayer)->name);
if(GetGlobalInfo(GetLocalInfo())->team != GetGlobalInfo(MaxPlayer)->team)
pMenu->DrawTextR(EspView.x,(EspView.y-100),RED,chTeam,pFont);
else
pMenu->DrawTextR(EspView.x,(EspView.y-100),GREEN,chTeam,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspTeam )
{
char chTeam[100];
if ( GetGlobalInfo(MaxPlayer)->team == 1 )
sprintf(chTeam,"Team: NIU");
else if ( GetGlobalInfo(MaxPlayer)->team == 0 )
sprintf(chTeam,"Team: DERBERAN");
pMenu->DrawTextR(EspView.x,(EspView.y-100),YELLOW,chTeam,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspPremium )
{
char chPremium[100];
if ( GetGlobalInfo(MaxPlayer)->Premium == 0 )
sprintf(chPremium,"Premium: Free2Play");
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");
pMenu->DrawTextR(EspView.x,(EspView.y-100),BLUE,chPremium,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspHealth == 1)
{
char chHealth[100];
sprintf(chHealth,"Health: %d ",GetGlobalInfo(MaxPlayer)->Health/10);
pMenu->DrawTextR(EspView.x,(EspView.y-100),RED,chHealth,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspPing )
{
char chPing[100];
sprintf(chPing,"Ping: %i",GetGlobalInfo(MaxPlayer)->ping);
pMenu->DrawTextR(EspView.x,(EspView.y-100),WHITE,chPing,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspIp )
{
char chIp[100];
sprintf(chIp,"IP: %s",GetGlobalInfo(MaxPlayer)->ip);
pMenu->DrawTextR(EspView.x,(EspView.y-100),BLUE,chIp,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspFlags )
{
char chFlags[100];
sprintf(chFlags,"Flag: %i",GetGlobalInfo(MaxPlayer)->flags);
pMenu->DrawTextR(EspView.x,(EspView.y-100),ORANGE,chFlags,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspKills )
{
char chKills[100];
sprintf(chKills,"Kills: %i",GetGlobalInfo(MaxPlayer)->kills);
pMenu->DrawTextR(EspView.x,(EspView.y-100),PURPLE,chKills,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspDeaths )
{
char chDeaths[100];
sprintf(chDeaths,"Deaths: %i",GetGlobalInfo(MaxPlayer)->deaths);
pMenu->DrawTextR(EspView.x,(EspView.y-100),PURPLE,chDeaths,pFont);
EspView.y += 12;
}
if(cEsp.BoxWeight==0)
{
cEsp.xweight=0;
cEsp.xplaats=0;
}
if(cEsp.BoxWeight==1)
{
cEsp.xweight=30;
cEsp.xplaats=15;}
if(cEsp.BoxWeight==2)
{
cEsp.xweight=60;
cEsp.xplaats=30;
}
if(cEsp.BoxWeight==3)
{
cEsp.xweight=90;
cEsp.xplaats=45;}
if(cEsp.BoxWeight==4)
{
cEsp.xweight=120;
cEsp.xplaats=60;
}
if(cEsp.BoxHeight==0)
{
cEsp.yheight=0;cEsp.yplaats=0;
}
if(cEsp.BoxHeight==1)
{
cEsp.yheight=70;
cEsp.yplaats=70;
}
if(cEsp.BoxHeight==2)
{
cEsp.yheight=100;
cEsp.yplaats=100;
}
if(cEsp.BoxHeight==3)
{
cEsp.yheight=130;
cEsp.yplaats=130;
}
if(cEsp.BoxHeight==4)
{
cEsp.yheight=160;
cEsp.yplaats=160;
}
if( cEsp.CH_BoxEsp )
{
DrawRectangle2(pDevice,(float)EspView.x-cEsp.xplaats, (float)EspView.y-cEsp.yplaats,cEsp.xweight, cEsp.yheight, 1,YELLOW);
EspView.y += 12;
}
if( cEsp.CH_EspHealth == 2 )
{
int Red1,Green1;
Red1 = 255-((GetGlobalInfo(MaxPlayer)->Health/10)*2.55);
Green1 = (GetGlobalInfo(MaxPlayer)->Health/10)*2.55;
DrawBoxM(pDevice,(int)EspView.x-80, (int)EspView.y-115, 100, 5,D3DCOLOR_ARGB( 255 ,20, 20, 20));
DrawBoxM(pDevice,(int)EspView.x-80, (int)EspView.y-115, GetGlobalInfo(MaxPlayer)->Health/10, 5,D3DCOLOR_ARGB( 255, Red1, Green1, 0));
DrawRectangle2(pDevice,(int)EspView.x-80, (int)EspView.y-115,100, 5, 1,BLACK);
sprintf(szhealth,"%d HP\n ",(int)GetGlobalInfo(MaxPlayer)->Health/100);
pMenu->DrawTextC((int)EspView.x-100, (int)EspView.y-120,D3DCOLOR_ARGB(255,000,191,255), szhealth, pFont);
EspView.y += 24;
}
if ( cEsp.CH_EspClass )
{
char chClass[100];
switch ( GetGlobalInfo(MaxPlayer)->pclass )
{
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 Trooper"); break;
}
pMenu->DrawTextR(EspView.x,(EspView.y-100),PURPLE,chClass,pFont);
EspView.y += 12;
}
}
}}
else
{
if ( p_Player->pGlobal[MaxPlayer]->ViewX != 0 && p_Player->pGlobal[MaxPlayer]->ViewZ != 0 )
{ if ( cEsp.CH_EspName )
{
char chTeam[100];
sprintf(chTeam,"Name: %s",GetGlobalInfo(MaxPlayer)->name);
if(GetGlobalInfo(GetLocalInfo())->team != GetGlobalInfo(MaxPlayer)->team)
pMenu->DrawTextR(EspView.x,(EspView.y-100),RED,chTeam,pFont);
else
pMenu->DrawTextR(EspView.x,(EspView.y-100),GREEN,chTeam,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspTeam )
{
char chTeam[100];
if ( GetGlobalInfo(MaxPlayer)->team == 1 )
sprintf(chTeam,"Team: NIU");
else if ( GetGlobalInfo(MaxPlayer)->team == 0 )
sprintf(chTeam,"Team: DERBERAN");
pMenu->DrawTextR(EspView.x,(EspView.y-100),YELLOW,chTeam,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspPremium )
{
char chPremium[100];
if ( GetGlobalInfo(MaxPlayer)->Premium == 0 )
sprintf(chPremium,"Premium: Free2Play");
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");
pMenu->DrawTextR(EspView.x,(EspView.y-100),BLUE,chPremium,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspHealth == 1)
{
char chHealth[100];
sprintf(chHealth,"Health: %d ",GetGlobalInfo(MaxPlayer)->Health/10);
pMenu->DrawTextR(EspView.x,(EspView.y-100),RED,chHealth,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspPing )
{
char chPing[100];
sprintf(chPing,"Ping: %i",GetGlobalInfo(MaxPlayer)->ping);
pMenu->DrawTextR(EspView.x,(EspView.y-100),WHITE,chPing,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspIp )
{
char chIp[100];
sprintf(chIp,"IP: %s",GetGlobalInfo(MaxPlayer)->ip);
pMenu->DrawTextR(EspView.x,(EspView.y-100),BLUE,chIp,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspFlags )
{
char chFlags[100];
sprintf(chFlags,"Flag: %i",GetGlobalInfo(MaxPlayer)->flags);
pMenu->DrawTextR(EspView.x,(EspView.y-100),ORANGE,chFlags,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspKills )
{
char chKills[100];
sprintf(chKills,"Kills: %i",GetGlobalInfo(MaxPlayer)->kills);
pMenu->DrawTextR(EspView.x,(EspView.y-100),PURPLE,chKills,pFont);
EspView.y += 12;
}
if ( cEsp.CH_EspDeaths )
{
char chDeaths[100];
sprintf(chDeaths,"Deaths: %i",GetGlobalInfo(MaxPlayer)->deaths);
pMenu->DrawTextR(EspView.x,(EspView.y-100),PURPLE,chDeaths,pFont);
EspView.y += 12;
}
if(cEsp.BoxWeight==0)
{
cEsp.xweight=0;
cEsp.xplaats=0;
}
if(cEsp.BoxWeight==1)
{
cEsp.xweight=30;
cEsp.xplaats=15;}
if(cEsp.BoxWeight==2)
{
cEsp.xweight=60;
cEsp.xplaats=30;
}
if(cEsp.BoxWeight==3)
{
cEsp.xweight=90;
cEsp.xplaats=45;}
if(cEsp.BoxWeight==4)
{
cEsp.xweight=120;
cEsp.xplaats=60;
}
if(cEsp.BoxHeight==0)
{
cEsp.yheight=0;cEsp.yplaats=0;
}
if(cEsp.BoxHeight==1)
{
cEsp.yheight=70;
cEsp.yplaats=70;
}
if(cEsp.BoxHeight==2)
{
cEsp.yheight=100;
cEsp.yplaats=100;
}
if(cEsp.BoxHeight==3)
{
cEsp.yheight=130;
cEsp.yplaats=130;
}
if(cEsp.BoxHeight==4)
{
cEsp.yheight=160;
cEsp.yplaats=160;
}
if( cEsp.CH_BoxEsp )
{
DrawRectangle2(pDevice,(float)EspView.x-cEsp.xplaats, (float)EspView.y-cEsp.yplaats,cEsp.xweight, cEsp.yheight, 1,YELLOW);
EspView.y += 12;
}
if( cEsp.CH_EspHealth == 2 )
{
int Red1,Green1;
Red1 = 255-((GetGlobalInfo(MaxPlayer)->Health/10)*2.55);
Green1 = (GetGlobalInfo(MaxPlayer)->Health/10)*2.55;
DrawBoxM(pDevice,(int)EspView.x-80, (int)EspView.y-115, 100, 5,D3DCOLOR_ARGB( 255 ,20, 20, 20));
DrawBoxM(pDevice,(int)EspView.x-80, (int)EspView.y-115, GetGlobalInfo(MaxPlayer)->Health/10, 5,D3DCOLOR_ARGB( 255, Red1, Green1, 0));
DrawRectangle2(pDevice,(int)EspView.x-80, (int)EspView.y-115,100, 5, 1,BLACK);
sprintf(szhealth,"%d HP\n ",(int)GetGlobalInfo(MaxPlayer)->Health/100);
pMenu->DrawTextC((int)EspView.x-100, (int)EspView.y-120,D3DCOLOR_ARGB(255,000,191,255), szhealth, pFont);
EspView.y += 24;
}
if ( cEsp.CH_EspClass )
{
char chClass[100];
switch ( GetGlobalInfo(MaxPlayer)->pclass )
{
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 Trooper"); break;
}
pMenu->DrawTextR(EspView.x,(EspView.y-100),GREY2,chClass,pFont);
EspView.y += 12;
}
}
}
}
}
}
}}