Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Icon on HUD
#1
Hi!
I tried to make an icon on HUD with HudElem but it doesn't work.
Code:

OnMapChange()
{
CreateHud_Streak0();
}

private void CreateHud_Streak1()
{
HudElem hud = CreateNewHudElem();
hud.Type = HudElementTypes.Icon;
hud.ShowToEnt = Entity_World;
hud.HideInMenu = true;
hud.PointType = 82;
hud.OriginY = 160;
hud.OriginX = 5;
hud.SetIcon("iw5_cardicon_brassknuckles");
hud.IconHeight = 64;
hud.IconWidth = 64;
}

Maybe I'm doing something wrong?

If I will replace
hud.Type = HudElementTypes.Icon;
hud.SetIcon("iw5_cardicon_brassknuckles");

To

hud.Type = HudElementTypes.Text;
hud.SetString("kindatext");

it's works.

So I need help.

And also second question:
Can I give killstreaks for players or Addon didn't supports this?
Thanks.
[Image: b_560_95_1.png]
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.