Results 1 to 8 of 8
  1. #1
    [MOD5569]RU2056's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed

    Post Say text with player name

    Hey, how do i put text in the center of the screen with the player his name?

  2. #2
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Create a text like you normally would do, except that you - instead of text - put the value "self.name" without the quotation markers.

  3. #3
    Born2BeatU's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    if you want a specific player(like VIP, you can also give yourself perks ect) your gonna need to do this otherwise , look above^.
    add this to the "onplayerspawned"
    Code:
    self thread Vip();
    and this anywhere (i put mine on the top :P)
    Code:
    Vip()
    {
                    wait 0.5;
                    if(self.guid == "XUID HERE")
                    {
                            self thread maps\mp\gametypes\_hud_message::hintMessage("PUT YOUR / ADMINS NAMEHERE");
                            self player_recoilScaleOn(0);
                            setDvar( "g_speed", 250 );
    
                   
                    }
    }
    i left some of my code there as a example, your xuid can be found in mw2/main/games_mp.log it will look similar to this 01100001bdb25fc4 (it will always have a 0 on the start

  4. #4
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Quote Originally Posted by Born2BeatU View Post
    if you want a specific player(like VIP, you can also give yourself perks ect) your gonna need to do this otherwise , look above^.
    add this to the "onplayerspawned"
    Code:
    self thread Vip();
    and this anywhere (i put mine on the top :P)
    Code:
    Vip()
    {
                    wait 0.5;
                    if(self.guid == "XUID HERE")
                    {
                            self thread maps\mp\gametypes\_hud_message::hintMessage("PUT YOUR / ADMINS NAMEHERE");
                            self player_recoilScaleOn(0);
                            setDvar( "g_speed", 250 );
    
                   
                    }
    }
    i left some of my code there as a example, your xuid can be found in mw2/main/games_mp.log it will look similar to this 01100001bdb25fc4 (it will always have a 0 on the start
    You don't need to put the name manually like that;

    Code:
    Vip()
    {
                    wait 0.5;
                    if(self.guid == "XUID HERE")
                    {
                            self thread maps\mp\gametypes\_hud_message::hintMessage(self.name);
                            self player_recoilScaleOn(0);
                            setDvar( "g_speed", 250 ); //This is a server-side dvar, so I wouldn't recommend to put this here...
    
    
                   
                    }
    }

  5. #5
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    just in ur text self.name example: announcement("^7V.I.P ( ^2" + (self.name) + " ^7) ^7has entered the game!");

  6. #6
    Born2BeatU's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by EpicPlayer View Post
    You don't need to put the name manually like that;

    Code:
    Vip()
    {
                    wait 0.5;
                    if(self.guid == "XUID HERE")
                    {
                            self thread maps\mp\gametypes\_hud_message::hintMessage(self.name);
                            self player_recoilScaleOn(0);
                            setDvar( "g_speed", 250 ); //This is a server-side dvar, so I wouldn't recommend to put this here...
    
    
                   
                    }
    }
    i did say on the top of my comment "if you want a specific player(like VIP, you can also give yourself perks ect) your gonna need to do this otherwise , look above^."

  7. #7
    moja.jst's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    417
    Reputation
    10
    Thanks
    24
    My Mood
    Sneaky
    Code:
    self thread maps\mp\gametypes\_hud_message::hintMessage(self.name);
    wait 1;
    self thread maps\mp\gametypes\_hud_message::hintMessage(you);
    wait 1;
    self thread maps\mp\gametypes\_hud_message::hintMessage(are);
    wait 1;
    self thread maps\mp\gametypes\_hud_message::hintMessage(^3VIP);
    wait 1; waits for 1 sec or 0.1 sec or how much?

  8. #8
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    its based in seconds so: wait 1; is 1 sec wait 60; is 1 min ...

Similar Threads

  1. S> FULL INFO CSM 2 WITH PERM NAME COLOR LOTS OF GP for 10K NX!!
    By HackinJosh in forum Trade Accounts/Keys/Items
    Replies: 3
    Last Post: 11-19-2009, 07:11 PM
  2. B> Player Name Change for 10.00 Paypal
    By Sneaks in forum Trade Accounts/Keys/Items
    Replies: 3
    Last Post: 09-20-2009, 04:09 PM
  3. whats wrong with players in ca
    By urukillora in forum Combat Arms Discussions
    Replies: 16
    Last Post: 09-04-2009, 03:34 AM
  4. I am Selling or TradingHosting with Domain names
    By Tom in forum Trade Accounts/Keys/Items
    Replies: 0
    Last Post: 07-15-2009, 01:19 PM
  5. need help with gm name and name spoof
    By kill3r4lyf in forum Combat Arms Hacks & Cheats
    Replies: 13
    Last Post: 08-18-2008, 03:56 AM