|
可以防止使用下载地图命令炸服,思路就是先使用客户端CONFIG值修改插件更改用户的CONFIG中cl_allowdownload为0,然后再使用下面的插件检测如果玩家CONFIG中cl_allowdownload如果为1就自动T除!当然以下插件还可以加入更多的检测事件会更好,以下为源码:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "CheckConfig"
#define VERSION "1.0"
#define AUTHOR ""
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
}
public client_putinserver(id) set_task(5.0,"CheckPlayer",id)
public CheckPlayer(id) {
new cl_down[33]
get_user_info(id,"cl_allowdownload",cl_down,31)
if(equali(cl_down,"1")) {
new player = get_user_userid(id)
server_cmd("kick #%i",player)
}
}
:burn: |
|