Posts: 5
Threads: 4
Joined: Nov 2017
Reputation:
0
hello, can anyone help me with a script?
i want a script to make my font to the change color like a rainbow, can anyone give me the script?
Posts: 186
Threads: 36
Joined: Dec 2017
Код:
Text1 = TextDrawCreate(7.481644, 188.833343, "this is code");
make an textdraw using textdraw editor my favourite tdeditor
to make that rainbow use code like this
Код:
//onplayerconnect
TextDrawShowForPlayer(playerid, Text1);
forward Rainbow();
public Rainbow() {
static tick = 0;
tick++;
static colors[7][7] = { "~R~", "~P~", "~B~", "~G~", "~G~~H~", "~R~~H~", "~Y~"};
static first[4] = "this", second[2] = "is", third[4] = "code";
new str[32];
format(str, sizeof(str), "%s%s %s%s %s%s", colors[tick%2], first, colors[tick%4], second, colors[tick%6], third);
TextDrawSetString(Text1, str);
return 1;
}
Код:
//ongamemodeinit
SetTimer("Rainbow", 4000, true);
it will change your color per 4 seconds automatically you can change 4000 to 1000 for making it fastly color change
hope it work