View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-08-2012 , 04:17   Re: [REQ] Edit the Basechat Plugin Please?
Reply With Quote #22

what if...
You edit and compile.
- Open ...addons\sourcemod\scripting\basechat.sp
- edit line 378
Code:
SendChatToAll(client, String:message[])
{
	new String:nameBuf[MAX_NAME_LENGTH];
	
	for (new i = 1; i <= MaxClients; i++)
	{
		if (!IsClientInGame(i) || IsFakeClient(i))
		{
			continue;
		}
		FormatActivitySource(client, i, nameBuf, sizeof(nameBuf));
		
		PrintToChat(i, "\x04(ALL) %s: \x01%s", nameBuf, message); // <- This line
	}
}
example for source games what support chat color (\x07 & \x08)
Code:
PrintToChat(i, "\x07B200FF(ALL) %s: \x01%s", nameBuf, message);
(ALL) Bacardi: asdas
or
Code:
PrintToChat(i, "\x0800FFFF99(ALL) %s: \x07B6FF00%s", nameBuf, message);
__________________
Do not Private Message @me
Bacardi is offline