Alive List

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

Alive List

楼层直达
莎仕芘亞

ZxID:1171401

等级: 元老
猴岛国防部部长

举报 只看楼主 使用道具 楼主   发表于: 2007-07-25 0
for ogc 9.** hack base

Code:

// in HUD_Redraw:

if (cvar.alivelist)  { DrawAliveList(); }

//above hud_redraw

void DrawAliveList(void)
{
  ColorEntry *color;
  char tmpchar, *plname;
  int length, i, index;

  int alx = cvar.alivelist_x;
  int aly = cvar.alivelist_y;

  if (cvar.alivelist == 1)
      DrawHudString(alx,aly-16,122,122,222,"- Alive List (Enemies) -");
  else if (cvar.alivelist == 2)
      DrawHudString(alx,aly-16,122,122,222,"- Alive List (All Players) -");


  for (index=0,i=0;index<vPlayers.size();index++)
  {
      if (vPlayers[index].getAlive() && ( cvar.alivelist == 2 || (cvar.alivelist == 1 && isEnemy(index))))
      {
        plname = vPlayers[index].entinfo.name;

        length = strlen(plname);

        color = PlayerColor(index);

        if (!cvar.alivelist_size || length <= cvar.alivelist_size)
            DrawHudString(alx,aly + 15 * i,color->r,color->g,color->b,"%02d. %s", i + 1, plname);
        else
        {
            tmpchar = plname[cvar.alivelist_size];
            plname[cvar.alivelist_size] = 0;

            DrawHudString(alx, aly + 15 * i, color->r, color->g, color->b, "%02d. %s", i + 1, plname);

            plname[cvar.alivelist_size] = tmpchar;
        }

        i++;
      }
  }
}

//register the cvars in .cpp

  REGISTER_CVAR_INT( alivelist        ,1)
  REGISTER_CVAR_INT( alivelist_size      ,31)
  REGISTER_CVAR_INT( alivelist_x        ,900)
  REGISTER_CVAR_INT( alivelist_y        ,160)

//and in .h

int alivelist;
int alivelist_size;
int alivelist_x;
int alivelist_y;

10727465

ZxID:1237036

等级: 新兵
举报 只看该作者 沙发   发表于: 2007-08-02 0
杜绝0回复。。。
QWE6816855

ZxID:1226126

等级: 少校

举报 只看该作者 板凳   发表于: 2007-08-08 0
....为人民服务呀.ooooO.........( 路过Ooooo............
......)./....( 踩)....
.....(_/......)./.....
.............(_/......`
留下脚印送你祝福愿你快乐!
`````踩```踩``````踩```踩
`踩```````````踩``````````踩
踩`````````````````````````踩
踩````过过$```````踩
`踩```````````````````````踩
```踩``````记得看看`````踩
``````踩`````````````踩
`````````踩```````踩
`````````````(_尛
·.☆˙*.
☆˙ 、
☆.

  ★。
   ‘★.
      `★`˙·
         ˙★·``~~  QWE6816855转用
« 返回列表
发帖 回复