write switch

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

write switch

楼层直达
作弊辅导员_h

ZxID:1019634

等级: 元老
定做作弊器
举报 只看楼主 使用道具 楼主   发表于: 2007-07-03 0

Well for instance .. if you wanted to create a CVAR in a hack in the public sources around here... heres an example

PHP:--------------------------------------------------------------------------------
You just add the desired cvar name next to 'cvar.'
//========
if (cvar.aswitch == 1) {
  cmd.exec("alias sigswitch #slot2");
 else {
 cmd.exec("alias sigswitch");
 }
}
//=========

Once you write your code like that you need to register it in the 'CVARList'. This can be located in the cvar.cpp & cvar.h..
IN CVAR.CPP
                cvarname , default value
//=========
REGISTER_CVAR_INT( aswitch ,1)
//=========

IN CVAR.H
//=========
int aswitch;
//=========

密码被盗,请联系cscheat取回
« 返回列表
发帖 回复