[HL2DM] Spectator Team Chat Fix
3 Attachment(s)
Description:
Team chat for spectators doesn't work, when teamplay is off, this plugin fixes it (it's useful for 1v1, when there're spectators). Cvars/commands: There're no cvars and commands. How to install: Choose better version for you, click on "get plugin" and put .smx file into /addons/sourcemod/plugins/ directory of your server, download translations and unzip it into /addons/sourcemod/translations/. Versions: normal version won't show only silent admin commands and messages that start with "@". _cheap version won't show every message that starts with "/" or "@". Changelog: Code:
Version 1.03: March 6th, 2011 |
Re: [HL2DM] Spectator Team Chat Fix
I highly recommend using the MaxClients built-in variable instead of GetMaxClients(). They do the same thing and GetMaxClients() is nearly deprecated.
Additionally %N paired with a client index in stuff like PrintToChat() will print the client name directly instead of using GetClientName(). |
Re: [HL2DM] Spectator Team Chat Fix
Done, thanks.
|
Re: [HL2DM] Spectator Team Chat Fix
Found a bug, it shows "silent" commands in chat, I tried to use "player_chat" event (because it has "teamonly"), but doesn't seem it fires. Can someone help to fix this problem, please?
|
Re: [HL2DM] Spectator Team Chat Fix
Updated.
See changelog. |
Re: [HL2DM] Spectator Team Chat Fix
Updated.
|
All times are GMT -4. The time now is 05:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.