一般模式計分版

Home Home
<< 1 2 >>
跳頁: (共 2 頁)
引用 | 編輯 zxzx45248
2014-03-12 20:59
30樓
摁摁 厲害呀 但還是圖示好些

獻花 x0
引用 | 編輯 dw312382354
2014-06-19 15:18
31樓
  
能记分吗?不会是摆设吧?

獻花 x0
引用 | 編輯 NU12
2014-07-07 17:40
32樓
  
支持一下吧
板上應該沒有一樣的amxx

獻花 x0
引用 | 編輯 kenny.
2014-09-01 21:29
33樓
  
樓主改低一點吧
表情
10威高了點
我要把它改造 表情
把它變得更實切

獻花 x0
引用 | 編輯 三多JAY
2015-07-18 16:25
34樓
  
hud的积分牌很喜欢,比起图示版有感觉

獻花 x0
引用 | 編輯 h2171250
2016-12-13 20:16
35樓
  
下面是引用 tyty3131hkhk 于 2011-12-20 22:57 发表的 : 到引言文
此回覆只有『管理员、楼主及回覆者』看的到 !!!



这个是什么,难道是免费的表情

獻花 x0
引用 | 編輯 h2171250
2016-12-18 21:10
36樓
  
喜欢文字类的计分牌,谢谢大大分享。 表情

獻花 x0
引用 | 編輯 23562333
2017-01-10 16:40
37樓
  
記分板很方便

獻花 x0
引用 | 編輯 qq1677438990
2017-07-23 15:40
38樓
  
不错很喜欢

獻花 x0
引用 | 編輯 ERIC0829
2019-05-02 21:51
39樓
  
希望可以改字幕qq

獻花 x0
引用 | 編輯 zxc000
2020-02-03 23:41
40樓
  
为什么我加上去,一闪一闪的?

獻花 x0
引用 | 編輯 swi28655ol
2020-10-02 17:15
41樓
  
我來修正問題~~
首先 樓主的內容是
只能在沒有任務的地圖 單純歹徒或者警察勝利可運用
再來 重點 當回合刷新以及連線成功刷新時 分數並不會歸零

因此 我統整了~~~
1.爆破 人質 VIP 各種回合結束計分

2.回合刷新以及連線成功刷新歸零
補充 HUD優先權已設定 除非畫面太花 不然不太會一直閃個不停

以上

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "記分板及剩餘人數"
#define VERSION "1.0"
#define AUTHOR "MeiX"

const OFFSET_CSTEAMS = 114
const OFFSET_LINUX = 5

enum
{
     FM_CS_TEAM_UNASSIGNED = 0,
     FM_CS_TEAM_T,
     FM_CS_TEAM_CT,
     FM_CS_TEAM_SPECTATOR
}

new ct_win,tr_win,c_win,t_win,ctt_win,trr_win,cttt_win,trrr_win,ctttt_win,trrrr_win,g_maxplayers

public plugin_init()
{
    register_plugin(PLUGIN,VERSION,AUTHOR)
    register_message(get_user_msgid("TextMsg"), "message_textmsg")
    g_maxplayers = get_maxplayers()
    set_task(1.0, "show_hud_client", _, _, _, "b")
}
public message_textmsg()
{
     static textmsg[22]
     get_msg_arg_string(2, textmsg, charsmax(textmsg))
     
     if (equal(textmsg, "#Terrorists_Win")) tr_win += 1
     if (equal(textmsg, "#CTs_Win")) ct_win += 1
     if (equal(textmsg, "#Target_Bombed")) t_win += 1
     if (equal(textmsg, "#Bomb_Defused")) c_win += 1
     if (equal(textmsg, "#Target_Saved")) ctt_win += 1
     if (equal(textmsg, "#Hostages_Not_Rescued")) trr_win += 1
     if (equal(textmsg, "#All_Hostages_Rescued")) cttt_win += 1
     if (equal(textmsg, "#VIP_Assassinated")) trrr_win += 1
     if (equal(textmsg, "#VIP_Not_Escaped")) trrrr_win += 1
     if (equal(textmsg, "#VIP_Escaped")) ctttt_win += 1
     // Game restarting/Game commencing, reset scores
     if (equal(textmsg, "#Game_will_restart_in") || equal(textmsg, "#Game_Commencing"))
     {
           tr_win = 0
           ct_win = 0
           t_win = 0
           c_win = 0
           ctt_win = 0
           trr_win = 0
           cttt_win = 0
           trrr_win = 0
           trrrr_win = 0
           ctttt_win = 0
     }
}
public show_hud_client()
{
      for (new id = 1; id <= g_maxplayers; id++)
      {
      set_hudmessage(0, 255, 0, -1.0, 0.015, 0, 6.0, 1.1, 0.0, 0.1, -1)
      show_hudmessage(id, "\__反恐小組%d局 [目前%d局結束] 恐怖份子%d局__/^n\__反恐小組%d人   恐怖份子%d人__/", ct_win+c_win+ctt_win+cttt_win+ctttt_win, ct_win+c_win+ctt_win+cttt_win+ctttt_win+tr_win+t_win+trr_win+trrr_win+trrrr_win, tr_win+t_win+trr_win+trrr_win+trrrr_win, GetTotalPlayer(2, 1), GetTotalPlayer(1, 1))
      }
}
GetTotalPlayer(team, alive)
{
     // team: 1 is TE, 2 is CT, 3 is Zombie, 4 is Human, 0 is all
     // alive: 0 is death and alive, 1 is alive
     static total, id
     total = 0
     
     for (id = 1; id <= g_maxplayers; id++)
     {
           if ( (alive && is_user_alive(id)) || (!alive && is_user_connected(id)) )
           {
                 if (
                 team == 1 && fm_cs_get_user_team(id) == FM_CS_TEAM_T ||
                 team == 2 && fm_cs_get_user_team(id) == FM_CS_TEAM_CT ||
                 team == 0
                 ) total++
           }
     }
     
     return total;
}
stock fm_cs_get_user_team(id)
{
     return get_pdata_int(id, OFFSET_CSTEAMS, OFFSET_LINUX);
}

獻花 x0
引用 | 編輯 陳冠冠
2024-01-05 09:55
42樓
  
能不能改 增加 只有自己得多少殺敵分數? 表情 表情

獻花 x0
引用 | 編輯 lonkystar
2024-02-07 10:56
43樓
  
看著不錯的樣子,感謝分享!

獻花 x0
<< 1 2 >>
跳頁: (共 2 頁)