[TF2 MvM] Chat Fix
So for some reason my chat on MvM is broken because I can't see the opposing team, but I was being told that it was a default behavior, so I tried making a plugin to fix it, but this issue happens:
I added a command listener for 'say' and while it does work, it doesn't hide any commands that start with '/', and no I don't wanna hide it if it starts with '/', only if it is a valid command. https://i.imgur.com/Al9B45J.png Here's the code: PHP Code:
|
Re: [TF2 MvM] Chat Fix
You can use CommandExists to check if any text following a forward slash is registered before printing it to chat. You need to pass the full command (e.g. "sm_blind", not "blind").
|
Re: [TF2 MvM] Chat Fix
Cool, thanks! I'll see what I can do.
|
Re: [TF2 MvM] Chat Fix
I'm still new to some of this stuff, so how do I remove the forward slash from the beginning of the string?
Edit: Never mind, just used this: PHP Code:
|
Re: [TF2 MvM] Chat Fix
2 Attachment(s)
😂😂😂
|
Re: [TF2 MvM] Chat Fix
Wait does this remove the team chat?
|
Re: [TF2 MvM] Chat Fix
no
|
Re: [TF2 MvM] Chat Fix
Okay, thanks! I'll try it out.
|
All times are GMT -4. The time now is 11:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.