Code:
//ViKiNGHook CSGO pEsp.
void ViKiNGHook::DrawLine(int x, int y, int xx, int yy, Color Draw)
{
pSurface->DrawSetColor(Draw);
pSurface->DrawLine(x, y, xx, yy);
}
void ViKiNGHook::CornerBox(int x, int y, int w, int h, Color Draw)
{
int bWidth = w;
int bHeight = h;
DrawLine(x, y, x, y + (bHeight / 5), Draw);
DrawLine(x, y, x + (bWidth / 5), y, Draw);
DrawLine(x + bWidth, y, x + bWidth - (bWidth / 5), y, Draw);
DrawLine(x + bWidth, y, x + bWidth, y + (bHeight / 5), Draw);
DrawLine(x, y + bHeight, x + (bWidth / 5), y + bHeight, Draw);
DrawLine(x, y + bHeight, x, y + bHeight - (bHeight / 5), Draw);
DrawLine(x + bWidth, y + bHeight, x + bWidth - (bWidth / 5), y + bHeight, Draw);
DrawLine(x + bWidth, y + bHeight, x + bWidth, y + bHeight - (bHeight / 5), Draw);
}
void ViKiNGHook::EdgedOutline(int x, int y, int w, int h, Color Draw) {
CornerBox(x - 1, y - 1, w + 2, h + 2, Color(0, 0, 0, 255));
CornerBox(x, y, w, h, Draw);
}