引用 | 編輯
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 |