Rainbow chat
#7

Quote:
Originally Posted by OKStyle
Посмотреть сообщение
pawn Код:
stock SendRainbowMessage(playerid, const text[]) // RyDeR`
{
new
color_Red,
color_Green,
color_Blue,
string[256]
;
for(new i = strlen(text), j = i; i > 0; --i)
{
color_Red = floatround((0xFF * floatsin((i / (j / 3.0)), radian)));
color_Green = floatround((0xFF / j) * i);
color_Blue = floatround((0xFF / j) * (j - i));

format(string, sizeof(string), "%s{%06x}%c", string, color_Red << 16 | color_Green << 8 | color_Blue, text[j - i]);

if(strlen(string) > 128)
{
SendClientMessage(playerid, -1, string);
string = "";
}
}
return SendClientMessage(playerid, -1, string);
}

and this ?>


Reply


Messages In This Thread
Rainbow chat - by [REBOK] - 14.06.2011, 11:13
Re: Rainbow chat - by Lorenc_ - 14.06.2011, 11:14
Re: Rainbow chat - by [REBOK] - 14.06.2011, 11:24
Re: Rainbow chat - by OKStyle - 11.09.2011, 14:14
Re: Rainbow chat - by RyDeR` - 11.09.2011, 14:23
Re: Rainbow chat - by Mean - 11.09.2011, 16:50
Re: Rainbow chat - by [ADM]Madon - 03.10.2013, 01:01
Re: Rainbow chat - by Konstantinos - 03.10.2013, 10:07

Forum Jump:


Users browsing this thread: 4 Guest(s)