I decided to release a userfinder box smile.gif
So Enjoy wink.gif
Code :
Code:
Include voids :
RECT rect6;
void DrawTextL(float x,float y,DWORD color,char *text,ID3DXFont *font)
{
SetRect( &rect6, x, y, x , y );
font->DrawTextA(NULL,text,-1,&rect6,DT_LEFT|DT_NOCLIP,color);
}
void DrawBox1(LPDIRECT3DDEVICE9 pDevice , int x, int y, int w, int h, DWORD Color)
{
D3DRECT rec;
rec.x1 = x;
rec.x2 = x + w;
rec.y1 = y;
rec.y2 = y + h;
pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, Color, 0, 0 );
}
void DrawBox( int x, int y, int w, int h, D3DCOLOR Color,LPDIRECT3DDEVICE9 pDevice)
{
struct Vertex {
float x,y,z,ht;
DWORD Color;
};
Vertex V[4];
V[0].Color = V[1].Color = V[2].Color = V[3].Color = Color;
V[0].z = V[1].z = V[2].z = V[3].z = 0.0f;
V[0].ht = V[1].ht = V[2].ht = V[3].ht = 0.0f;
V[0].x = V[1].x = (float)x;
V[0].y = V[2].y = (float)(y + h);
V[1].y = V[3].y = (float)y;
V[2].x = V[3].x = (float)(x + w);
pDevice->SetTexture(0, NULL);
pDevice->SetFVF(D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1);
pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Vertex));
}
void DrawRectangle(int x, int y, int w, int h, int s, DWORD Color, LPDIRECT3DDEVICE9 pDevice)
{
DrawBox1(pDevice, x, y, w, s, Color );
DrawBox1(pDevice, x, y, s, h, Color );
DrawBox1(pDevice, (x+w), y, s, h, Color );
DrawBox1(pDevice, x, (y+h), w+s, s, Color );
}
In myPresent :
/*Author : Dr.Php ~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*~~~~~UserFinder Box Written By Dr.Php~~~~~*/
/*Copyrights www.hacklions.com~~~~~~~~~~~~~~*/
/*~~~~~Do not Leech this without my Permission~~~~~*/
/*~~~~~<<<<<<<<<<<<<<<Enjoy>>>>>>>>>>>>>>>>>>>~~~~~*/
if (CH_UserFindBox && Mvisible)
{
if (CH_UserFindBox)
{
int Docter;
Docter =(CH_UserFindBox -1);
DWORD ADR_USERD3D = (ADR_D3DNAME + (STRUCTERSIZEOFPLAYER * Docter ) );
DWORD ADR_USERIPS = (ADR_D3DIP + (STRUCTERSIZEOFPLAYER * Docter ) );
DWORD ADR_USERHEALTH = (ADR_USERHP +(STRUCTERSIZEOFPLAYER * Docter));
sprintf(D3DUser,"%s",(ADR_USERD3D));
sprintf(D3DIP,"%s",(ADR_USERIPS));
sprintf(D3DHealth,"Update Addie",(ADR_USERHEALTH));
}
else
{
sprintf(D3DUser,"----");
sprintf(D3DIP,"----");
sprintf(D3DHealth,"----");
}
DrawBox(560,60,130,80,RedLighted,pDevice); // Change to ur own color (If u don't have)
DrawRectangle(560,60,130,80,1,Skyblue,pDevice); // Change to ur own color (If u don't have)
/*[-------------------------------------------]*/
DrawBox(560,30,130,25,RedLighted,pDevice); // Change to ur own color (If u don't have)
DrawRectangle(560,30,130,25,1,Skyblue,pDevice); // Change to ur own color (If u don't have)
DrawTextL(600,35,Skyblue,("UserFinder"),m_pFont); // Change to ur own color (If u don't have)
DrawTextL(575,65,textWhite,("Name :"),m_pFont); // Change to ur own color (If u don't have)
DrawTextL(615,65,textWhite,(D3DUser),m_pFont); // Change to ur own color (If u don't have)
DrawTextL(575,77,textWhite,("IP :"),m_pFont); // Change to ur own color (If u don't have)
DrawTextL(600,77,textWhite,(D3DIP),m_pFont); // Change to ur own color (If u don't have)
DrawTextL(575,89,textWhite,("Health :"),m_pFont); // Change to ur own color (If u don't have)
DrawTextL(620,89,textWhite,(D3DHealth),m_pFont); // Change to ur own color (If u don't have)
}






