02-17-2017, 17:05
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.
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.