⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 write switch.txt

📁 * first open client.cpp and search for that USER_MSG_INTERCEPT(TeamInfo) over it u add this
💻 TXT
字号:
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;
//=========

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -