引用 | 編輯
龍心
2017-11-03 21:59 |
樓主
|
||
x0
圖 1. 【插件資訊】 插件來源:網路資源轉載提供會員參考 使用指令:自行修改編譯及參考 http://bbs.mychat.tw/reads.php?tid=925374 安裝路徑:自行修改編譯及參考 http://bbs.mychat.tw/reads.php?tid=925374 【插件介紹】 複製程式 public plugin_init() { register_plugin(0, "7.7", "7TOU"); register_event("DeathMsg", "death_msg", "a", ""); register_cvar("sv_cl_dlmax", "80", 0, 0.00); register_clcmd("fullupdate", "fullupdate", -1, "", -1); return 0; } public death_msg() { if (read_data(1)) { set_task(3.00, "spec_menu_fix", read_data(2), "", 0, "", 0); } return 0; } public spec_menu_fix(id) { if (is_user_connected(id) && !is_user_alive(id)) { client_cmd(id, "spec_menu 0"); client_cmd(id, "+showscores"); client_cmd(id, "-showscores"); } return 0; } public client_connect(id) { client_cmd(id, "cl_dlmax %d", get_cvar_num("sv_cl_dlmax")); return 0; } public client_authorized(id) { client_cmd(id, "cl_dlmax %d", get_cvar_num("sv_cl_dlmax")); return 0; } public fullupdate(id) { new logfile[128]; get_localinfo("amxx_logdir", logfile, 127); format(logfile, 127, "%s/fullupdate.log", logfile); new authid[35]; new name[32]; new team[32]; new userid = get_user_userid(id); get_user_name(id, name, 31); get_user_authid(id, authid, 34); get_user_team(id, team, 31); log_to_file(logfile, "\"%s<%d><%s><%s>\" user attempted to use \"fullupdate\"", name, userid, authid, team); return 1; } x0
|