在5E上发约战之后,服务器参数怎么隐藏,求解决,谢谢
在5E上发约战之后,服务器参数怎么隐藏,求解决,谢谢 本帖最后由 k1nader 于 2015-5-20 19:37 编辑/*
--------------------------------------------------------------------------------
Web URL:http://www.roshis.org/
E-M@IL: mailto: i@roshis.org
--------------------------------------------------------------------------------
*/
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Hide Cvar"
#define VERSION "1.0"
#define AUTHOR "k1nader"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_srvcmd("cvarhide", "Ser_CmdGetNeedHide");
set_task(5.0, "ToStarHideCvar");
}
public Ser_CmdGetNeedHide()
{
new sercvar;
read_argv(1, sercvar, charsmax(sercvar));
if(cvar_exists(sercvar))
{
set_cvar_flags(sercvar, 2^32);
server_print("hide %s", sercvar);
}
}
public ToStarHideCvar()
{
new customdir;
get_customdir(customdir, charsmax(customdir));
server_cmd("exec ^"%s/cvarhide.cfg^"", customdir);
}
命令:
cvarhide sv_maxrate
cvarhide mp_limitteams
description
netcode
dedicated
os
mod_url_info
mod_url_download
mod_version
mod_size
mod_server_side
mod_custom_dll
anticheat
bots
这些不是 参数,无法隐藏 k1nader 发表于 2015-5-20 19:34
/*
------------------------------------------------------------------------- ...
这个可以隐藏参数对吗?谢谢
页:
[1]