Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using InfinityScript;
- using System;
- using System.Runtime.InteropServices;
- using System.Text;
- namespace Hud
- {
- public class Hud : BaseScript
- {
- private HudElem top;
- private HudElem nulled;
- private HudElem version;
- private HudElem auto;
- private HudElem tab;
- private HudElem tab1;
- public Hud()
- {
- OnInterval(240 * 1000, () =>
- {
- this.DoSponsorHUD();
- return true;
- });
- Log.Info("HUD By [Nulled.sx]");
- base.PlayerConnected += new Action<Entity> (ent =>
- {
- AfterDelay(3000, () =>
- {
- foreach (Entity P in Players)
- {
- P.Call("iprintln", "^0[^6Nulled.sx^0] ^7is AWESOME!");
- }
- });
- this.top = HudElem.CreateFontString(ent, "hudbig", 0.7f);
- this.top.SetPoint("TOPCENTER", "TOPCENTER", 0, 05);
- //this.info.Color = new Vector3(1f, 0.76f, 0f);
- this.top.HideWhenInMenu = false;
- this.top.SetText("^0[Welcome to ^7 Nulled ^0server FFA]");
- this.top.GlowColor = new Vector3(1f, 0f, 0.35f);
- this.top.GlowAlpha = 1f;
- this.top.Call("SetPulseFX", 56, 6050, 5500);
- this.always();
- this.MakeHUD(ent);
- });
- }
- private void MakeHUD(Entity player)
- {
- this.tab = HudElem.CreateFontString(player, "hudbig", 0.7f);
- this.tab.SetPoint("CENTER", "BOTTOM", 0, -70);
- this.tab.Call("settext", "nulled.sx sponsored by");
- this.tab.Alpha = 0f;
- this.tab.SetField("glowcolor", (new Vector3(0.2f, 1f, 0.8f)));
- this.tab.GlowAlpha = 1f;
- this.tab1 = HudElem.CreateFontString(player, "hudbig", 0.5f);
- this.tab1.SetPoint("CENTER", "BOTTOM", 0, -55);
- this.tab1.Call("settext", "skypegrab.net");
- this.tab1.Alpha = 0f;
- this.tab1.SetField("glowcolor", (new Vector3(1f, 0.0f, 0.5f)));
- this.tab1.GlowAlpha = 1f;
- player.OnNotify("tab", (Action<Entity>)(ent =>
- {
- this.tab.Alpha = 1;
- this.tab1.Alpha = 1;
- }));
- player.OnNotify("-tab", (Action<Entity>)(ent =>
- {
- this.tab.Alpha = 0;
- this.tab1.Alpha = 0;
- }));
- }
- public void always()
- {
- //----------------------------------------- HUD 2 ---------------------------------------------------
- this.nulled = HudElem.CreateServerFontString("hudbig", 0.5f);
- this.nulled.SetPoint("BOTTOMRIGHT", "BOTTOMRIGHT", 0, 0);
- //this.info.Color = new Vector3(0.98f, 0.16f, 0.38f);
- this.nulled.HideWhenInMenu = false;
- this.nulled.SetText("^0Nulled.sx");
- this.nulled.GlowColor = new Vector3(0f, 1f, 1f);
- this.nulled.GlowAlpha = 1f;
- //----------------------------------------- HUD 3 ---------------------------------------------------
- this.version = HudElem.CreateServerFontString("hudbig", 0.5f);
- this.version.SetPoint("TOPRIGHT", "TOPRIGHT", 0, 0);
- //this.info.Color = new Vector3(1f, 0f, 0.35f);
- this.version.HideWhenInMenu = false;
- this.version.SetText("^7V^52^7.^51");
- this.version.GlowColor = new Vector3(0f, 0.15f, 1f);
- this.version.GlowAlpha = 1f;
- //---------------------------------------------------------------------------------------------------
- }
- public void DoSponsorHUD()
- {
- this.auto = HudElem.CreateServerFontString("hudbig", 0.4f);
- this.auto.SetPoint("BOTTOMCENTER", "BOTTOMCENTER", 0, 0);
- //this.info.Color = new Vector3(1f, 0f, 0.35f);
- this.auto.HideWhenInMenu = false;
- this.auto.SetText("^0You are playing ^7in ^0[Nulled.sx]");
- this.auto.GlowColor = new Vector3(0f, 1f, 0f);
- this.auto.GlowAlpha = 1f;
- this.auto.Call("SetPulseFX", 56, 6050, 4000);
- AfterDelay(8000, () =>
- {
- auto.Call("destroy");
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement