|
发表于 2008-11-20 13:58:15
|
显示全部楼层
来自 中国–四川–南充
回复: 关于"激光"作弊器的防治方法,有点土招.
这个插件还是很简单的。
/* 本插件由 AMXX-Studio 中文版自动生成*/
/* UTF-8 func by www.DT-Club.net */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "Kick JIGUANG"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "martins"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
//在此处添加您的代码...
register_event("ResetHUD", "newround_event", "b");
set_task(1.0,"CheckJIGUANG");
}
public client_command(id) //获取信息
{
new szCmdLine[1024];
read_args(szCmdLine,1024);
if(strlen(szCmdLine)!=0)
{
if(contain(szCmdLine,"~")!=-1)
{
if(strcmp(szCmdLine,"~.")==0)
{
new name[32];
get_user_name(id,name,31);
client_print(0,print_chat,"%s 是个激光作弊器使用者!!",name);
}
}
}
return PLUGIN_CONTINUE
}
public newround_event(id)
{
for (new i = 1; i <= get_maxplayers(); i++)
{
client_cmd(i,"say_team ~");
}
return PLUGIN_CONTINUE
}
public CheckJIGUANG()
{
for (new i = 1; i <= get_maxplayers(); i++)
{
client_cmd(i,"say_team ~");
}
return PLUGIN_CONTINUE;
} |
|