如何用CVAR

Home Home
引用 | 編輯 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
引用 | 編輯 絕影華
2013-07-08 17:59
1樓
  
下面是引用 pohong 於 2013-07-08 17:49 發表的 我不懂了用--,|如何用CVAR: 到引言文
如何用CVAR
在amxx.cfg试过了,也不行啊。
如何将紫色变成绿色?
/******************************************************************
 **                                                              **
.......



不如你發文前先參考相關sma

獻花 x0
引用 | 編輯 pohong
2013-07-08 18:39
2樓
  
下面是引用 絕影華 於 2013-07-08 17:59 發表的 : 到引言文




不如你發文前先參考相關sma
--看了,但是也不行啊--那个Gcolour在amxx.cfg写了后,没反应~

獻花 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 發表的 : 到引言文
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]])
 }
}
怎么改啊,帮我改一改吧...绿色额

獻花 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
引用 | 編輯 pohong
2013-07-09 12:03
6樓
  
下面是引用 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