Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DoEsp(LPDIRECT3DDEVICE9 pDevice)
- {
- DWORD dwPlayerPtr = *(DWORD*)(ADR_PLAYERPOINTER);
- if (dwPlayerPtr !=0 ){
- for(int i = 0; i < 32; i++)
- {
- if(!g_pBase->pGlobal || !g_pBase->pLocal) break;
- CPlayerInfo* pInfo = GetPlayerInfoByIndex(i);
- CPlayer* pPlayer = g_pBase->pGlobal[i];
- if(pInfo && pPlayer)
- {
- CPlayerInfo *pLocalInfo = GetPlayerInfoByIndex(g_pBase->pLocal->bIndex);
- D3DXVECTOR3 PlayerView(g_pBase->pGlobal[i]->pos1,g_pBase->pGlobal[i]->pos2,g_pBase->pGlobal[i]->pos3),EspView;
- if (espn)
- {
- if (GetScreenCoordFromWorld(pDevice,EspView,PlayerView))//ur forgetting something..
- {
- if (espenable)
- {
- if(AL_EspEnemyOnly && pInfo->iHealth > 0 && pInfo->bTeam != pLocalInfo->bTeam)
- {
- WarESP = D3DCOLOR_ARGB(255,000,191,255);
- }
- else
- {
- WarESP = D3DCOLOR_ARGB(255,255,000,000);
- }
- if( espn )
- {
- char szname[60];
- sprintf(szname,"Name: %s",pInfo->szNickName);
- DrawTextC(EspView.x-50,EspView.y-130, WarESP,szname,g_pFont);
- EspView.y += 12;
- }
- }}
- }}
- }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement