question about textdraw
#1

how to make textdraw change his color automaticly , i saw it on a server it was like this :

www.site.com <== is green

then : w turn white then return green , the other w , the other w , s become white then return green

i hope u understand what i am saying
________
Zx14 Vs Hayabusa
Reply
#2

Bump
________
THE CIGAR BOSS
Reply
#3

Quote:
Originally Posted by [AC
Etch ]
how to make textdraw change his color automaticly , i saw it on a server it was like this :

www.site.com <== is green

then : w turn white then return green , the other w , the other w , s become white then return green

i hope u undersand what i am saying
You are trying to make a flashing textdraw, I asked this too, but get no fair answer.
Reply
#4

There's multiple ways to achieve this effect, my best bet would be creating a timer that set's the textdraw string.

1st String: "~g~w~w~ww.site.com"
2nd String: "w~g~w~w~w.site.com"
3rd String: "ww~g~w~w~.site.com"
4th String: "www.~g~s~w~ite.com"

and so on...

Create a variable that controls the steps, and then let your timer to the rest of the work.
Reply
#5

any other ways?
________
Shower wife
Reply
#6

pawn Код:
forward TextdrawColorChange();
pawn Код:
SetTimer("TextdrawColorChange", 6000, 0);
pawn Код:
public TextdrawColorChange()
{
 new Colors[] = { your colors };
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 TextDrawHideForPlayer(i,your textdraw);
 TextDrawColor(Textdraw0,Colors[random(sizeof(Colors))]);
 TextDrawShowForPlayer(i,your textdraw);
 }
 SetTimer("TextdrawColorChange", 6000, 0);
}
Try.
Reply
#7

Quote:
Originally Posted by Razvann
pawn Код:
forward TextdrawColorChange();
pawn Код:
SetTimer("TextdrawColorChange", 6000, 0);
pawn Код:
public TextdrawColorChange()
{
 new Colors[] = { your colors };
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 TextDrawHideForPlayer(i,your textdraw);
 TextDrawColor(Textdraw0,Colors[random(sizeof(Colors))]);
 TextDrawShowForPlayer(i,your textdraw);
 }
 SetTimer("TextdrawColorChange", 6000, 0);
}
Try.
I don't think that's the effect he wanted, that changes the color of the entire textdraw. He want's a linear flasher that flashes each character individually via TextDrawSetString while using GameText color modifiers.

Here's the link, https://sampwiki.blast.hk/wiki/Colors_List.
Reply
#8

Quote:
Originally Posted by Razvann
pawn Код:
forward TextdrawColorChange();
pawn Код:
SetTimer("TextdrawColorChange", 6000, 0);
pawn Код:
public TextdrawColorChange()
{
 new Colors[] = { your colors };
 for(new i = 0; i < MAX_PLAYERS; i++)
 {
 TextDrawHideForPlayer(i,your textdraw);
 TextDrawColor(Textdraw0,Colors[random(sizeof(Colors))]);
 TextDrawShowForPlayer(i,your textdraw);
 }
 SetTimer("TextdrawColorChange", 6000, 0);
}
Try.
it changes the whole textdraw color , and it doesnt get back , and i want each character to flash not the whole textdraw can u help me making that?
________
Ipad accessories
Reply
#9

Код:
new tc = 0; // Global Variable
Код:
forward SiteTextdraw();
Код:
SetTimer("SiteTextdraw", 5000, 1);
Код:
public SiteTextdraw()
{
   new string[64];
   switch (tc)
   {
     case 0:
     {
        format(string, sizeof(string), "~g~w~w~ww.AirCombat.tk");
        tc = 1;
     }
     case 1:
     {
        format(string, sizeof(string), "~w~w~g~w~w~w.AirCombat.tk");
        tc = 2;
     }
     case 2:
     {
        format(string, sizeof(string), "~w~ww~g~w~w~.AirCombat.tk");
        tc = 3;
     }
     case 3:
     {
        format(string, sizeof(string), "~w~www.~g~A~w~irCombat.tk");
        tc = 4;
     }
     case 4:
     {
        format(string, sizeof(string), "~w~www.A~g~i~w~rCombat.tk");
        tc = 5;
     }
     case 5:
     {
        format(string, sizeof(string), "~w~www.Ai~g~r~w~Combat.tk");
        tc = 6;
     }
     case 6:
     {
        format(string, sizeof(string), "~w~www.Air~g~C~w~ombat.tk");
        tc = 7;
     }
     case 7:
     {
        format(string, sizeof(string), "~w~www.AirC~g~o~w~mbat.tk");
        tc = 8;
     }
     case 8:
     {
        format(string, sizeof(string), "~w~www.AirCo~g~m~w~bat.tk");
        tc = 9;
     }
     case 9:
     {
        format(string, sizeof(string), "~w~www.AirCom~g~b~w~at.tk");
        tc = 10;
     }
     case 10:
     {
        format(string, sizeof(string), "~w~www.AirComb~g~a~w~t.tk");
        tc = 11;
     }
     case 11:
     {
        format(string, sizeof(string), "~w~www.AirComba~g~t~w~.tk");
        tc = 12;
     }
     case 12:
     {
        format(string, sizeof(string), "~w~www.AirCombat.~g~t~w~k");
        tc = 13;
     }
     case 13:
     {
        format(string, sizeof(string), "~w~www.AirCombat.t~g~k");
        tc = 0;
     }
   }
   TextDrawSetString(textdrawname, string);
}
I haven't tested it, just wrote it in here.
Reply
#10

tyvm but can i ask u 1 more question?? , can u make it for the text : www.AirCombat.tk ?
________
DEPAKOTE PREGNANCY
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)