in my script, very easy, but i have a problem:
the text that i want to display disappear in a few minutes, how can i make it permanentely during the match??
script:
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Timers;
using InfinityScript;
namespace Myscript
{
public class My : BaseScript
{
public HudElem info;
public override void OnPlayerDamage(Entity player, Entity inflictor, Entity attacker, int damage, int dFlags, string mod, string weapon, Vector3 point, Vector3 dir, string hitLoc)
{
info.SetText("\r\r");
if (mod == "MOD_FALLING" || damage != 0 || player.Health > 0)
{
info.SetPoint("TOPRIGHT", "TOPRIGHT", -10, 0);
info.HideWhenInMenu = true;
info.SetText("^2Health: " + player.Health + "\n^1Damage: " + damage);
}
}
public My()
: base()
{
info = HudElem.CreateServerFontString("hudsmall", 0.7f);
info.SetPoint("BOTTOMLEFT", "BOTTOMLEFT", 10, -120);
info.HideWhenInMenu = false;
info.SetText("^1Server & Plugin ^5By ^8Peppe PE");
}
}
}
p.s. i'm noob in programming.