怎样在作弊器里加上自动发言(菜鸟进)
如果你很想做一个自己的作弊器,并带上自己的版权发言,很简单,往下看吧
1. 先下载一个作弊器源码
2. 找到client.cpp这个文件
3. 打开文件(用记事本就可以),找到 void AtRoundStart(void) 这一段
大概内容是这样:
void AtRoundStart(void);
int ResetHUD(const char *pszName, int iSize, void *pbuf )
{
int retval;
updateLocalPlayer();
bBombIsPlanted=false;
if (iRounds) AtRoundStart();
iRounds++;
if (currentWeaponID == WEAPON_SG550 || currentWeaponID == WEAPON_G3SG1)
me.spread.brokentime = 0; // This catches all cases except when you buy one and than shoot some bullets and that buy another
retval = (*ResetHUDOrg)(pszName,iSize,pbuf);
return retval;
}
如果不一样,也都差不多
4. 加入发言
在 bBombIsPlanted=false;的下面填加如下内容:
cmd.exec("#say XXX Hook VX.X By XXX");
#say 的后面就是开局发言的内容
最后结果就是这样:
void AtRoundStart(void);
int ResetHUD(const char *pszName, int iSize, void *pbuf )
{
int retval;
updateLocalPlayer();
bBombIsPlanted=false;
cmd.exec("#say XXX Hook VX.X By XXX");
if (iRounds) AtRoundStart();
iRounds++;
if (currentWeaponID == WEAPON_SG550 || currentWeaponID == WEAPON_G3SG1)
me.spread.brokentime = 0; // This catches all cases except when you buy one and than shoot some bullets and that buy another
retval = (*ResetHUDOrg)(pszName,iSize,pbuf);
return retval;
}
当然也可以让它多长时间以后再次发言
cmd.exec("#say XXX Hook VX.X By XXX");
cmd.exec("later 5 #say download the hack from www.坑你点.com");
这样就是开局说一句" XXX Hook VX.X By XXX " 5秒钟后又说一句" download the hack from www.坑你点.com "