PDA

View Full Version : [REQ] Edit the Basechat Plugin Please?


-.-Owned Myself-.-
05-31-2009, 05:28
I love all the default Sourcemod Stuff aside from the Basechat plugin. The only thing I dislike about it is the Format of it. It's too unnoticeable.

Could someone edit it so it looks like:

[ADMIN][Player Name]:*text*

Where [ADMIN] is the Default colour.

[Player Name] is Green

*text* is Lightgreen.

If someone could do that, it would be much appreciated! It's annoying to have to use Eventscripts to do it and disable the Basechat plugin just so I can have noticeable text, disabling Tsay, Csay and Hsay in the process...

Please and Thank you :wink:

scopesp
05-31-2009, 19:48
that would be cool :)

Wazz
06-01-2009, 07:00
Exactly as asked.

scopesp
06-01-2009, 11:38
nice thx :)

but that dont works

[Player Name] is Green

*text* is Lightgreen.

Wazz
06-01-2009, 11:57
Oh sorry, silly error there. I have updated the link with the problem fixed.

scopesp
06-01-2009, 12:16
works now only for admin but not for normal player :( is this even possible :) ?
thank you !!!!

Wazz
06-01-2009, 12:32
That isnt what -.-Owned Myself-.- (https://forums.alliedmods.net/member.php?u=39367) wanted but I changed it for you.

scopesp
06-01-2009, 12:35
you are the best man ;)

thx for your work ;)

edit : works fine :)

scopesp
06-01-2009, 13:06
shit the hiden chattriggers dont works now with the lightgreen color :(

can u PLEASE edit only for normal player again like name is green and chat is normal (white)

thank you sooo much ;)

Wazz
06-01-2009, 18:07
Try this.

Also in the current plugins admins talk across dead and alive channels, if you want this changed say so.

scopesp
06-01-2009, 18:32
if iam are in spec there shows 2 lines in chat like
[ADMIN][name]: test
*DEAD* name : test
can u fix that ? or remove then the admin show if iam are in spec thx ;)

sorry for bad english :))

EDIT : in the last plugin from u there are 2 lines from normal player to :(

Wazz
06-01-2009, 19:59
It works perfectly fine for me. What game are you trying it on?

-.-Owned Myself-.-
06-02-2009, 03:16
Thanks so much Wazz! Now I don't need ES for my TF2 Server at all! (yet)

EDIT:
Ok I placed it on the Server for testing. Is it possible I can have it only do the admin message when you put @ before the text?

Mainly because we need to go undercover and such to find people who Exploit and such. We don't really want to give ourselves away.

scopesp
06-02-2009, 06:38
can u edit your first plugin becouse a normal player see 2 lines from admin if he are in spec modus like
[ADMIN][name]: test
*DEAD* name : test
but a admin see only one line u need to test that with a normal player :)
i hope u understand me :)
its for me tf2 serv

Wazz
06-02-2009, 07:10
-.-Owned Myself-.- (https://forums.alliedmods.net/member.php?u=39367), the @ sign is already used by sm_say however if you still want it I have re-written sm_say so that it displays in the style that you want.

Wazz
06-02-2009, 07:33
scopesp add me to steam friends (Wazz) so that you can help me test it.

scopesp
06-02-2009, 10:24
hmmm cant find u :( add me "w33dskiLL"

strontiumdog
06-02-2009, 11:43
-.-Owned Myself-.- (https://forums.alliedmods.net/member.php?u=39367), the @ sign is already used by sm_say however if you still want it I have re-written sm_say so that it displays in the style that you want.

I edited basechat.sp for someone once before, and BAIL corrected me.
Don't name it basechat.sp or it will cause confusion with the actual SM version.

Call it something else like basechat_2.sp.
Then people can compile it, add it to their plugins folder and then disable basechat.smx.

Wazz
06-02-2009, 12:29
Ok good to know. I am sure the people that want the modded file will be able to rename the it :)

Wazz
06-02-2009, 15:37
For scopesp, I recommend renaming it and unloading the original like said in the above posts :)

element1
09-08-2012, 01:19
Do you think you could edit this basechat, for the (ADMINS ONLY) chat
Change:

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

Bacardi
09-08-2012, 04:17
what if...
You edit and compile.
- Open ...addons\sourcemod\scripting\basechat.sp
- edit line 378
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)PrintToChat(i, "\x07B200FF(ALL) %s: \x01%s", nameBuf, message);
(ALL) Bacardi: asdas

orPrintToChat(i, "\x0800FFFF99(ALL) %s: \x07B6FF00%s", nameBuf, message);
https://dl.dropbox.com/u/38118182/pictures/chat.png

RzGaming
12-17-2012, 02:33
is it possible to get cyan color?

Mitchell
12-17-2012, 16:17
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)