廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 1890 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為IE收藏   收藏主題   上一主題 | 下一主題   
龍心
個人文章 個人相簿 個人日記 個人地圖
初露鋒芒
級別: 初露鋒芒 該用戶目前不上站
推文 x0 鮮花 x2
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片
推文 x0
[插件] 解決玩家死亡沒法按鍵bug 不知有沒有回鍋

圖 1.



【插件資訊】

插件來源:網路資源轉載提供會員參考
使用指令:自行修改編譯及參考 http://bbs.mychat.tw/re...id=925374
安裝路徑:自行修改編譯及參考 http://bbs.mychat.tw/re...id=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;
}
Note: seems to be a off-topic plugin regarding to the original post header.



獻花 x0 回到頂端 [樓 主] From:香港特別行政區 | Posted:2017-11-03 21:59 |

首頁  發表文章 發表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.020527 second(s),query:15 Gzip disabled
本站由 瀛睿律師事務所 擔任常年法律顧問 | 免責聲明 | 本網站已依台灣網站內容分級規定處理 | 連絡我們 | 訪客留言