client.cpp
find this: Code:
void hudDrawInfoTexts
somewhere in body add following: Code:
if(cvar.pr0hud)
{
PlayerInfo& r = vPlayers[me.ent->index];
int hudstats_x = cvar.stats_x;
int hudstats_y = cvar.stats_y;
ColorEntry* clr = colorList.get(5);
DrawHudString(hudstats_x,hudstats_y ,clr->r,clr->g,clr->b, "name of your hack");
DrawHudString(hudstats_x,hudstats_y+15 ,clr->r,clr->g,clr->b, "Kill$: [%d] H$: [%d] Percent: (%4.1f )",r.frags,me.headshots,me.hspercent);
DrawHudString(hudstats_x,hudstats_y+30 ,clr->r,clr->g,clr->b, "Spread: [%f]",me.spread.spreadvar);
net_status_s ns;
gEngfuncs.pNetAPI->Status(&ns);
static float ping = ns.latency * 1000;
static StopTimer pingTimer;
if(!pingTimer.running())
{
pingTimer.countdown(1);
ping = ns.latency * 1000;
}
//char tmp[255];
//sprintf(tmp, "Ping: %4.0f", ping);
ColorEntry* clrp = colorList.get(16);
DrawHudString(hudstats_x,hudstats_y+60 ,clr->r,clr->g,clr->b, "Ping: %4.0f", ping);
SYSTEMTIME SysTime;
GetLocalTime(&SysTime);
if (SysTime.wHour>12) SysTime.wHour-=12;
char* formatstring = "%d:%d:%d";
DrawHudString(hudstats_x,hudstats_y+45 ,clr->r,clr->g,clr->b, formatstring, SysTime.wHour, SysTime.wMinute,SysTime.wSecond);
GetLocalTime(&SysTime);
if(SysTime.wMonth==1)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"January");
}
if(SysTime.wMonth==2)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"February");
}
if(SysTime.wMonth==3)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"March");
}
if(SysTime.wMonth==4)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"April");
}
if(SysTime.wMonth==5)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"May");
}
if(SysTime.wMonth==6)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"June");
}
if(SysTime.wMonth==7)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"July");
}
if(SysTime.wMonth==8)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"August");
}
if(SysTime.wMonth==9)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"September");
}
if(SysTime.wMonth==10)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"October");
}
if(SysTime.wMonth==11)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"November");
}
if(SysTime.wMonth==12)
{
DrawHudString(hudstats_x+153,hudstats_y+45 ,clr->r,clr->g,clr->b,"December");
}
GetLocalTime(&SysTime);
if(SysTime.wDayOfWeek==1)
{
DrawHudString(hudstats_x+66,hudstats_y+45 ,clr->r,clr->g,clr->b,"Monday");
}
if(SysTime.wDayOfWeek==2)
{
DrawHudString(hudstats_x+66,hudstats_y+45 ,clr->r,clr->g,clr->b,"Tuesday");
}
if(SysTime.wDayOfWeek==3)
{
DrawHudString(hudstats_x+66,hudstats_y+45 ,clr->r,clr->g,clr->b,"Wednesday");
}
if(SysTime.wDayOfWeek==4)
{
DrawHudString(hudstats_x+66,hudstats_y+45 ,clr->r,clr->g,clr->b,"Thursday");
}
if(SysTime.wDayOfWeek==5)
{
DrawHudString(hudstats_x+66,hudstats_y+45 ,clr->r,clr->g,clr->b,"Friday");
}
if(SysTime.wDayOfWeek==6)
{
DrawHudString(hudstats_x+66,hudstats_y+45 ,clr->r,clr->g,clr->b,"Saturday");
}
if(SysTime.wDayOfWeek==0)
{
DrawHudString(hudstats_x+66,hudstats_y+45 ,clr->r,clr->g,clr->b,"Sunday");
}
}
you can costumize it to the way you want it by removing adding stuff
i don't have proper ping code so ur ping is gonna be different then they would be in your tab so if you want you can remove pointless code
Register your cvars!