引用 | 編輯
honfai99
2010-02-26 22:33 |
樓主
▼ |
||
x0
#include <amxmodx> #include <fakemeta> #include <fakemeta_util> #include <fun> #include <cstrike> #include <engine> #define PLUGIN "Show Health Fix" #define VERSION "1.0" #define AUTHOR "Fai" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_forward(FM_PlayerPreThink, "show_health") } public show_health(id) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("Health"), _, id) write_byte(get_user_health(id)) message_end() } 這樣是將血量HUD的位置強逼他顯示玩家過千的血量 , 但都不行啊 x0
|
引用 | 編輯
Rubbish-Nec
2010-02-26 22:46 |
1樓
▲ ▼ |
樓主發原碼可以用[c0de][/c0de]指令喔←那個是o喔
回正題,如果讓我選,我這樣寫: 題外話:樓主#include了太多模塊了,太多會吃你的資源 複製程式 #include <amxmodx> #include <fakemeta> #define PLUGIN "Show Health Fix" #define VERSION "1.0" #define AUTHOR "Fai" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_forward(FM_PlayerPostThink, "fw_PlayerPostThink", 1) } public fw_PlayerPostThink(id) { set_hudmessage(255, 255, 0, 0.02, 0.9, 1, 0.0, 5.0, 5.0, 5.0, -1) show_hudmessage(id, "血量:%d",get_user_health(id)) } x0 |
引用 | 編輯
honfai99
2010-02-26 22:50 |
2樓
▲ ▼ |
不是喔 , 我是HUD血量破解255上限 , 我當然知道 , 我在第二地方顯示出來 , 例如 : 血量 : xxx , 我不要這樣 ,
我要的是 十 1000 , 是在普通 CS 顯示的地方顯示出來 , 破解 255 上限 , 你明不明白 ? -------------------------------------------- 還有我想要 show_health , 我不喜歡用 fw_PlayerPreThink 我比較喜歡本新的內容意思我會寫 show_health . x0 |
引用 | 編輯
supermanhugo
2010-02-26 22:53 |
3樓
▲ ▼ |
(如果這樣簡單就ok的話= =|||
(現在應該不會還要用hudmessage x0 |
引用 | 編輯
a7811311622
2010-02-27 00:44 |
4樓
▲ ▼ |
引用 | 編輯
asean75300
2010-02-27 10:20 |
5樓
▲ ▼ |
WOW ~
所以是不可能破千囉? 不過大大們都好屌XD x0 |
引用 | 編輯
asean75300
2010-02-27 15:09 |
7樓
▲ ▼ |
如果能用破千,子彈破200和備彈破254應該不成問題吧?
x0 |
引用 | 編輯
honfai99
2010-02-28 02:07 |
8樓
▲ ▼ |
有些伺服器就是強逼他顯示出來 , 例如有幾億血 , 它顯示出來的數字就覆蓋了防彈衣的圖案和數字 , 似乎是用 Amxx 製造出來的 , 我覺得不是修改 methmod.dll 和 HL 引擎的 . . .
x0 |
引用 | 編輯
honfai99
2010-02-28 14:58 |
10樓
▲ ▼ |
可能先將原本 CS 的顯示血量不顯示出來 , 之後利用 get_user_orgin 來知道普通 CS 顯示血量的位置 , 再用專用的 SPR 檔 來顯示那個十字的血量圖案 + 數字 . . .
x0 |
引用 | 編輯
a7811311622
2010-02-28 16:03 |
11樓
▲ ▼ |
引用 | 編輯
a7811311622
2010-02-28 21:28 |
13樓
▲ ▼ |
引用 | 編輯
dvgadvga
2010-03-01 10:47 |
15樓
▲ ▼ |
在Mp.dll內找到的
m_bHealthValue max_health SUB_Remove called on entity with health > 0\n "%s<%i><%s><%s>" attacked "%s<%i><%s><%s>" with "%s" (damage "%d") (damage_armor "%d") (health "%d") (armor "%d")\n x0 |
引用 | 編輯
a7811311622
2010-03-01 12:28 |
16樓
▲ ▼ |
引用 | 編輯
tony987852
2010-03-06 20:40 |
22樓
▲ ▼ |
那..金錢上限那個又是怎樣...他可以顯示成$9999999喔...金額沒多也沒少
x0 |
引用 | 編輯
a7811311622
2010-03-06 21:13 |
23樓
▲ ▼ |