headshot+++counterCS

社区服务
高级搜索
猴岛论坛CSGO反恐精英CS作弊器交流讨论headshot+++counterCS
发帖 回复
倒序阅读 最近浏览的帖子最近浏览的版块
0个回复

headshot+++counterCS

楼层直达
cheetahcs

ZxID:1226181

等级: 中校
Amazing......
举报 只看楼主 使用道具 楼主   发表于: 2007-07-11 0
headshot+++counterCS

<pre>All this is is a way to add kills, deaths, and headshot counts. Its easy after apoc showed me how <img class="inlineimg" title="Stick Out Tongue" alt="" src="file:///E:/Upan/tutus/hs%20counter_files/tongue.gif" border="0"/>.

Here we go


Some globals :
<div style="MARGIN: 5px 20px 20px;"><div class="smallfont" style="MARGIN-BOTTOM: 2px;">Code:</div><pre class="alt2" style="BORDER-RIGHT: 1px inset; PADDING-RIGHT: 6px; BORDER-TOP: 1px inset; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; MARGIN: 0px; OVERFLOW: auto; BORDER-LEFT: 1px inset; WIDTH: 640px; PADDING-TOP: 6px; BORDER-BOTTOM: 1px inset; HEIGHT: 146px;"><div dir="ltr" style="TEXT-ALIGN: left;">
int killer
int victim
int headshot
int kills
int deaths
int headshots
char *weaponname  // leave like this</div></pre></div>

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
<div style="MARGIN: 5px 20px 20px;"><div class="smallfont" style="MARGIN-BOTTOM: 2px;">Code:</div><pre class="alt2" style="BORDER-RIGHT: 1px inset; PADDING-RIGHT: 6px; BORDER-TOP: 1px inset; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; MARGIN: 0px; OVERFLOW: auto; BORDER-LEFT: 1px inset; WIDTH: 640px; PADDING-TOP: 6px; BORDER-BOTTOM: 1px inset; HEIGHT: 66px;"><div dir="ltr" style="TEXT-ALIGN: left;">
killer = READ_BYTE();
weaponname = READ_STRING(); </div></pre></div>

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

<div style="MARGIN: 5px 20px 20px;"><div class="smallfont" style="MARGIN-BOTTOM: 2px;">Code:</div><pre class="alt2" style="BORDER-RIGHT: 1px inset; PADDING-RIGHT: 6px; BORDER-TOP: 1px inset; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; MARGIN: 0px; OVERFLOW: auto; BORDER-LEFT: 1px inset; WIDTH: 640px; PADDING-TOP: 6px; BORDER-BOTTOM: 1px inset; HEIGHT: 226px;"><div dir="ltr" style="TEXT-ALIGN: left;">
if(killer  = engfuncs-&gt;getlocalplayer()-&gt;index && victim != engfuncs-&gt;getlocalplayer()-&gt;index)
{
 kills++
}
else if(victim==engfuncs-&gt;getlocalplayer()-&gt;index)
{
 deaths++;
}
if(killer==engfuncs-&gt;getlocalplayer()-&gt;index && headshot==1)
{
 headshots++;
}</div></pre></div>

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...

<div style="MARGIN: 5px 20px 20px;"><div class="smallfont" style="MARGIN-BOTTOM: 2px;">Code:</div><pre class="alt2" style="BORDER-RIGHT: 1px inset; PADDING-RIGHT: 6px; BORDER-TOP: 1px inset; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; MARGIN: 0px; OVERFLOW: auto; BORDER-LEFT: 1px inset; WIDTH: 640px; PADDING-TOP: 6px; BORDER-BOTTOM: 1px inset; HEIGHT: 50px;"><div dir="ltr" style="TEXT-ALIGN: left;">
DrawHudString(1,300,255,255,255," Kills : %d", kills)</div></pre></div></pre>

WE COME HARDER,YOU GO PRO.
« 返回列表
发帖 回复