Цвет только в начале:
Код
#include <sourcemod>
new String:sz_color[3];
public OnPluginStart()
{
AddCommandListener(CommandSay, "say");
Format(sz_color, 2, "\x7%06X", 0x000000);
}
public Action:CommandSay(client, const String:command[], args)
{
decl String:text[128];
GetCmdArgString(text, sizeof(text));
StripQuotes(text);
TrimString(text);
if (text[6] != 0)
{
Format(text, 20, "%s%s", sz_color, text);
new Handle:hBf;
hBf = StartMessageOne("SayText2", client);
if (hBf != INVALID_HANDLE)
{
BfWriteByte(hBf, client);
BfWriteByte(hBf, 0);
BfWriteString(hBf, text);
EndMessage();
}
}
return Plugin_Handled;
}
Пишешь в чат например "00ff00 Зеленый лист".
_______________________________________
Условия самому можно составить).