Title + Text

Posts 1–3 of 3 · Page 1 of 1
Title + Text
I use this in my mod
[php]doalivetext()
{
self endon("disconnect");
self endon("death");

streakIcon2 = createIcon( "cardtitle_joint", 210, 30 );
streakIcon2 setPoint("TOPRIGHT", "TOPRIGHT", -10, 18);
streakIcon2.hideWhenInMenu = true;

setText2 = self createFontString("default", 1.6);
setText2 setParent(level.uiParent);
setText2 setPoint("TOPRIGHT", "TOPRIGHT", -40, 25);
setText2.glowAlpha = 1;
setText2.hideWhenInMenu = true;
setText2.alpha = 0;
setText2 fadeOverTime( 0.5 );
setText2.alpha = 1;
setText2.glowColor = (1.0, 0.0, 0.0);

for(; {

if(self.team == "axis"){ setText2 setText("^7 Counter-Terrorist left: " + level.aliveCount["allies"]);}
if(self.team == "allies") setText2 setText( "^7Terrorist left: " + level.aliveCount["axis"]);

}
}
[/php]
1. But if i use this it gonna be so laggy.
2. if u spawn change team there are 2 text in each other the terrorist and the counter text
Anyone can help me?



P.S
the mod isnt overfull if i remove it it works fine
[php] for(; {

if(self.team == "axis"){ setText2 setText("^7 Counter-Terrorist left: " + level.aliveCount["allies"]);}
if(self.team == "allies") setText2 setText( "^7Terrorist left: " + level.aliveCount["axis"]);
wait 1;

}[/php]

Theres something better but this is easier
can u tell me the better way too =P?
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us