Raised This Month: $12 Target: $400
 3% 

[REQ] Edit the Basechat Plugin Please?


Post New Thread Reply   
 
Thread Tools Display Modes
element1
Member
Join Date: Jan 2012
Location: New Jersey
Old 09-08-2012 , 01:19   Re: [REQ] Edit the Basechat Plugin Please?
Reply With Quote #21

Do you think you could edit this basechat, for the (ADMINS ONLY) chat
Change:

{LIGHTGREEN}(ADMINS)<Player Name> *text*

Last edited by asherkin; 09-08-2012 at 05:52. Reason: Removed binary, no source code.
element1 is offline
Send a message via Skype™ to element1
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
RzGaming
Member
Join Date: Feb 2012
Location: Denmark
Old 12-17-2012 , 02:33   Re: [REQ] Edit the Basechat Plugin Please?
Reply With Quote #23

is it possible to get cyan color?

Last edited by RzGaming; 12-17-2012 at 02:34. Reason: wrong
RzGaming is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-17-2012 , 16:17   Re: [REQ] Edit the Basechat Plugin Please?
Reply With Quote #24

Quote:
Originally Posted by RzGaming View Post
is it possible to get cyan color?
yes.
google! 'hex color code generator'.
also the fact that he prett much gave you the cyan color in the post above yours. (00FFFF)

Last edited by Mitchell; 12-17-2012 at 16:20.
Mitchell is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode