廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 2345 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為IE收藏   收藏主題   上一主題 | 下一主題   
龍心
個人文章 個人相簿 個人日記 個人地圖
初露鋒芒
級別: 初露鋒芒 該用戶目前不上站
推文 x0 鮮花 x2
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片
推文 x0
[插件] 【101%原創】※一般系列※ 全新師氣計分牌

圖 1.



【插件資訊】

插件來源:網路資源轉載提供會員參考
使用指令:自行修改編譯及參考http://bbs.mychat.tw/re...d=1003858
安裝路徑:自行修改編譯及參考http://bbs.mychat.tw/re...d=1003858

【插件介紹】

複製程式


new ct_win;
new tr_win;
new g_maxplayers;


public plugin_init()
{
    register_plugin(12, "1.0", "KennyKo");
    register_message(get_user_msgid("TextMsg"), "message_textmsg");
    g_maxplayers = get_maxplayers();
    set_task(1.00, "show_hud_client", 0, "", 0, "b", 0);
    return 0;
}


public message_textmsg()
{
    static textmsg[22];
    get_msg_arg_string(2, "", 21);
    if (equal("", "#Terrorists_Win", 0))
    {
        tr_win = tr_win + 1;
    }
    if (equal("", "#CTs_Win", 0))
    {
        ct_win = ct_win + 1;
    }
    return 0;
}


public show_hud_client()
{
    new id = 1;
    while (id <= g_maxplayers)
    {
        set_hudmessage(255, 255, 255, -1.00, 0.01, 0, 6.00, 1.10, 0.00, 0.00, 4);
        show_hudmessage(id, "*一般模式:比賽地圖*\n  反恐小隊 | %d | [ 回合 %d ] | %d | 恐怖分子\n%d | VS | %d", ct_win, tr_win + ct_win, tr_win, GetTotalPlayer(2, 1), GetTotalPlayer(1, 1));
        id++;
    }
    return 0;
}


GetTotalPlayer(team, alive)
{
    static id;
    static total;
    total = 0;
    id = 1;
    while (id <= g_maxplayers)
    {
        if ((alive && is_user_alive(id)) || (!alive && is_user_connected(id)))
        {
            if ((team == 1 && fm_cs_get_user_team(id) == 1) || (team == 2 && fm_cs_get_user_team(id) == 2) || team)
            {
                total += 1;
                id += 1;
            }
            id += 1;
        }
        id += 1;
    }
    return total;
}


fm_cs_get_user_team(id)
{
    return get_pdata_int(id, 114, 5);
}





獻花 x0 回到頂端 [樓 主] From:香港特別行政區 | Posted:2017-11-01 22:10 |
大几把
個人文章 個人相簿 個人日記 個人地圖
小人物
級別: 小人物 該用戶目前不上站
推文 x0 鮮花 x1
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

谢谢分享

此文章被評分,最近評分記錄
財富:0 (by amore12) | 理由: 甚麼叫萬用感謝文??


獻花 x0 回到頂端 [1 樓] From:未知地址 | Posted:2023-06-09 00:16 |

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