Code:HudElem x; x = HudElem.CreateServerFontString("hudsmall", 0.5f); *****tPoint("BOTTOMLEFT", "BOTTOMLEFT", 2, -140); *****tText("^1MPGH.NET!!!");
I would like to add onscreen text to support my teamspeak for my clan. Right now the screen has Galactic Gaming iSnipe on the topright already i would like the onscreen text to be in the topleft. can someone help me? Please give detailed instructions...im a noob lol
Code:HudElem x; x = HudElem.CreateServerFontString("hudsmall", 0.5f); *****tPoint("BOTTOMLEFT", "BOTTOMLEFT", 2, -140); *****tText("^1MPGH.NET!!!");
Okay i posted the code like this
(down)
isLastRestXPAward( baseXP )
{
if ( !getdvarint( "scr_restxp_enable" ) )
return false;
restXPAwardRate = getDvarFloat( "scr_restxp_restedAwardScale" ); // as a fraction of base xp
wantGiveRestXP = int(baseXP * restXPAwardRate);
mayGiveRestXP = self getPlayerData( "restXPGoal" ) - self getRankXP();
if ( mayGiveRestXP <= 0 )
return false;
if ( wantGiveRestXP >= mayGiveRestXP )
return true;
return false;
}
syncXPStat()
{
xp = self getRankXP();
self maps\mp\gametypes\_persistence::statSet( "experience", xp );
}
HudElem x;
x = HudElem.CreateServerFontString("hudsmall", 0.5f);
*****tPoint("BOTTOMLEFT", "BOTTOMLEFT", 2, -140);
*****tText("^5JOIN OUR TEAMSPEAK!! galacticgaming.teamspeak****");
i tried it like this (pasted the code into _rank.gsc) and it didnt work
Last edited by Michaelclaw; 04-23-2013 at 01:15 AM.
Oh, my bad. I didn't know you were talking about GSC. Just look at sources to find out how. I don't use GSC myself.
Look here:
https://www.mpgh.net/forum/308-call-d...ml#post4311594
Scroll a little down and you find the scrolling text
Or just to set text:
Code:WriteText() { myText = self createFontString( "objective", 1.3 );//Change font size myText setPoint( "TOPRIGHT", "TOPRIGHT");//Set the position of the text myText setText("This is my Text :D"); //Set the text }
/solved
/close