IgrexolonO
Wiek: 34 Na forum: 6809 dni Posty: 1386
Piwa : 1062
Gdzie? do mapy:
Kod: stock RecolorTextOnHex(text[])
{
for(new i;text[i]!=0x0;i++)
{
if(text[i] == 0x5B &&
((0x30 <= text[i+1] <= 0x39) || (0x41 <= text[i+1] <= 0x5A)) &&
((0x30 <= text[i+2] <= 0x39) || (0x41 <= text[i+2] <= 0x5A)) &&
((0x30 <= text[i+3] <= 0x39) || (0x41 <= text[i+3] <= 0x5A)) &&
((0x30 <= text[i+4] <= 0x39) || (0x41 <= text[i+4] <= 0x5A)) &&
((0x30 <= text[i+5] <= 0x39) || (0x41 <= text[i+5] <= 0x5A)) &&
((0x30 <= text[i+6] <= 0x39) || (0x41 <= text[i+6] <= 0x5A)) &&
text[i+7] == 0x5D)
{
text[i] = 0x7B;
text[i+7] = 0x7D;
i+=7;
continue;
}
}
return text;
}
Wywo?ujesz wstawieniem tego o to kodu, do publica OnPlayerText; (przyk?ad):
Kod: RecolorTextOnHex(text);
new buffer[160];
format(buffer, sizeof buffer, "%i {%06x}%s: {EAEAEA}%s", playerid, GetPlayerColor(playerid) >>> 8, PlayerName(playerid), text);
SendClientMessageToAll(0x606060FF, buffer);
P??niej na chacie wpisujesz tekst pokroju:
Cytat: [FF0069]gtaonline [FF6955]GUROM!!
Ostatnio zmieniony przez ToxiC. 2015-03-31, 20:27, w całości zmieniany 1 raz