pohong

|
分享:
▼
x0
|
[1.6][其他] 如何用CVAR
(我不懂了用--)
圖 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
[樓 主]
From:未知地址 | Posted:2013-07-08 17:49 |
|
|
pohong

|
分享:
▲
▼
下面是引用 Rubbish-Nec 於 2013-07-08 21:55 發表的 :  Hud的設置都會在sma有使用"set_hudmessage"
第一至三個參數就是對應Hud的RGB數值了 複製程式
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]])
}
} 怎么改啊,帮我改一改吧...绿色额
[ 此文章被pohong在2013-07-09 10:20重新編輯 ]
|
|
x0
[4 樓]
From:未知地址 | Posted:2013-07-09 09:48 |
|
|
Gamesbrok

|
分享:
▲
▼
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
[5 樓]
From:未知地址 | Posted:2013-07-09 11:57 |
|
|
pohong

|
分享:
▲
下面是引用 Gamesbrok 於 2013-07-09 11:57 發表的 :  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 的地方改掉.
例子:
谢谢你的帮助,终于变成绿色了。
|
|
x0
[6 樓]
From:未知地址 | Posted:2013-07-09 12:03 |
|
|
|