[snippet]Distance Sizable Boxes ESP
Code:
if(item.Boxes )
{
D3DXVECTOR3 xDistance = pPlayer->obj->origin - plocal->obj->origin;
D3DXVECTOR3 MyDistance = plocal->obj->origin - pPlayer->obj->origin ;
float xaDistance = D3DXVec3Length(&xDistance );
float MyaDistance = D3DXVec3Length(&MyDistance );
if(pPlayer->Team == plocal->Team )
{
Menu.DrawBox(Position.x-(10000/MyaDistance), Position.y- (35000/MyaDistance) , 50000/MyaDistance/6*2,50000/MyaDistance/3*2, D3DCOLOR_ARGB(0,0,0,0), D3DCOLOR_ARGB(255,0,0,255),pDevice );
}
if(pPlayer->Team != plocal->Team )
{
Menu.DrawBox(Position.x-(10000/MyaDistance), Position.y- (35000/MyaDistance) , 50000/MyaDistance/6*2,50000/MyaDistance/3*2, D3DCOLOR_ARGB(0,0,0,0), D3DCOLOR_ARGB(255,255,0,0),pDevice );
}
}
Credits :GodHack2(SpaceMarine) = Me(method,and distance calculating)
fatboy88(classes and pointers-ty)
i will add a screenshot when i go back on my pc

EDIT: it should pretty much look close to this

Uploaded with ImageShack.us
LOVE YOU
. Ok, thanks, I'm just confused why I am d/c'ing.