AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [HL2DM] Spectator Team Chat Fix (https://forums.alliedmods.net/showthread.php?t=148894)

Anhil 01-30-2011 09:42

[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
- Added translations.
- It will check if chat message is silent admin command or not. (_cheap version will just block messages starting with "/")

Version 1.02: February 15th, 2011
- Now it should ignore messages that start with "/" (but it won't check is it existing command or not) or "@" (admin only chat).

Version 1.01: January 31st, 2011
- Optimization.

Version 1.0: January 30th, 2011
- Release.


Kevin_b_er 01-30-2011 21:14

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().

Anhil 01-31-2011 06:58

Re: [HL2DM] Spectator Team Chat Fix
 
Done, thanks.

Anhil 02-12-2011 05:37

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?

Anhil 02-14-2011 17:02

Re: [HL2DM] Spectator Team Chat Fix
 
Updated.
See changelog.

Anhil 03-06-2011 05:14

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.