Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Name Team
#1
There is a problem with the output text names for command.
doInfo() - is a problem here.

Code:
showTeams()
{

    level.infotext = NewHudElem();
    level.infotext.alignX = "BOTTOMLEFT";
    level.infotext.alignY = "BOTTOM";
    level.infotext.horzAlign = "BOTTOMLEFT";
    level.infotext.vertAlign = "BOTTOM";
    level.infotext.y = 30;
    level.infotext.x = 5;
    level.infotext.foreground = true;
    level.infotext.fontScale = 1.2;
    level.infotext.font = "default";
    level.infotext.alpha = 1;
    level.infotext.color = ( 1.0, 1.0, 1.0 );

    wait 0.20;
}

Code:
doInfo()
{
self endon("disconnect");

for(i = 10; i >= 0; i -= 1)
{

//**************************************************\\
ttm = ??????(the standard name of the team "axis");
ttm2 = ??????(the standard name of the team "Allies");
//**************************************************\\

level.infotext setText(ttm2 + ": ^4" + level.aliveCount["axis"] + " ^1| " + ttm + ": ^4" + level.aliveCount["allies"]);

if(i == 0)
{
i = 10;
}

wait 1;
}
}

in file _team.gsc
Code:
setDvar("g_TeamName_Allies", getTeamShortName( "allies" ));
setDvar("g_TeamName_Axis", getTeamShortName( "axis" ));
[Image: i12284Logob255.gif]
Reply

#2
Code:
ttm = "??????(the standard name of the team "axis")";
ttm2 = "??????(the standard name of the team "Allies")";

Try that instead, what was the error?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Call of Duty loser calls in SWAT team hoax on kid who beat him RaZ 3 3,827 04-24-2014, 19:31
Last Post: Casper
Question Help Team DAMAGE offhand E-losev 0 2,288 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 4,355 09-12-2013, 17:32
Last Post: Yamato
  [Release] Team Customizer iPaddie 35 26,115 04-14-2013, 12:34
Last Post: Nero Z zero
  Team struct Deviler86 6 5,134 04-10-2013, 15:23
Last Post: x1412
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 6,552 03-15-2013, 12:53
Last Post: lammv
  Sending a plaeyr to axis or allies team lammv 0 1,895 01-26-2013, 18:59
Last Post: lammv
  [Request] Team change by admin command. Dumas 10 8,356 11-29-2012, 21:38
Last Post: 99IRock
Question Help MW3 infected team help koro35 12 8,665 11-23-2012, 07:45
Last Post: 99IRock
  [Request] change team name plugin james ford 7 6,863 11-13-2012, 22:05
Last Post: parsa89

Forum Jump:


Users browsing this thread:
2 Guest(s)

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