Thread: Title + Text

Results 1 to 3 of 3
  1. #1
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic

    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
    Last edited by mathieutje12; 10-24-2010 at 09:56 AM.

  2. #2
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    [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
    [YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]

  3. The Following User Says Thank You to zxz0O0 For This Useful Post:

    mathieutje12 (10-24-2010)

  4. #3
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    can u tell me the better way too =P?

Similar Threads

  1. Title Text Change
    By N00B1O2 in forum Suggestions, Requests & Help
    Replies: 14
    Last Post: 09-11-2011, 03:52 AM
  2. Question about Text title change
    By | ∞ | in forum General
    Replies: 10
    Last Post: 06-10-2011, 02:38 PM
  3. text title change.
    By Яonaldø in forum Suggestions, Requests & Help
    Replies: 2
    Last Post: 06-06-2011, 12:09 AM
  4. 500 posts - Text Title Change?
    By Paul in forum Suggestions, Requests & Help
    Replies: 5
    Last Post: 05-25-2011, 07:21 AM
  5. Text Title Change request
    By A$IAN in forum Profile Edit Requests
    Replies: 1
    Last Post: 05-12-2011, 05:06 PM