General > Developers Corner

Default chat call for TTT?

(1/2) > >>

iViscosity:
I was wondering where the chat for TTT (or gmod in general) was called from. I want to make a code that if someone were to send it in team chat and they were innocent, it would remove the (TEAM) from in front of their name as it is sort of a form of cheating.

roastchicken:
I'm confused, how is this a form of cheating?

Anyways, there are a lot of chat hooks, however I think you want GM:PlayerSay. I'm not 100% sure that it includes the [TEAM] part, but I think so. If it doesn't then I'm not sure how you would do this.

iViscosity:
It's a form of cheating because if an Innocent uses team chat it will put (TEAM) by their name, but still show to everyone. If a Traitor uses it, it will only send it to other Traitors. Therefore, if everyone were to do that, they could find who the T's are.

And thank you, do you know if I could put this into somewhere and it can overwrite the default chat?

Idk if I'm making sense, sorry.

roastchicken:
Hmm, I wonder why I never realized that "exploit" during the time I played TTT.

You can just call GM:PlayerSay in an autorun file.

OpticPotatOS:
Are you sure it does the (TEAM) thing by default, I've never seen a server that has that.

Navigation

[0] Message Index

[#] Next page

Go to full version