Adding kills, deaths, and hs counters

社区服务
高级搜索
猴岛论坛CSGO反恐精英CS作弊器交流讨论Adding kills, deaths, and hs counters
发帖 回复
正序阅读 最近浏览的帖子最近浏览的版块
2个回复

Adding kills, deaths, and hs counters

楼层直达
作弊辅导员_h

ZxID:1019634

等级: 元老
定做作弊器
举报 只看楼主 使用道具 楼主   发表于: 2007-07-05 0
Adding kills, deaths, and hs counters
All this is is a way to add kills, deaths, and headshot counts. Its easy after apoc showed me how .

Here we go


Some globals :
Code:

int killer
int victim
int headshot
int kills
int deaths
int headshots
char *weaponname// leave like this


all set to zero.

Now move down to death message

Read the byes for killer, victim, headshot and the string for weapon name. Like so
Code:

killer = READ_BYTE();
weaponname = READ_STRING();


now we have the messages found now we allow to do the counters

Code:

if(killer = engfuncs->getlocalplayer()->index && victim != engfuncs->getlocalplayer()->index)
{
kills++
}
else if(victim==engfuncs->getlocalplayer()->index)
{
deaths++;
}
if(killer==engfuncs->getlocalplayer()->index && headshot==1)
{
headshots++;
}


Now in where you want to print it (drawonhud/hud_redraw)

Make an extern interger for kills,deaths, and headshots in whichever file you are printing it through(client source file)
and then print them...

Code:

DrawHudString(1,300,255,255,255," Kills : %d", kills)
密码被盗,请联系cscheat取回
winner888

ZxID:1060758

等级: 新兵
举报 只看该作者 板凳   发表于: 2007-07-08 0
不错
luizsantos

ZxID:1184209

等级: 少尉
举报 只看该作者 沙发   发表于: 2007-07-08 0
a
« 返回列表
发帖 回复