Textdraw
#4

This is quite boring but easy to do

First, create a textdraw variable and another variable which we will need to color specific word.
pawn Код:
new Text:Textdraw0;
new Textdraw0_var=0;
Now, UnderOnGameModeInit create TD and a timer
pawn Код:
public OnGameModeInit()
{
    /*Your Textdraw create code*/
    SetTimer("UpdateTextdraw0",500,true);
}
Now, Add this anywhere
pawn Код:
forward UpdateTextdraw0();
public UpdateTextdraw0()
{
    switch(Textdraw0_var)
    {
        case 0 : TextDrawSetString(Textdraw0,"~r~H~w~ello");
        case 1 : TextDrawSetString(Textdraw0,"~W~H~g~e~w~llo");
        case 2 : TextDrawSetString(Textdraw0,"~w~He~b~l~w~lo");
        case 3 : TextDrawSetString(Textdraw0,"~w~Hel~y~l~w~o");
        case 4 : TextDrawSetString(Textdraw0,"~w~Hell~r~o");
    }
    if(Textdraw0_var == 4) Textdraw0_var = -1;
    ++Textdraw0_var;
    return 1;
}
Reply


Messages In This Thread
Textdraw - by Youtube12 - 25.08.2012, 22:43
Re: Textdraw - by Roko_foko - 25.08.2012, 22:48
AW: Textdraw - by Youtube12 - 26.08.2012, 12:32
Re: Textdraw - by [MM]RoXoR[FS] - 26.08.2012, 13:00
AW: Textdraw - by Youtube12 - 26.08.2012, 13:39
AW: Textdraw - by Youtube12 - 26.08.2012, 14:56
Re: Textdraw - by Akira297 - 26.08.2012, 14:57
AW: Textdraw - by Youtube12 - 26.08.2012, 15:13
Re: Textdraw - by Akira297 - 26.08.2012, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)