15.09.2010, 14:20
(
Последний раз редактировалось RenisiL; 19.09.2010 в 11:27.
)
TextColorsRandom Macro Define
Hi, this is my new Macro Define created code that changes the text color.
Examples:
Top GameMode:
You can contribute more colors
Top GameMode:
>> change to
>> Change to
Hi, this is my new Macro Define created code that changes the text color.
Examples:
Код:
if(!strcmp(cmd, "/test", true))
{
SendColorsMessage( playerid, "test test test" );
return 1;
}
You can contribute more colors
Код:
new TextColors[ 22 ] =
{
0xFF8C13FF, 0x8b4513FF,
0x4949A0FF, 0x148b8bFF,
0x14ff7fFF, 0x556b2fFF,
0x0FD9FAFF, 0x10DC29FF,
0x534081FF, 0x0495CDFF,
0xEF6CE8FF, 0xBD34DAFF,
0xC715FFFF, 0xF4A460FF,
0xEE82EEFF, 0x6152C2FF,
0xFFD720FF, 0xCF72A9FF,
0x20B2AAFF, 0x54137DFF,
0xDC143CFF, 0xB98519FF
};
Top GameMode:
Код:
#define SendColorsMessage(%1,%2) \
SendClientMessage( %1, TextColors[ random( sizeof( TextColors ) ) ], " " %2 )
Код:
#define SendColorsMessageToAll(%1) \
SendClientMessageToAll( TextColors[ random( sizeof( TextColors ) ) ) ], " " %1 )
Код:
SendClientMessage(playerid, TEXT_GELKTONA, "Text");
Код:
SendColorsMessage( playerid, "Text" );
Код:
SendClientMessageToAll(playerid, TEXT_GELKTONA, "Text");
Код:
SendColorsMessageToAll( playerid, "Text" );

