Hellosztok
new color[][21]=
{
{0xFFFF00AA}, {0x00FFFFAA}, {0xFF3366FF}, {0xFFFFFFAA},
{0xFFFFF00AA}, {0x660000AA}, {0xFF66FFAA}, {0x33CCFFAA},
{0xDDDD2357}, {0x7CFC00AA}, {0xFFE87DAA}, {0x7E60FFAA},
{0xAFAFAFAA}, {0xFF9900AA}, {0x0000BBAA}, {0xFF0000AA},
{0xFF0606FF}, {0xFB0000FF}, {0x99FF00AA}, {0xB22222FF},
{0xFFFFF0FF}, {0x778899FF}, {0xCD853FFF}, {0xFFFFFFFF}
};
És OnPlayerTexthez :
public OnPlayerText(playerid, text[])
{
new
string[128],
rand,
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
rand = random(sizeof(color));
format(string,sizeof(string),\"[%d] %s: %s\",playerid,name,text);
SendClientMessageToAll(color[rand][0],string);
return 0;
}
Ennyi lenne és igy random szinekben irja majd ki az üzenetet