28.11.2010, 16:00
if (strcmp("/cc", cmdtext, true, 10) == 0)
{
new C1, C2, C3, C4;
new string[256];
C1 = random(999999);
C2 = random(999999);
C3 = random(999999);
C4 = random(999999);
format(string, 256, "{%d}S{%d}A{%d}M{%d}P", C1, C2, C3, C4);
SendClientMessage(playerid, 0xFFFFFF, string);
return 1;
}
To get "SAMP" in random colors
{
new C1, C2, C3, C4;
new string[256];
C1 = random(999999);
C2 = random(999999);
C3 = random(999999);
C4 = random(999999);
format(string, 256, "{%d}S{%d}A{%d}M{%d}P", C1, C2, C3, C4);
SendClientMessage(playerid, 0xFFFFFF, string);
return 1;
}
To get "SAMP" in random colors