Font rainbow
#1

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?
Reply
#2

If you need someone to script for you, post here : https://sampforum.blast.hk/showthread.php?tid=447813
Reply
#3

Код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)