本篇文章将基于cs1.6正盗版通用服务器rehlds搭建(linux环境)所架设的rehlds服务器的基础上,增加recsdm死亡竞技和yapb机器人插件。

环境需求

一台具有独立外网IP的服务器,可以租用阿里云或者腾讯云的,比较稳定,配置要求如下:

  • CPU:2核
  • 内存:4GB
  • 网络:1MB/s(支持10人),5MB/s支持(32人),建议选择2MB/s及以上的
  • 硬盘:10GB以上
  • 系统:linux(centos 7.5)

安装插件

安装recsdm

recsdm插件是兼容cs1.6增强版服务器rehlds的插件,安装很简单,先下载ReCSDM(汉化版),解压得到的configs、modules、plugins文件夹,全部上传到服务器的cstrike/addons/amxmodx目录下即可。

安装yapb

yapb是机器人插件,我们先下载yapb插件,解压得到的yapb文件夹上传到服务器的cstrike/addons目录,然后修改cstrike/addons/metamod/plugins.ini文件,在末尾另起一行,添加linux addons/yapb/yapb.so即可。

服务器和插件配置

需要配置的地方主要有几个地方,一个是server.cfg、game.cfg,以及recsdm和yapb的配置文件,这里给了部分汉化的内容,其他的类似cfg、ini、vdf、lst后缀的文件大家可以根据需要来进行配置。

server.cfg

位于cstrike/server.cfg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//--------------------------------------------★CS1.6服务器参数设置★------------------------------------------//
//--------------------------------------------★适用于HLDS、ReHLDS★------------------------------------------//
//--------------------------------------------------★终极篇★------------------------------------------------//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 定 制 人:毛毛的老公
// 定制时间:2022年7月1日
// 说明:
// 参数列表:http://txdv.github.io/cstrike-cvarlist/
// 本参数设置对官方和ReHLDS的参数进行了整合
// 包含针对sXe、Reunion等其他功能模块的参数设置
// 从提高执行效率角度,对默认参数项进行了说明并使用"//"标识注释,以方便查询,可根据需要取消"//"注释并修改参数
// 对可自定义修改的参数进行注释,同时给出参数建议设置
// 对官方和ReGameDLL的共性参数进行标注,并保证参数仅运行一次
// 对参数逐条进行了有效性测试
// 依据参数类型进行分区分类,依据重要程度以★作为标识
//-----------------------------------------------------------------------------------------------------------//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////

//---------------------------------------------★服务器启动显示信息★------------------------------------------//
//
echo ------======|:::★加载CS1.6服务器参数设置【HLDS(8684)+ReHLDS(3.11.0.776)】★:::|======------
//
//-----------------------------------------------------------------------------------------------------------//

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------★官方参数设置区★-------------------------------------------//
//-----------------------------------------------------------------------------------------------------------//
// 基本设置--自定义参数
hostname "村长死斗 自制地图循环" // ★★服务器名称(默认:"Half-Life dedicated server").
sv_contact "176367820@qq.com" // ★服务器联系信息.
// 基本设置--默认参数
//motdfile "motd.txt" // ★选择队伍前在窗口中显示文本的文件名(默认:"motd.txt").
//servercfgfile "server.cfg" // ★服务器启动时的基本配置文件(默认:"server.cfg").
//sv_password "" // 连接服务器密码.(默认:"")
//mapcyclefile "mapcycle.txt" // 地图列表文件,用于在 mp_timelimit 或获胜/回合数结束时自动更改地图(默认:"mapcycle.txt").
//max_queries_sec "3.0" // 每秒对客户端查询的次数(默认:"3.0").
//max_queries_sec_global "30" // 每秒允许的查询总数(默认:"30").
//max_queries_window "60" // 指定查询的时间段时长(秒)(默认:"60").
//pausable "0" // 是否允许服务器上使用pause键暂停(1 - 启用|0 - 禁止)(默认:"0").
//mapchangecfgfile "" // 换图时重新加载的配置文件(默认:"").
//humans_join_team "any" //是否限制玩家加入团队(any - 可选所有团队| ct - 仅限加入CT|t - 仅限加入T)(默认:any).

//-----------------------------------------------------------------------------------------------------------//
// Bans(如果没有amxbans、fb等封禁工具,则所有的封禁信息均从这些文件中加载)
exec banned.cfg // ★通过 steamid / wonid 加载封禁列表.
exec listip.cfg // ★通过 ip 加载封禁列表.

//-----------------------------------------------------------------------------------------------------------//
// HLTV 设置
//sv_proxies 1 // 能够将 HLTV 连接到服务器(1 - 是|0 -否)大于1时允许连接多个)(默认:1).

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------------------------------------//
// 连接速度设置--自定义参数
sv_lan_rate 20000 // ★★★★★如果服务器sv_lan 1,那么在这种模式下的客户端速率(以及sv_minrate和sv_maxrate)(默认:20000).
sys_ticrate 1100 // ★★★★★服务器最大FPS(默认:100)★.
sv_maxrate 100000 // ★★★★★服务器可以单独发送给每个客户端的最大值(默认:0)★.
// 仅针对互联网模式:即 sv_lan 0 生效.
// 版本5XXX以下服务器建议设置25000,61XX以上服务器设置为100000
sv_maxupdaterate 102 // ★★★★★服务器向客户端发送更新的最大频率(默认:30)★.
sv_minrate 20000 // ★★★★★服务器可以分别发送给每个客户端的最小值(默认:0)★.
sv_minupdaterate 30 // ★★★★★服务器向客户端发送更新的最小频率(默认:10).
// 连接速度设置--默认参数
//sv_lan 0 // LAN 模式 - 1 |Internet - 0(默认:0).
//sv_instancedbaseline 1 // 基线实例.节省网络负载(默认:1).

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------------------------------------//
// OP密码及密码保护设置--自定义参数
rcon_password "cz19900602" // ★★★★★服务器OP密码(默认:"").
// OP密码及密码保护设置--默认参数
//sv_rcon_banpenalty 0 // 输入错误OP密码的封禁时间(以分钟为单位)(默认:0 - 永久封禁)
//sv_rcon_maxfailures 10 // OP密码输入错误的次数(默认:10).
//sv_rcon_minfailures 5 // 在 sv_rcon_minfailuretime 指定时间内OP密码输入错误的累计次数上限,失败则封禁(默认:5).
//sv_rcon_minfailuretime 30 // 输入正确OP密码的时间(以秒为单位)(首次输入错误后在设定时间内需输入正确密码,否则封禁)(默认:30).

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------------------------------------//
// 服务器日志设置--自定义参数
// 如果要使用 HLStats 或 PsychoStats,建议保存以下设置
log on // ★★是否记录日志(on - 启用|off - 禁用).
sv_logbans 1 // ★★封禁日志(1 - 开启|0 - 关闭)(默认:0).
// 服务器日志设置--默认参数
//logsdir "logs" // 存放标准 HLDS LOG 文件的文件夹,位于 cstrike 文件夹下(默认:"logs").
//sv_log_onefile 0 // 将日志写入一个文件(默认:0).
//sv_log_singleplayer 0 // 激活后,特殊日志文件以单人模式保存(默认:0).
//sv_logblocks 0 // 是否创建连接请求失败日志(可能导致日志文件过大)(1 - 启用|0 - 禁用)(默认:0).
//sv_logrelay 0 // 是否切换日志 (1 - 启用|0 - 禁用)(默认:0).
//sv_logsecret 0 // 是否加密服务器日志 (1 - 启用|0 - 禁用)(默认:0).
//mp_logdetail 0 // 是否记录攻击信息日志(0 - 禁用|1 - 对手|2 - 自己|3 - 对手和自己)(默认:0).
//mp_logecho 1 // 服务器控制台中显示日志信息 (1 - 启用|0 - 禁用)(默认:1).
//mp_logfile 1 // 服务器日志写入文件(1 -启用|0 - 禁用)(默认:1).
//mp_logmessages 1 // 是否记录聊天消息(0 - 不记录|1 - 记录)(默认:1).

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------------------------------------//
// 语音设置--自定义参数
sv_alltalk 1 // ★★是否允许两队在比赛中互相交谈 (1 - 启用|0 - 禁用)(默认:0).
// 语音设置--默认参数
//sv_voiceenable 1 // 是否启用麦克风(1- 启用|0 - 禁用(默认:1).

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------------------------------------//
// 快速下载设置--自定义参数
sv_allowupload 0 // ★★是否允许客户端将喷图上传到服务器(1 - 允许|0 - 禁止)(默认:1).
sv_send_logos 0 // ★★是否允许服务器向客户端发送第三方标识(需要sv_allowdownload 1).(1 - 允许|0 - 禁止)(默认:1).
sv_downloadurl "" // ★★高速下载链接(可使用IIS、HFS等搭建下载服务器)(默认:"")http://w-04.wudics.com/cstrike/.
// 快速下载设置--默认参数
//sv_send_resources 1 // 是否允许服务器向客户端发送受保护的资源(1 - 允许|0 - 禁止)(默认:1).
//sv_allowdownload 1 // 是否允许客户端从服务器下载文件(1 - 允许|0 - 禁用)(默认:1).
//sv_allow_dlfile 1 // 是否允许下载文件.(如果设置为1且有sv_downloadurl,则跳转至高速下载链接下载(1 - 允许|0 - 禁止)(默认:1).
//hpk_maxsize 4 // 个性化文件custom.hpk的大小 (服务器上所有游戏喷图累计的大小(以M计算)(默认:4).
//sv_uploadmax 0.5 // 限制客户端喷图的最大大小(以M单位)(默认:0.5).

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------------------------------------//
// 延迟滞后补偿设置
//sv_unlag 1 // 是否允许对客户端进行延迟补偿,即允许cl_lc, cl_lw 和 cl_lb.(1 - 允许|0 - 禁止)(默认:1).
//sv_unlagpush 0.0 // 是否禁用服务器延迟补偿(1 - 开启|0 - 禁用)(默认:"0.0").
//sv_unlagsamples 1 // 计算客户端延迟的数据包(默认:1).
//sv_maxunlag 0.5 // 最大延迟补偿(每秒)(默认:0.5).

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------------------------------------//
// 运动、位移、加速度设置.
// 不建议修改
//sv_accelerate 5 // 玩家加速度(默认:5)
//sv_airaccelerate 10 // 跳跃/下落时的玩家速度(默认:10)
//sv_friction 4 // 地面摩擦力(默认:4).
//sv_gravity 800 // 重力 (默认:800).
//sv_maxspeed 320 // 最大移动速度(默认 320).
//sv_maxvelocity 2000 // 所有物体的最大移动速度(默认:2000)
//sv_spectatormaxspeed 500 // 观众的最大移动速度(默认:500).
//sv_stepsize 18 // 不跳跃时可行走的最高高度(默认:18).
//sv_stopspeed 75 // 地面上的最小停止速度(默认:75).
//sv_wateraccelerate 10 // 玩家在水中的加速度(默认:10).
//sv_waterfriction 1 // 水下的摩擦力(默认:1).

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------------------------------------//
// 其他设置
// 不建议修改
//sv_aim 0 // 是否启用自瞄(1 - 启用|0 - 禁用)(默认:0).
//sv_cheats 0 // 是否启用作弊模式(1 - 启用|0 - 禁用)(默认:0).
//sv_clienttrace 1 // 设置玩家命中框的大小(命中时,玩家受到伤害)(默认:1).
//sv_enableoldqueries 0 // 是否启用旧的查询类型(1 - 启用|0 - 禁用)(默认:0).
//sv_restart 0 // 重新启动游戏的延时时间(以秒计). (类似sv_restartround)(默认:0).
//sv_restartround 0 // 重新启动游戏的延时时间(以秒计). (与 sv_restart相同)(默认:0).
//sv_stats 1 // 是否启用服务器信息收集(统计). (1 - 启用|0 - 禁用)(默认:1).
//sv_timeout 60 // 客户端连接服务器的超时时限(以秒计)(默认:60).
//sv_visiblemaxplayers -1 // 服务器上可见玩家的数量, 设置为 -1 则自动计算玩家数量 (默认)(默认:-1).
//sv_wateramp 0 // 是否在有水的地图中显示波浪(默认:0)
//sv_skycolor_b 0 // 天空颜色(B)
//sv_skycolor_g 0 // 天空颜色(G)
//sv_skycolor_r 0 // 天空颜色(R)
//sv_skyname "" // 根据地图改变天空颜色.

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------------------------------------//
// 多人模式设置
// 定时器(时间设置).
//mp_buytime 0.25 // ★★每局购买武器装备时间(以分钟为单位)(默认:1.5 = 90秒)(game.cfg中已包含).
mp_roundtime 15 // ★★每回合的时间(以分钟为单位)(默认:5).
mp_c4timer 35 // ★★炸弹埋设后的爆炸时间(以秒为单位)(默认:45).
mp_freezetime 0 // ★★每回合开局冻结时间(以秒为单位)(默认:6).
//mp_chattime 10 // ★★地图加载前和结束后的通话时长(以秒为单位)(默认:10).
//mp_timelimit 20 // ★★每张地图的时间(以分钟为单位)(默认:20)(game.cfg中已包含)
// 自动平衡.
//mp_autoteambalance 0 // ★★是否启用自动团队平衡(1 - 启用|0 - 禁用)(默认:1)(game.cfg中已包含).
// ReGameDLL中game.cfg中已包含,如使用ReHLDS,则此处使用"//"注释
//mp_limitteams 2 // 一支队伍允许超过另一支队伍的玩家人数(默认:2).
// 自动断开与服务器的连接.
//mp_autokick 1 // 是否自动将长时间不动的玩家踢出服务器.(1 - 启用|0 - 禁用)(默认:"1").
//mp_autokick_timeout -1 // 玩家被踢出服务器的时间 (以秒为单位) (默认 -1).

//视角控制设置.
//mp_fadetoblack 0 // 是否死后黑屏(0 - |1 - 是)(默认:0).
mp_forcecamera 0 // ★★玩家死亡后的视角(与 mp_forcechasecam 完全相同,如果两者设置均不为0,则使用mp_forcechasecam).
//(0 - 全部视角|1 - 仅队友视角且不可自由观看|2 - 仅队友的主视角)(默认:0).
mp_forcechasecam 0 // 玩家死亡后的视角(0 - 全部视角|1 - 仅队友视角且不可自由观看|2 - 仅队友的主视角)(默认:0).
// 其他 (mp_cvar "*")--自定义参数
mp_flashlight 1 // ★★是否启用手电筒(1 - 启用|0 - 禁用)(默认:0).
mp_hostagepenalty 0 // ★★杀害人质达到设定数量后即自动被踢出服务器(默认:13).
mp_playerid 1 // ★★准星指向对手或队友时的信息显示(0 - 全部显示|1 - 仅显示队友|2 - 不显示)(默认:0).
mp_windifference 0 // ★★不同胜场的地图变化 (1 - (ТТ - 5 胜, СТ - 10 胜)|0 - 禁用))(默认:1).
// 其他 (mp_cvar "*")--默认参数
//mp_kickpercent 0.66 // 投票踢人所需达到的通过比率(默认:0.66).
//mp_mapvoteratio 0.66 // 投票换图所需达到的通过比率(默认:0.66).
//mp_consistency 1 // 客户端文件验证(默认:1).
//mp_footsteps 1 // 是否启用脚步声(1 - 启用|0 - 禁用)(默认:1).
//mp_friendlyfire 0 // 是否启用友军伤害(1 - 启用|0 - 禁用)(默认:0).
//mp_maxrounds 0 // 回合数达到设定值后自动更换地图(默认:0).
//mp_mirrordamage 0 // 是否队友伤害反噬(对队友不造成伤害,但自己会受伤)(0 - 否|1 - 是)(默认:0).
//mp_startmoney 850 // 回合开始的金钱数量(默认:800).
//mp_tkpunish 0 // 杀害队友惩罚(0 - 不惩罚|n - 杀害队友超过n人时下一回合自动死亡)(默认:0).
//mp_winlimit 0 // 一方团队获胜次数达到设定值时即更换地图(默认:0).

//-----------------------------------------------------------------------------------------------------------//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//--------------------------------------★ReHLDS(3.11.0.776)参数设置区★-------------------------------------//
//--------------------------------------★ReHLDS其他版本可参考下方参数设置★------------------------------------//
//-----------------------------------------------------------------------------------------------------------//

//listipcfgfile "listip.cfg" // 永久封禁IP文件(默认:listip.cfg).
//syserror_logfile "sys_error.log" // 系统错误日志文件. (默认:sys_error.log).
//sv_auto_precache_sounds_in_models 0 // 是否自动预缓存附加到模型的声音(0 - 否|1 - 是)(默认:0).
sv_delayed_spray_upload 1 // ★★是否进入游戏后而不是在连接时上传自定义喷图.提高了上传速度(0 - 否|1 - 是)(默认:0).
sv_echo_unknown_cmd 1 // ★★是否在控制台显示所执行的未知命令信息(0 - 否|1 - 是)(默认:0).

sv_force_ent_intersection 1 // ★★在第 3 方插件中,是否修复SOLID_SLIDEBOX实体卡住的错误(默认:0).
sv_rehlds_force_dlmax 1 // ★★是否强制客户端的 cl_dlmax 参数为1024,以避免了过多的数据包碎片(0 - 否|1 - 是)(默认:0).
sv_rehlds_hull_centering 0 // ★★是否使用模型中心而不是周边,以修复地图纹理中缺少实体的错误(0 - 否|1 - 是)(默认:0).
sv_rehlds_movecmdrate_max_avg 10000 // ★★客户端执行"clc_move"命令达到封禁时的最大平均级别(默认:1800).
sv_rehlds_movecmdrate_avg_punish -1 // ★★客户端执行"clc_move"命令超最大平均水平的玩家被封禁的时间 (0 - 永久封禁|使用负数代表踢出)(默认:5).
sv_rehlds_movecmdrate_max_burst 25000 // ★★客户端执行"clc_move"命令突发级别达到设定值后即被封禁(默认:5500).
sv_rehlds_movecmdrate_burst_punish -1 // ★★客户端执行"clc_move"命令达到突发级别设定值的玩家被封禁的时间 (0 - 永久封禁|使用负数代表踢出)(默认:5).

sv_rehlds_stringcmdrate_max_avg 10000 // ★★客户端执行"string"命令达到封禁时的最大平均级别(默认:250).
sv_rehlds_stringcmdrate_avg_punish -1 // ★★客户端执行"string"命令超最大平均水平的玩家被封禁的时间 (0 - 永久封禁|使用负数代表踢出)(默认:5).
sv_rehlds_stringcmdrate_max_burst 25000 // ★★客户端执行"string"命令突发级别达到设定值后即被封禁(默认:500).
sv_rehlds_stringcmdrate_burst_punish -1 // ★★客户端执行"string"命令达到突发级别设定值的玩家被封禁的时间 (0 - 永久封禁|使用负数代表踢出)(默认:5).
//sv_rehlds_userinfo_transmitted_fields "\name\model\*sid"
// setinfo 字段将从服务器传递给客户端.
// 如果未设置,则将传输所有字段(带下划线的前缀除外).
// 每个字段须以反斜杠为前缀,例如:"\name\model\*sid\*hltv\bottomcolor\topcolor".
// 字段定义查阅:https://github.com/dreamstalker/rehlds/wiki/Userinfo-keys.
// 默认: "" 即:传输所有字段
sv_rehlds_attachedentities_playeranimationspeed_fix 1 // ★★修复了当玩家有一些附加实体(aiments)时步态动画速度增加的错误,.
// 当 cl_updaterate 较低时,可能会导致动画滞后(默认:0)
//sv_rehlds_maxclients_from_single_ip 5 // 限制单个IP地址同时连接的数量, 不会影响已经连接的玩家(默认:5).
sv_rehlds_local_gametime 1 // ★★是否减少长时间运行一张地图时的"lags"(0 - 否|1 - 是)(默认:0).
//sv_use_entity_file 0 // 为地图使用自定义实体文件,实体文件的路径:"maps/[map name].ent".
// |0 - 使用原始实体. |1 - 使用maps目录下的.ent文件|2 - 使用maps目录下的.ent文件,如无文件则创建.ent文件(默认:0).
//sv_usercmd_custom_random_seed 0 // 启用后,服务器将独立于客户端建立附加模型(本意是减少反后座力作弊行为,但实际测试出现射击错误)(默认:0).
//sv_rehlds_send_mapcycle 0 // 是否在服务器信息中发送mapcycle.txt(HLDS行为,但在客户端上未使用(0 - 否|1 - 是)(默认:0).
//sv_rcon_condebug 1 // 是否启用OP密码使用信息(0 - 否|1 - 是)(默认:1).

//-----------------------------------------------------------------------------------------------------------//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
sv_region "3"

game.cfg

位于cstrike/game.cfg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//--------------------------------------------★ReGameDLL参数设置★-------------------------------------------//
//--------------------------------------------适用版本:5.21.0.546--------------------------------------------//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 定 制 人:毛毛的老公
// 定制时间:2022年7月1日
// 说明:
// 参数来源:https://github.com/s1lentq/ReGameDLL_CS
// 从提高执行效率角度,对默认参数项进行了说明并使用"//"标识注释,以方便查询,可根据需要取消"//"注释并修改参数
// 对可自定义修改的参数进行注释,同时给出参数建议设置
// 依据参数类型进行分区分类,依据重要程度以★作为标识
//-----------------------------------------------------------------------------------------------------------//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------★mp系列参数设置★------------------------------------------//
//
// 所有玩家均成为敌对方(FFA 模式)
// ReGameDLL个性参数
// 建议:死亡模式使用 1,其他模式使用 0
// 0 - 禁用
// 1 - 启用
// 默认: "0"
mp_freeforall "0"

// 是否进行团队自动平衡
// HLDS官方和ReGameDLL共性参数,ReGameDLL优先执行
// 建议:比赛模式使用 0 ,混战模式使用 1 或 2
// 0 - 关闭
// 1 - 下一回合开始后开启自动平衡(默认设置)
// 2 - 下一回合开始即启用自动平衡
// 默认: "1"
mp_autoteambalance "1"

// 每局购买武器装备时间(以分钟计)
// HLDS官方和ReGameDLL共性参数,ReGameDLL优先执行
// -1 - 无时间限制
// 0 - 禁止购买
// 默认:"1.5"
mp_buytime "0.25"

// 游戏中允许的最大金额
// ReGameDLL个性参数
// 建议:比赛模式使用 16000 ,混战娱乐模式可自行修改
// 注意: 允许的金额上限为 999999
// 默认: "16000"
mp_maxmoney "16000"

// 根据设定方式结束游戏
// ReGameDLL个性参数
// 0 - 禁用(默认方式)
// 1 - 启用(从不结束)
//
// 控制标识 (根据需要可选择多个)
// ReGameDLL个性参数
// a - 检查结束时间, 包含 "h", "i", "j", "k" 标识
// b - 阻止玩家回合结束后的检查
// c - 阻止VIP暗杀任务成功后的检查
// d - 阻止越狱任务成功后的检查
// e - 阻止炸弹爆炸后的检查
// f - 阻止团灭后的检查
// g - 阻止人质救援任务结束后的检查
// h - 阻止VIP暗杀任务时间结束时的检查
// i - 阻止越狱任务回合时间结束时的检查
// j - 阻止炸弹模式时间结束时的检查
// k - 阻止人质救援任务时间结束时的检查
//
// 示例: "ae" - 阻止回合结束和炸弹爆炸后的检查
// 默认: "0"
mp_round_infinite "0"

// 如果没有设定任何条件,则到达时间后结束回合
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 平局时回合结束
// 2 - 匪徒获胜时回合结束
// 3 - 警察获胜时回合结束
// 默认: "0"
mp_roundover "0"

// 获胜后重新开启下一轮之前的延迟时间(以秒计).
// ReGameDLL个性参数
// 默认: "5"
mp_round_restart_delay "5"

// 禁止手榴弹穿过墙壁造成伤害
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "0"
mp_hegrenade_penetration "0"

// 玩家死亡后掉落手雷
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 掉落第一个可以使用的手雷(如果玩家有1个手雷、2个闪光弹、1个烟雾弹,那么将只有1个手雷会掉落)
// 2 - 掉落所有手雷
// 默认: "0"
mp_nadedrops "0"

// 回合开始并达到设定时间后,玩家将无法复活并直到下一轮开始
// ReGameDLL个性参数
// 如果自开始回合后过去了N秒以上
// -1 - 无时间限制
// 默认: "20"
mp_roundrespawn_time "20"

// 玩家出生时自动配发所有武器
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 建议:比赛模式使用 0 ,死亡模式使用 0 或 1
// 默认: "0"
mp_auto_reload_weapons "0"

// 将弹药自动补充至最大值
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 玩家重生时补充弹药
// 2 - 玩家重生后购买装备时补充弹药
// 3 - 每次获得武器时自动补充弹药(注意: 对 DeathMatch, GunGame, ZombieMod 等模式有用.)
// 建议:比赛模式使用 0 ,死亡、僵尸等模式使用 3
// 默认: "0"
mp_refill_bpammo_weapons "3"

// 设置武器无限弹药模式
// HLDS官方和ReGameDLL共性参数,且功能扩展并优先执行
// 0 - 禁用
// 1 - 无限弹药(无需换弹夹)
// 2 - 无限弹药(需要换弹夹)
// 建议:比赛模式使用 0 ,死亡模式使用 1
// 默认: "0"
mp_infinite_ammo "0"

// 启用无限手雷
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 无限手榴弹
// 默认: "0"
mp_infinite_grenades "0"

// 玩家自动加入团队
// ReGameDLL个性参数,与Server.cfg中的humans_join_team配合使用
// 0 - 关闭
// 1 - 开启 (与 humans_join_team any/SPEC/CT/T 参数配合使用)
// 默认: "0"
mp_auto_join_team "1"

// 杀死队友数量达到上限会被自动踢出
// ReGameDLL个性参数
// 当启用 mp_autokick 时使用.
// 0 - 禁止
// 建议:比赛模式使用 0
// 默认: "3"
mp_max_teamkills "0"

// 当任何人的得分达到设定值时,服务器将更改地图.
// HLDS官方和ReGameDLL共性参数,ReGameDLL优先执行
// 0 - 无限制
// 默认: "0"
mp_fraglimit "0"

// 换图时间
// HLDS官方和ReGameDLL共性参数,ReGameDLL优先执行
// 0 - 无限制
// 建议:比赛模式使用 0
// 默认: "0"
mp_timelimit "15"

// 玩家死亡后自动重生
// ReGameDLL个性参数
// 0 - 禁用
// >0.00001 - 重生的时间间隔
// 默认: "0"
mp_forcerespawn "2"

// 人质受到伤害的方式
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 任何团队均可造成伤害
// 2 - 仅可受到来自警察的伤害
// 3 - 仅可受到来自匪徒的伤害
// 默认: "1"
mp_hostage_hurtable "1"

// 显示无线电图标
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "1"
mp_show_radioicon "1"

// 在HUD中显示场景数据,如活着的人质数量或炸弹倒计时时间.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "0"
mp_show_scenarioicon "0"

// 当拆除炸弹成功时,用 "Bomb has been defused" 替代 "Counter-Terrorists win" 声音
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "1"
mp_old_bomb_defused_sound "1"
//
//-------------------------------------------------------------------------------//
//--------------------------★机器人(zBOT)系列参数设置★-------------------------//
//--------------------------以下参数仅针对使用zBOT情况下有效-----------------------//
//
// 设置 zBot 机器人的模式
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用 Deathmatch 模式,且不允许执行场景任务
// 默认: "0"
// 不建议修改.使用"//"屏蔽
// bot_deathmatch "0"

// 机器人和玩家的数量配比.
// ReGameDLL个性参数
// normal - 正常数量(机器人不会因玩家数量而变化)
// fill - 自动调整机器人数量,以保持游戏中有 N 个玩家,其中 N 值由 bot_quota 参数设定
// match - 保持服务器上人与机器人的比例为 1:N ,其中 N 值由 bot_quota 参数设定
// 默认: "normal"
// 不建议修改.使用"//"屏蔽
// bot_quota_mode "normal"

// 换图后机器人进入服务器的间隔时间.
// ReGameDLL个性参数
// 默认: "0"
// 不建议修改.使用"//"屏蔽
// bot_join_delay "0"

// 阻止机器人移动.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "0"
// 不建议修改.使用"//"屏蔽
// bot_freeze "0"
//
//-------------------------------------------------------------------------------//
//------------------------★ReGameLL的游戏环境参数设置★---------------------------//
//-----------------------以下参数多为ReGameDLL个性或对官方功能扩展------------------//
//
// 测试参数时显示触发器.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "0"
showtriggers "0"

// 玩家听到声音的方式(重要程度:★★★★★)
// HLDS官方和ReGameDLL共性参数,且ReGameDLL功能扩展并优先执行
// 详细释义见: https://github.com/s1lentq/ReGameDLL_CS/wiki/sv_alltalk
// 0 - 死人听不到活人说话
// 1 - 无限制(公麦)
// 2 - 队友可以相互通话(无论死活)
// 3 - 与 2 类似, 但观众能够听见所有人说话
// 4 - 活人可以听到活人说话(不受团队限制), 死人可以听到所有人说话(不受团队限制).
// 5 - 活人可以听到活人说话(仅限队友), 死人可以听到所有人说话(不受团队限制).
// 建议:比赛模式使用 3
// 默认: "0"
sv_alltalk "1"

// 移除玩家掉落的装备(以秒计)
// ReGameDLL个性参数
// 默认: "300"
mp_item_staytime "300"

// 保留 func_bomb_target 的联系. 新规则更为严格.
// ReGameDLL个性参数
// 0 - 新规则
// 1 - 旧规则
// 默认: "1"
mp_legacy_bombtarget_touch "1"

// 玩家重生后受到伤害的免疫时间(以秒计)
// ReGameDLL个性参数
// 0 - 禁用(无免疫时间)
// >0.00001 - 解除免疫的时长
// 默认: "0"
mp_respawn_immunitytime "2"

// 启用玩家免疫的效果
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用 (与 mp_respawn_immunitytime 配合使用)
// 默认: "1"
mp_respawn_immunity_effects "1"

// 如果玩家在出生时有相应动作,则强制取消免疫保护.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 当移动或攻击时
// 2 - 仅在攻击时
// 默认: "1"
mp_respawn_immunity_force_unset "2"

// 在玩家出生时杀死已生成的玩家(防止玩家卡在其他人身上)
// ReGameDLL个性参数
// 仅当有semiclip 或者其他防卡插件时方可禁用此功能
// 0 - 禁用
// 1 - 启用
// 默认: "1"
mp_kill_filled_spawn "1"

// 允许在地图中使用 point_servercommand 实体.
// ReGameDLL个性参数
// 注意: 对于不受信任或未经测试的地图使用可能存在潜在风险.
// 0 - 不允许
// 1 - 允许
// 默认: "0"
mp_allow_point_servercommand "0"

// 在TAB记分牌中显示 'HP' 字段(重要程度:★★★★)
// HLDS官方和ReGameDLL共性参数,ReGameDLL优先执行
// -1 - 不显示
// 0 - 不向玩家发送 'HP' 字段的任何数据
// 1 - 向所有玩家显示匪徒的 'HP' 字段
// 2 - 向所有玩家显示警察的 'HP' 字段
// 3 - 向队友显示 'HP' 字段
// 4 - 向所有玩家显示 'HP' 字段
// 5 - 向队友和观众显示 'HP' 字段
// 建议:比赛模式使用 5
// 默认: "3"
mp_scoreboard_showhealth "5"

// 在TAB记分牌中显示 'Money' 字段(重要程度:★★★★)
// HLDS官方和ReGameDLL共性参数,ReGameDLL优先执行
// -1 - 不显示
// 0 - 不向玩家发送 'Money' 字段的任何数据
// 1 - 向所有玩家显示匪徒的 'Money' 字段
// 2 - 向所有玩家显示警察的 'Money' 字段
// 3 - 向队友显示 'Money' 字段
// 4 - 向所有玩家显示 'Money' 字段
// 5 - 向队友和观众显示 'Money' 字段
// 建议:比赛模式使用 5
// 默认: "3"
mp_scoreboard_showmoney "5"

// 在TAB记分牌中显示 'D. Kit' 字段(重要程度:★★★★)
// ReGameDLL个性参数
// 注意: 如果不想让死亡的敌人看到拆弹器,可设置参数"0",或设置 mp_forcecamera "2"
// 建议:比赛模式使用 1
// 0 - 禁止
// 1 - 显示
// 默认: "1"
mp_scoreboard_showdefkit "1"

// 减少开枪击中队友后造成的伤害.
// ReGameDLL个性参数
// 由 0 - 1 取值 (当设定值为 1 时,则等同于对敌人造成的伤害)
// 默认: "0.35"
ff_damage_reduction_bullets "0.35"

// 减少手雷对队友造成的伤害.
// ReGameDLL个性参数
// 由 0 - 1 取值 (当设定值为 1 时,则等同于对敌人造成的伤害)
// 默认: "0.25"
ff_damage_reduction_grenade "0.25"

// 减少手雷对自身造成的伤害
// ReGameDLL个性参数
// 由 0 - 1 取值 (当设定值为 1 时,则等同于对敌人造成的伤害)
// 默认: "1.0"
ff_damage_reduction_grenade_self "1.0"

// 减少除枪击和手雷外的其他武器对队友造成的伤害.
// ReGameDLL个性参数
// 由 0 - 1 取值 (当设定值为 1 时,则等同于对敌人造成的伤害)
// 默认: "0.35"
ff_damage_reduction_other "0.35"

// 玩家无动作达到设定时间(以秒计)后将掉落C4
// ReGameDLL个性参数
// 0 - 禁止
// >5.0 - 掉落C4所需的时长
// 建议:比赛模式使用 15-30,以防止玩家长时间无动作导致影响比赛
// 默认: "0"
mp_afk_bomb_drop_time "15"

// 玩家间无线电连续通话的间隔时间(以秒计)
// ReGameDLL个性参数
// 0 - 禁用
// 默认: "1.5"
mp_radio_timeout "1.5"

// 玩家每回合无线电通信次数上限.
// ReGameDLL个性参数
// 0 - 禁用无线电消息
// 默认: "60"
mp_radio_maxinround "60"

// 玩家在任何区域都可以购买装备,不仅限于购买区域.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 双方都可无限制购买
// 2 - 仅匪徒可以购买
// 3 - 仅警察可以购买
// 默认: "0"
mp_buy_anywhere "0"

// 如果闪避动作没有完成则不闪避.
// ReGameDLL个性参数
// 注意: 此设置可以防止连跳
// 0 - 禁用
// 1 - 启用
// 建议:严格比赛模式使用 1,其他娱乐性质使用 0
// 默认: "0"
mp_unduck_method "0"

// 是否在地图上生成C4.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "1"
mp_give_player_c4 "1"

// 显示掉落的武器.
// ReGameDLL个性参数
// 注意: 效果将在换图后生效.
// 0 - 隐藏所有武器
// 1 - 启用
// 默认: "1"
mp_weapons_allow_map_placed "1"

// 玩家死亡后,观察者屏幕将淡出或黑屏.
// ReGameDLL个性参数
// 0 - 没有淡出
// 1 - 淡出至黑屏
// 2 - 只有在死亡事件发生时变黑.
// 默认: "0"
mp_fadetoblack "0"

// 高空掉落时造成伤害.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "1"
mp_falldamage "1"

// 匪徒出生时默认的手雷.
// ReGameDLL个性参数
// 参数: "hegrenade flash sgren"
// 默认: ""
mp_t_default_grenades ""

// 匪徒出生时拿刀.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "1"
mp_t_give_player_knife "1"

// 匪徒出生时默认的主武器.
// ReGameDLL个性参数
// 参数: "awp m4a1 mp5navy"
// 默认: ""
mp_t_default_weapons_primary ""

// 匪徒出生时默认的辅助武器(手枪).
// ReGameDLL个性参数
// 默认: "glock18"
mp_t_default_weapons_secondary ""

// 警察出生时默认的手雷.
// ReGameDLL个性参数
// 参数: "hegrenade flash sgren"
// 默认: ""
mp_ct_default_grenades ""

// 警察出生时拿刀.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "1"
mp_ct_give_player_knife "1"

// 警察出生时默认的主武器.
// ReGameDLL个性参数
// 参数: "awp m4a1 mp5navy"
// 默认: ""
mp_ct_default_weapons_primary ""

// 警察出生时默认的辅助武器(手枪).
// ReGameDLL个性参数
// 默认: "usp"
mp_ct_default_weapons_secondary ""

// 玩家出生时配发护具
// ReGameDLL个性参数
// 0 - 无护甲
// 1 - 给予护甲
// 2 - 给予护甲和头盔
// 默认: "0"
mp_free_armor "0"

// 玩家可以看到其他玩家的文字聊天信息, 团队限制使用.
// ReGameDLL个性参数
// 0 - 禁止
// 1 - 启用
// 默认: "1"
sv_allchat "1"

// 玩家按住跳跃按键时重新跳跃.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "0"
sv_autobunnyhopping "0"

// 允许玩家速度超过设定的速度上限
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "0"
sv_enablebunnyhopping "0"

// 玩家可以在任何地方安放C4,不仅限于爆炸点.
// ReGameDLL个性参数
// 0 - 禁用
// 1 - 启用
// 默认: "0"
mp_plant_c4_anywhere "0"
//
////////////////////////////////////////////////////////////////////////////////

csdm.cfg

位于cstrike/addons/amxmodx/configs/csdm.cfg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
;CSDM 模式配置
;标准配置

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;要使这些选项起作用,必须启用主插件 (csdm_main.amxx)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[settings]

;设置死亡竞赛是否启用(1为是 0为否)
enabled = 1

;设置回合开始后,是否移除玩家身上的武器(刀子除外)
strip_weapons = 1

;设置扔掉武器后,武器停留在地面上的时间(秒)
;0 - -直接消失,-1 - 一直保留
weapons_stay = 0

;设置重生模式
; "none" - 普通模式,默认重生点
; "preset" - 由插件 csdm_spawn_preset.amxx 设置的预设生成点(必须启用)
spawnmode = preset

;设置是否删除C4
remove_bomb = 1

;设置重生等待时间
spawn_wait_time = 2

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;要使这些选项起作用,必须启用相应的插件 (csdm_ffa.amxx)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ffa]
;设置是否启用FFA模式,该模式下所有人都是你的敌人
enabled = 0

;显示或隐藏雷达(1 - 隐藏 / 0 - 显示)
radar_disable = 0

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;为了使这些选项起作用,必须启用相应的插件(csdm_misc.amxx)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[misc]
;删除以下任务和区域(指定删除所需的标志)
; a - as_系列地图,VIP逃离点
; b - 购买区域
; c - cs_系列地图,人质逃离点
; d - de_系列地图,C4埋放点
remove_objectives = abcd

;阻止使用所有购买命令
block_buy = 1

;设置当弹药用完后是否自动装满
ammo_refill = 1

;当重生后是否发送无线电指令
spawn_radio_msg = 0

;隐藏金钱
hide_money = 1

;如果 remove_objectives 参数设置为“acd” 或“abcd”,则隐藏计时器
hide_timer = 0


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;要使这些选项起作用,必须启用相应的插件 (csdm_stripper.amxx)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[stripper]
;在地图上删除其他对象
enabled = 1

;在此处指定您要从地图中删除的所有对象。
;对象名称:
;不建议添加下面未列出的其他对象.
;当你想删除一些对象时,HL 有时会出现奇怪现象.
;因此,插件的作者不能向您保证它会起作用
;包含您在此处指定的所有对象.
;删除默认指定的对象不会导致任何问题.
class = player_weaponstrip
class = game_player_equip
class = item_healthkit
class = item_battery
class = armoury_entity
class = item_longjump


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;要使这些选项起作用,必须启用相应的插件 (csdm_tickets.amxx)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ticketing]

;是否启用重生计数功能
enabled = 0

;同一团队的玩家或单个玩家在一轮中可以重生的次数。
;(取决于 ticketing_player 参数)
tickets = 150

;显示剩余次数(复活):0 - 禁用,1 - HUD,2 - 聊天模式
show_state = 1

;计算重生次数的模式:0 - 团队模式,1 - 单一玩家模式
ticketing_player = 0

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;要使这些选项起作用,必须启用相应的插件 (csdm_protection.amxx)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[protection]

;设置是否开启重生保护
enabled = 1

;重生保护时是否开启玩家发光模式(0 - 关闭 1 - 开启)
glowing = 1

;重生保护时玩家的发光颜色
;颜色在 RGBA 调色板中指定,其中 A 是 alpha 通道(透明度)
;(A(alpha)值越高,光环越浓)
colorst = "255 0 0 200" ; 匪徒团队的颜色
colorsct = "0 0 255 200" ; 警察团队的颜色
colorsffa = "0 255 0 200" ; FFA模式下所有玩家的颜色

;重生保护持续时间(以秒为单位)
time = 2

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;要使这些选项起作用,必须启用相应的插件 (csdm_equip.amxx)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[equip]

;菜单中将提供哪些装备(指明所需的参数标识):
; p - 主要武器
; s - 次要武器
; a - 护甲
; g - 手雷
; b - 购买
menus = ps

;自动购买装备 (指明所需的参数标识):
; a - 护甲
; h - 头盔
; g - 手雷
; d - 拆弹器(仅限 CT 可用)
; n - 夜视仪
autoitems = ahg

;自动购买手雷 (指明所需的参数标识)
; f - 闪光弹
; h - 手雷
; s - 烟雾弹
grenades = h

;设置闪光弹拥有数量
fnadesnum = 1

;允许随时通过say guns 或者say /guns 使用武器菜单
always_allow_gunmenu = 1

;;;;;;;;;;;;;;;
;;武器菜单;;
;;;;;;;;;;;;;;;

;武器菜单的格式
;武器菜单的格式如下:
; "菜单显示名称" 开启\关闭
;1 - 可用装备; 0 - 禁用装备
;移除或移动物品
;将影响武器装备出现在菜单中的顺序!

[secondary]
usp USP 1
glock18 Glock 1
deagle Deagle 1
p228 P228 1
elite Elite 1
fiveseven "Five Seven" 1

[primary]
m4a1 M4A1 1
ak47 AK47 1
aug AUG 1
sg552 SG552 1
galil Galil 1
famas Famas 1
scout Scout 1
awp AWP 1
;sg550 SG550 1
m249 M249 1
;g3sg1 G3SG1 1
ump45 "UMP 45" 1
mp5navy "MP5 Navy" 1
m3 M3 1
xm1014 XM1014 1
tmp TMP 1
mac10 "Mac 10" 1
p90 P90 1


;将以随机顺序发给机器人的武器列表
;您只需要从上面的列表中指定项目的真实名称
[botsecondary]
deagle
usp
elite
fiveseven

[botprimary]
ak47
m4a1
aug
sg552
galil
famas
scout
awp
;sg550
m249
;g3sg1
mp5navy
m3
xm1014


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;要使这些选项起作用,必须启用相应的插件 (csdm_itemmode.amxx)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[items]

;设置Item模式(捡枪模式)是否开启
enabled = 0

;如果设置为 1 - 被杀死的玩家会掉包,其中包括: 使用过的武器、弹药和喷气背包
;如果设置为 2 - 被杀死的玩家除掉包外,还会掉落生命值和护甲值
;如果设置为 0 - 被杀死的玩家不掉包
drop_packs = 0

;电池中包含的装甲数量。默认值 15.
battery = 15

;设置医药箱给予的生命值. 默认值 15.
medkit = 15

;物品再次出现在同一个地方需要多长时间(以秒为单位). 默认值 20 (0 = 不会出现)
item_time = 20

;物品在地面上停留的时间(以秒为单位)。 (最大值 30)
drop_time = 10

;如果设置为 1,物品将不会有下沉效果。默认 0.
persistent_items = 0

;玩家可以拥有多少手雷。默认 1.
max_hnades = 1

;玩家可以拥有多少闪光弹. 默认 2.
max_fnades = 2

;玩家可以拥有多少枚烟雾弹. 默认 1.
max_snades = 1

;打开/关闭 物品模式时 打开/关闭 武器菜单.
;如果您希望玩家只捡起弹药,则必须启用物品模式。
no_gun_menu = 1


;添加分号即可允许使用该武器.
;或添加您的项目,不带注释符号(注明项目的真实名称)
[item_restrictions]
;m4a1
;ak47
;aug
;sg552
;galil
;famas
;scout
;awp
sg550
;m249
g3sg1
;ump45
;mp5navy
;m3
;xm1014
;tmp
;mac10
;p90
;elite
;longjump
;medkit
;battery
;pistolammo
;rifleammo
;shotammo
;smgammo
;awpammo
;paraammo
;fullammo
;armor
;flashbang
;hegrenade
;smokegrenade

yapb.cfg

位于cstrike/addons/yapb/conf/yapb.cfg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
//
// @package: YaPB
// @version: 4.2
// @author: YaPB Project
// @filename: yapb.cfg
//
// YaPB main configuration file. Can be executed via "exec" command.
//

//
// Enables or disables useful messages about bot states. Not required for end users.
// ---
// Default: "0", Min: "0", Max: "4"
//
yb_debug "0"

//
// Forces all alive bots to build path and go to the specified here graph node.
// ---
// Default: "-1", Min: "-1", Max: "2048"
//
yb_debug_goal "-1"

//
// Specifies the percent of bots, that can follow leader on each round start.
// ---
// Default: "20", Min: "0", Max: "100"
//
yb_user_follow_percent "20"

//
// Specifies how many bots can follow a single user.
// ---
// Default: "1", Min: "0", Max: "8"
//
yb_user_max_followers "1"

//
// If enabled, all bots will be forced only the knife, skipping weapon buying routines.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_jasonmode "0"

//
// Allows bots to use radio or chattter.
// Allowed values: '0', '1', '2'.
// If '0', radio and chatter is disabled.
// If '1', only radio allowed.
// If '2' chatter and radio allowed.
// ---
// Default: "2", Min: "0", Max: "2"
//
yb_radio_mode "0"

//
// Specifies whether bots able to use team economics, like do not buy any weapons for whole team to keep money for better guns.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_economics_rounds "1"

//
// Specifies whether bots able to use 'shift' if they thinks that enemy is near.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_walking_allowed "1"

//
// Allows or disallows bots to camp. Doesn't affects bomb/hostage defending tasks.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_camping_allowed "1"

//
// Lower bound of time from which time for camping is calculated
// ---
// Default: "15.0", Min: "5.0", Max: "90.0"
//
yb_camping_time_min "15.0"

//
// Upper bound of time until which time for camping is calculated
// ---
// Default: "45.0", Min: "15.0", Max: "120.0"
//
yb_camping_time_max "45.0"

//
// Allows or disallows bots to take revenge of teamkillers / team attacks.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_tkpunish "1"

//
// If enabled, the bots think function is disabled, so bots will not move anywhere from their spawn spots.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_freeze_bots "0"

//
// Allows or disallows the use of spray paints.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_spraypaints "1"

//
// Allows or disallows bots weapon buying routines.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_botbuy "1"

//
// Allows bots to destroy breakables around him, even without touching with them.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_destroy_breakables_around "1"

//
// The radius on which bot searches world for new objects, items, and weapons.
// ---
// Default: "450.0", Min: "64.0", Max: "1024.0"
//
yb_object_pickup_radius "450.0"

//
// Specifies the paths for the bot chatter sound files.
// ---
// Default: "sound/radio/bot"
//
yb_chatter_path "sound/radio/bot"

//
// Specifies semicolon separated list of weapons that are not allowed to buy / pickup.
// ---
// Default: ""
//
yb_restricted_weapons ""

//
// Allows or disallows bots to attack monsters.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_attack_monsters "0"

//
// Allows or disallows bots to pickup custom items.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_pickup_custom_items "0"

//
// Allows or disallows bots to do map objectives, i.e. plant/defuse bombs, and saves hostages.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_ignore_objectives "0"

//
// Allows or disallows the ability for random knife attacks when bot is rushing and no enemy is nearby.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_random_knife_attacks "1"

//
// Enables or disables bots chat functionality.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_chat "0"

//
// Bot chances to send random dead chat when killed.
// ---
// Default: "30", Min: "0", Max: "100"
//
yb_chat_percent "30"

//
// Specifies whether bots able to fire at enemies behind the wall, if they hearing or suspecting them.
// ---
// Default: "2", Min: "0", Max: "2"
//
yb_shoots_thru_walls "2"

//
// Enables or disables searching world for enemies.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_ignore_enemies "0"

//
// Enables or disables checking enemy rendering flags. Useful for some mods.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_check_enemy_rendering "0"

//
// Enables or disables checking enemy invincibility. Useful for some mods.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_check_enemy_invincibility "0"

//
// Enables or disables bot ability to stab the enemy with knife if bot is in good condition.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_stab_close_enemies "1"

//
// Binds specified key for opening bots menu.
// ---
// Default: "="
//
yb_bind_menu_key "="

//
// Specifies comma separated list of bot cvars, that will not be overriten by config on changelevel.
// ---
// Default: "yb_quota,yb_autovacate"
//
yb_ignore_cvars_on_changelevel "yb_quota,yb_autovacate"

//
// Enables or disables display menu text, when players asks for menu. Useful only for Android.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_display_menu_text "1"

//
// The value (password) for the setinfo key, if user sets correct password, he's gains access to bot commands and menus.
// ---
// Default: ""
//
yb_password "cz19900602"

//
// The name of setinfo key used to store password to bot commands and menus.
// ---
// Default: "_ybpw"
//
yb_password_key "_ybpw"

//
// Enables or disables CSDM / FFA mode for bots.
// Allowed values: '0', '1', '2', '3'.
// If '0', CSDM / FFA mode is auto-detected.
// If '1', CSDM mode is enabled, but FFA is disabled.
// If '2', CSDM and FFA mode is enabled.
// If '3', CSDM and FFA mode is disabled.
// ---
// Default: "0", Min: "0", Max: "3"
//
yb_csdm_mode "0"

//
// Specifies whether bot should not 'fix' camp directions of camp waypoints when loading old PWF format.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_graph_fixcamp "1"

//
// Specifies the URL from bots will be able to download graph in case of missing local one. Set to empty, if no downloads needed.
// ---
// Default: "yapb.jeefo.net"
//
yb_graph_url "yapb.jeefo.net"

//
// Kick bots to automatically make room for human players.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_autovacate "1"

//
// Specifies the number bots to be added to the game.
// ---
// Default: "9", Min: "0", Max: "32"
//
yb_quota "32"

//
// Specifies the type of quota.
// Allowed values: 'normal', 'fill', and 'match'.
// If 'fill', the server will adjust bots to keep N players in the game, where N is yb_quota.
// If 'match', the server will maintain a 1:N ratio of humans to bots, where N is yb_quota_match.
// ---
// Default: "normal"
//
yb_quota_mode "normal"

//
// Number of players to match if yb_quota_mode set to 'match'
// ---
// Default: "0", Min: "0", Max: "32"
//
yb_quota_match "1"

//
// Specifies how many times per second bot code will run.
// ---
// Default: "26.0", Min: "24.0", Max: "90.0"
//
yb_think_fps "26.0"

//
// Specifies amount of time in seconds when bots will be killed if no humans left alive.
// ---
// Default: "0.0", Min: "0.0", Max: "90.0"
//
yb_autokill_delay "0.0"

//
// Specifies whether bots should join server, only when at least one human player in game.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_join_after_player "0"

//
// Forces all bots to join team specified here.
// ---
// Default: "any"
//
yb_join_team "any"

//
// Specifies after how many seconds bots should start to join the game after the changelevel.
// ---
// Default: "5.0", Min: "0.0", Max: "30.0"
//
yb_join_delay "5.0"

//
// All the bot names will be prefixed with string specified with this cvar.
// ---
// Default: ""
//
yb_name_prefix ""

//
// All bots difficulty level. Changing at runtime will affect already created bots.
// ---
// Default: "4", Min: "0", Max: "4"
//
yb_difficulty "0"

//
// Lower bound of random difficulty on bot creation. Only affects newly created bots. -1 means yb_difficulty only used.
// ---
// Default: "-1", Min: "-1", Max: "4"
//
yb_difficulty_min "-1"

//
// Upper bound of random difficulty on bot creation. Only affects newly created bots. -1 means yb_difficulty only used.
// ---
// Default: "-1", Min: "-1", Max: "4"
//
yb_difficulty_max "-1"

//
// Enables each bot balances own difficulty based kd-ratio of team.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_difficulty_auto "0"

//
// Enables or disables displaying bot avatars in front of their names in scoreboard. Note, that is currently you can see only avatars of your steam friends.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_show_avatars "1"

//
// Enables latency display in scoreboard.
// Allowed values: '0', '1', '2'.
// If '0', there is nothing displayed.
// If '1', there is a 'BOT' is displayed.
// If '2' fake ping is displayed.
// ---
// Default: "2", Min: "0", Max: "2"
//
yb_show_latency "2"

//
// Allows to save bot names upon changelevel, so bot names will be the same after a map change
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_save_bots_names "0"

//
// Specifies the bots wanted skin for Terrorist team.
// ---
// Default: "0", Min: "0", Max: "5"
//
yb_botskin_t "0"

//
// Specifies the bots wanted skin for CT team.
// ---
// Default: "0", Min: "0", Max: "5"
//
yb_botskin_ct "0"

//
// Lower bound for base bot ping shown in scoreboard upon creation.
// ---
// Default: "7", Min: "0", Max: "100"
//
yb_ping_base_min "7"

//
// Upper bound for base bot ping shown in scoreboard upon creation.
// ---
// Default: "34", Min: "0", Max: "100"
//
yb_ping_base_max "34"

//
// Specifies the language for bot messages and menus.
// ---
// Default: "en"
//
yb_language "chs"

//
// Enables or disables extra hard difficulty for bots.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_whose_your_daddy "0"

//
// Selects the heuristic function mode. For debug purposes only.
// ---
// Default: "4", Min: "0", Max: "4"
//
yb_path_heuristic_mode "4"

//
// Lower bound of danger factor that used to add additional danger to path based on practice.
// ---
// Default: "200", Min: "100", Max: "2400"
//
yb_path_danger_factor_min "200"

//
// Upper bound of danger factor that used to add additional danger to path based on practice.
// ---
// Default: "400", Min: "200", Max: "4800"
//
yb_path_danger_factor_max "400"

//
// Enables or disables showing welcome message to host entity on game start.
// ---
// Default: "1", Min: "0", Max: "1"
//
yb_display_welcome_text "1"

//
// Enables or disables fake server queries response, that shows bots as real players in server browser.
// ---
// Default: "0", Min: "0", Max: "1"
//
yb_enable_query_hook "1"

服务器管理

服务器管理,一个是原版服务器自带的rcon功能,其余的像amxx管理、recsdm出生点管理、yapb管理等,都需要对相应插件的配置文件进行配置。

rcon管理

在cstrike/server.cfg文件中找到rcon_password配置rcon管理员密码,配置完成后,在客户端控制台输入rcon_password "密码"之后,就可以通过rcon 命令来管理服务器了。

amxx管理

首先找到cstrike\addons\amxmodx\configs文件夹,先修改amxx.cfg文件的amx_password_field(默认是_pw),用法是客户端控制台输入setinfo _pw "密码",其中的密码将会在同文件夹中的user.ini文件配置,在user.ini中有说明如何配置管理员,我们这里就以用户名+密码的方式添加管理员。例如,我的cs的ID是wudics,如下:

1
"wudics" "balabala" "abcdefghijklmnopqrstuv" "a"

进入游戏后,将游戏ID改成wudics,并在控制台输入setinfo _pw "balabala",就可以获得管理权限了。

然后在控制台输入amx_help类似的命令来操作,也可以在客户端脚本或控制台中加入按键绑定的方式来使用。

1
bind "=" "amx_help" 

使用”=”按键触发amx_help命令。

其他命令如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Administrator Commands:
amxmodmenu (main menu)
amx_addadmin NAME| auth ACCESS FLAG PASSWORD authtype (Admin)
amx_addban authid_or_ip TIME REASON (adding a ban)
amx_unban authid_or_ip (ban removal)
amx_ban NAME NEW_NAME TIME REASON (add ban)
amx_cfg FILE (loading the specified configuration file)
amx_cvar VALUE (change or view the cvar value)
amx_help (view available commands)
amx_kick NAME_OR_userid REASON (player expelled from the game)
amx_last (list of recently released players from the server)
amx_leave TAG TEG1 TEG2 TEG3 (exclude all players who do not have the specified clan tags)
amx_map CARD (change the card to the specified one)
amx_menu (menu for players)
amx_modules (view loaded modules)
amx_nick NAME NEW_NAME (change player name)
amx_off (shutting down plugins)
amx_on (enable plugins)
amx_pause (enable or disable pause)
amx_pausecfg (pause control commands)
amx_plugins (view downloaded plugins)
amx_rcon COMMAND (rcon command execution on the server)
amx_reloadadmins (updating admin rights from users.ini)
amx_setlang LANGUAGE (language setting)
amx_showrcon TEAM (running a command on the server and viewing the result)
amx_slap NAME_OR_userid DAMAGE (spank player)
amx_slay NAME_OR_userid (kill player)
amx_who (list of players on the server)

Voting:
amx_vote QUESTION ANSWER1 ANSWER (start of voting)
amx_voteban NAME_OR_userid (vote for player ban)
amx_votekick NAME_OR_userid (vote for player kick)
amx_votemap CARD CARD CARD CARD (vote for the next card)
amx_cancelvote (abort vote)

Statistics Commands:
say /switch (enable/disable statistics)
say /top15 (top 15 players)
say /stats (player statistics)
say /statsme (your statistics)
say /hp (information about your killer)
say /me (round statistics)
say /rank (your rank on the server)
say /rankstats (server statistics)
say /report (weapon status)
say /score (team statistics)

Chat Messages:
say currentmap (view the name of the current map)
say ff (Friendly Fire status)
say nextmap (view the name of the next map)
say thetime (view current time)
say timeleft (time to the end of the map)

Team Chat:
amx_chat MESSAGE (send a message to all admins)
amx_csay COLOR MESSAGE (message to all centered)
amx_psay NAME_OR_userid MESSAGE (private message to the specified player)
amx_say MESSAGE (message to all players)
amx_tsay MESSAGE (message to everyone on the left)
say @[@|@|@] [w|r|g|b|y|m|c] MESSAGE (message to everyone on the left)
say_team @ MESSAGE (HUD message to all admins)

RCON commands:
amxx cmds (view AMXmodX commands)
amxx cvars (view CVAR AMXmodX)
amxx gpl (view GNU license)
amxx modules (view modules)
amxx plugins (view plugins)
amxx pause (pause a running plugin)
amxx unpause (start paused plugin)
amxx version (view AMXmodX version)

recsdm管理

这里主要是用来管理随机出生点的生成,首先确保amxmodx/configs/plugins-csdm.ini中的csdm_spawn_preset.amxx已经开启。

进入游戏后,输入amxx管理员密码获取权限,然后在控制台输入edit_spawns就可以编辑随机出生点了。

命令 说明 插件 权限
csdm_enable 开启死亡竞技模式 csdm_main f
csdm_disable 关闭死亡竞技模式 csdm_main f
csdm_menu 显示死亡竞技模式管理菜单 csdm_main u
edit_spawns 显示随机出生点编辑菜单,生成数据保存在amxmodx/configs/csdm/地图名.spawns.cfg spawn_editor f
csdm_cache 显示运行时缓存 csdm_main f
guns, /guns, menu, enablemenu, enable_menu 显示更换武器装备菜单 csdm_equip ANY

csdm参考文档 csdm_amxx - Counter-Strike Deathmatch.

yapb管理

找到cstrike/addons/yapb/conf/yapb.cfg文件,然后找到以下选项进行修改

1
2
3
yb_bind_menu_key "="
yb_password "balabala"
yb_password_key "_ybpw"

这样我们进入游戏后,在客户端输入setinfo _ybpw balabala就可以获得管理yapb机器人的权限了。

然后我们再输入bind "=" "yapb menu"后,就可以按“=”键来管理yapb机器人了。

参考文献

用于 ReHLDS 的模块 - Dev-CS.ru
ReHLDS tutorial - آموزش راه اندازی سرور cs 1.6 با Linux
官方steamcmd控制台客户端使用说明
rehlds.ru已整合的服务端下载