|
发表于 2015-5-20 19:34:42
|
显示全部楼层
来自 中国–广东–深圳
本帖最后由 k1nader 于 2015-5-20 19:37 编辑
[mw_shl_code=pawn,true]/*
--------------------------------------------------------------------------------
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[128];
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[64];
get_customdir(customdir, charsmax(customdir));
server_cmd("exec ^"%s/cvarhide.cfg^"", customdir);
}[/mw_shl_code]
命令:
cvarhide sv_maxrate
cvarhide mp_limitteams
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|