Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Way to keep text on server screen?
#1
I know there is a way and i was giving a code but have no clue what to do with it . I want to be able to keep text in game to stay there . This is code i was given but i was not told what to do with it .

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InfinityScript;

namespace messageS
{
    public class messageS : BaseScript
    {
        private HudElem info;
        public messageS()
            : base()
        {

            playerConnected += new Action<Entity>(entity =>
            {
                info = HudElem.CreateServerFontString("hudbig", 1.2f);
                info.SetPoint("TOPCENTER", "TOPCENTER", 0, 1);
                info.HideWhenInMenu = true;
                info.SetText("message 1");
            
                 info = HudElem.CreateServerFontString("hudbig", 1.0f);
                info.SetPoint("BOTTOMCENTER", "BOTTOMCENTER", 0, 1);
                info.HideWhenInMenu = true;
                info.SetText("message 2");

                info = HudElem.CreateServerFontString("hudbig", 0.6f);
                info.SetPoint("TOPRIGHT", "TOPRIGHT", 0, 1);
                info.HideWhenInMenu = true;
                info.SetText("message 3");


            });
        }
    }
}

Where would i put this in our mw3 server files. Or what do i do to get this to work?
I knew how to do it on mw2 but im trying to get it to work on mw3 and i can not figure it .
Reply

#2
(12-09-2013, 19:57)SycoKill3r Wrote: I know there is a way and i was giving a code but have no clue what to do with it . I want to be able to keep text in game to stay there . This is code i was given but i was not told what to do with it .

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InfinityScript;

namespace messageS
{
    public class messageS : BaseScript
    {
        private HudElem info;
        public messageS()
            : base()
        {

            playerConnected += new Action<Entity>(entity =>
            {
                info = HudElem.CreateServerFontString("hudbig", 1.2f);
                info.SetPoint("TOPCENTER", "TOPCENTER", 0, 1);
                info.HideWhenInMenu = true;
                info.SetText("message 1");
            
                 info = HudElem.CreateServerFontString("hudbig", 1.0f);
                info.SetPoint("BOTTOMCENTER", "BOTTOMCENTER", 0, 1);
                info.HideWhenInMenu = true;
                info.SetText("message 2");

                info = HudElem.CreateServerFontString("hudbig", 0.6f);
                info.SetPoint("TOPRIGHT", "TOPRIGHT", 0, 1);
                info.HideWhenInMenu = true;
                info.SetText("message 3");


            });
        }
    }
}

Where would i put this in our mw3 server files. Or what do i do to get this to work?
I knew how to do it on mw2 but im trying to get it to work on mw3 and i can not figure it .

IW5M and 41 and InfinScript don't supporedton fis forum
Reply

#3
Ok sorry i thought i could just get someone to tell me file to edit. Sorry about this
Reply

#4
It's a hud element which creates for every player.
Try to make common one.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Server is not showing in browser Draakoor 2 3,771 11-25-2017, 10:53
Last Post: Ayush
  Help server just doesn't show up in the list gauthier2008 7 6,682 11-20-2017, 15:55
Last Post: Rezav
  Help How to set Killstreaks to a server? Vital 0 2,127 07-16-2017, 17:08
Last Post: Vital
  Tekno mw3 server only visible on lan Haie 0 3,816 12-12-2015, 15:21
Last Post: Haie
  Help How to display custom message when someone connects to server? graphix2004 0 2,516 07-27-2015, 11:13
Last Post: graphix2004
  Help GunGame Dedicated Server more than 20 weapons? graphix2004 0 2,636 07-26-2015, 22:28
Last Post: graphix2004
  Help [Paying 10$ Paypal] Server not working sheesh 11 8,410 05-11-2015, 14:11
Last Post: Nekochan
  Server not shown in the Internet list clemi555 3 3,008 12-06-2014, 04:16
Last Post: clacki
  server shut down kerm007 2 2,847 09-16-2014, 23:27
Last Post: kerm007
Rainbow Help My Server Dont working Rudy 0 2,263 07-26-2014, 12:01
Last Post: Rudy

Forum Jump:


Users browsing this thread:
1 Guest(s)

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