引用 | 编辑
pohong
2013-07-08 17:49 |
楼主
▼ |
||
x0
图 1. 如何用CVAR 在amxx.cfg试过了,也不行啊。 如何将紫色变成绿色? /****************************************************************** ** ** **CVAR Value: **Rcolour Adjust the colour of HudMessage(Red) ** **Gcolour Adjust the colour of HudMessage(Green) ** **BColour Adjust the colour of HudMessage(Blue) ** **RequiredDamage The required damage for getting bonus ** **DamageXPBonus The xp bonus for reaching required damage ** **PointsBonus The points bonus for reaching required damage ** **KillXPBonus The xp bonus for killing a people ** **KillPointsBonus The points bonus for killing a people 不会弄-- 请大家来帮帮我 x0
|
引用 | 编辑
Rubbish-Nec
2013-07-08 21:55 |
3楼
▲ ▼ |
Hud的设置都会在sma有使用"set_hudmessage"
第一至三个参数就是对应Hud的RGB数值了 x0 |
引用 | 编辑
pohong
2013-07-09 09:48 |
4楼
▲ ▼ |
下面是引用 Rubbish-Nec 于 2013-07-08 21:55 发表的 :复制程式 public ShowHud() { for(new id = 0; id<= 31; id++) { new name[33][33] get_user_name(id, name[id], 32 ) new r = get_cvar_num("Rcolour") new g = get_cvar_num("Gcolour") new b = get_cvar_num("Bcolour") set_hudmessage(r, g, b, 0.7, 0.65, 0, 0.0, 999999.0,_,_,4) ShowSyncHudMsg(id, g_msg,"名字:%s^n等级:%d|GP:%d^n技能点数:%d^n经验值:%d/%d", name[id],g_lv[id], g_points[id], g_sk[id], g_xp[id], RequiredXP[g_lv[id]]) } } x0 |
引用 | 编辑
Gamesbrok
2013-07-09 11:57 |
5楼
▲ ▼ |
set_hudmessage(red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2,channel=4);
r= 红 g= 绿 b= 蓝 你可以把英文字删除掉,或是把上面define 的地方改掉. 例子: set_hudmessage(0, 255, 0, 0.7, 0.65, 0, 0.0, 999999.0,_,_,4) x0 |