如何用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