Auto-Color changing TextDraw
#3

Quote:
Originally Posted by Misiur
Посмотреть сообщение
pawn Код:
//Somewhere high
forward ChangeColor();

//Before closing braket of OnGameModeInit
SetTimer("ChangeColor", 60000, true);

//Under OnGameModeInit
public ChangeColor() {
    static tick = 0;
    tick++;
    static colors[4][4] = {  "~W~", "~Y~", "~B~", "~R~"};
    static first[5] = "Text", second[5] = "Draw";
    new str[32];
    format(str, sizeof(str), "%s%s %s%s", colors[tick%2], first, colors[(tick%2)+2], second);
    TextDrawSetString(Text1, str);
    return 1;
}
It isn't very flexible, but works for your example
Not tested yet, but thank you! First I thought about color chaning only for one letter on every 2 seconds maybe the textdraw to be white and it starts from the frist letter to color it in blue maybe to the last one and again but I don't think that somebody would do that .
Reply


Messages In This Thread
Auto-Color changing TextDraw - by x96664 - 30.07.2012, 14:46
Re: Auto-Color changing TextDraw - by Misiur - 30.07.2012, 15:12
Re: Auto-Color changing TextDraw - by x96664 - 30.07.2012, 15:23

Forum Jump:


Users browsing this thread: 3 Guest(s)