📄 write switch.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 + -