Author Topic: Default chat call for TTT?  (Read 2641 times)

0 Members and 2 Guests are viewing this topic.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Default chat call for TTT?
« on: May 24, 2016, 02:10:28 PM »
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.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Default chat call for TTT?
« Reply #1 on: May 24, 2016, 02:50:10 PM »
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.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Default chat call for TTT?
« Reply #2 on: May 24, 2016, 02:58:55 PM »
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.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Default chat call for TTT?
« Reply #3 on: May 25, 2016, 09:34:22 AM »
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.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline OpticPotatOS

  • Jr. Member
  • **
  • Posts: 53
  • Karma: 0
  • GLaDOS
    • Gaming for Everyone
Re: Default chat call for TTT?
« Reply #4 on: May 25, 2016, 10:06:52 AM »
Are you sure it does the (TEAM) thing by default, I've never seen a server that has that.
My website isn't my website, rather, it's the gaming network my sever is connected to.

ttt.gfe.nu

Unforeseen Consequences

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given