PostHelpSay text with player name

Posts 1–8 of 8 · Page 1 of 1
Say text with player name
Hey, how do i put text in the center of the screen with the player his name?
Create a text like you normally would do, except that you - instead of text - put the value "self.name" without the quotation markers.
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
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...


               
                }
}
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^."
just in ur text self.name example: announcement("^7V.I.P ( ^2" + (self.name) + " ^7) ^7has entered the game!");
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?
its based in seconds so: wait 1; is 1 sec wait 60; is 1 min ...
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us