isfriends

社区服务
高级搜索
猴岛论坛CSGO反恐精英isfriends
发帖 回复
倒序阅读 最近浏览的帖子最近浏览的版块
1个回复

isfriends

楼层直达
我是c.c.a

ZxID:1323130

等级: 上士
举报 只看楼主 使用道具 楼主   发表于: 2008-01-31 0
— 本帖被 零点时尚 从 『 CS脚本发布区 』 移动到本区(2008-01-31) —
由css源码修改过来的cs1.6添加好友代码?感兴趣的有时间可看下!(保留了修改痕迹)
// Update player info for all players

void UpdatePlayerInfo()
{
  VecPlayers  iInfo;

    cl_entity_s  *ent = NULL;
//  IClientEntity  *pEnt = NULL;
   
    cl_entity_s  *retval = NULL;
//  C_BaseEntity  *pBase = NULL;

  vPlayers.clear();  // Delete old info
    cl_entity_s  *me = gEngfuncs.GetLocalPlayer();
//  IClientEntity *pMe = entitylist->GetClientEntity(engine->GetLocalPlayer());
// for(int i = 0; i < entitylist->NumberOfEntities(0); i++)
  for(int i = 0; i < cl_entity.Number(0); i++)
  {
    //pEnt = entitylist->GetClientEntity(i);
    ent = gEngfuncs.GetEntityByIndex(i);

    // We don't need to add ourselves
    if(ent && me && ent->entindex() != me->entindex())
    {
        retval = ent->GetEntityByIndex();

        // Is this a player?
        if(retval && retval->Player())
        {
          // Get and save player info
          if(gEngfuncs.GetPlayerInfo(i, &iInfo))
            vPlayers.push_back(iInfo);
C.C.A l**X**
我是c.c.a

ZxID:1323130

等级: 上士
举报 只看该作者 沙发   发表于: 2008-07-27 0
大家怎么没顶的啊
C.C.A l**X**
« 返回列表
发帖 回复