引用 | 编辑
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楼
▲ ▼ |