Font rainbow - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread:  Font rainbow (
/showthread.php?tid=651715)
 
Font rainbow - 
RarKiiNG -  26.03.2018
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?
Re: Font rainbow - 
Dayrion -  26.03.2018
If you need someone to script for you, post here : 
https://sampforum.blast.hk/showthread.php?tid=447813
Re: Font rainbow - 
BulletRaja -  26.03.2018
Код:
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