Raised This Month: $32 Target: $400
 8% 

[HL2DM] Spectator Team Chat Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Anhil
Member
Join Date: Jan 2011
Plugin ID:
2200
Plugin Version:
1.03
Plugin Category:
Technical/Development
Plugin Game:
Half-Life 2 Deathmatch
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin 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).
    Old 01-30-2011 , 09:42   [HL2DM] Spectator Team Chat Fix
    Reply With Quote #1

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (spectatorteamchatfix.sp - 1116 views - 2.3 KB)
    File Type: sp Get Plugin or Get Source (spectatorteamchatfix_cheap.sp - 848 views - 1.6 KB)
    File Type: zip translations.zip (262 Bytes, 318 views)

    Last edited by Anhil; 03-06-2011 at 05:20.
    Anhil is offline
    Kevin_b_er
    SourceMod Donor
    Join Date: Feb 2009
    Old 01-30-2011 , 21:14   Re: [HL2DM] Spectator Team Chat Fix
    Reply With Quote #2

    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().
    __________________
    Kevin_b_er is offline
    Anhil
    Member
    Join Date: Jan 2011
    Old 01-31-2011 , 06:58   Re: [HL2DM] Spectator Team Chat Fix
    Reply With Quote #3

    Done, thanks.
    Anhil is offline
    Anhil
    Member
    Join Date: Jan 2011
    Old 02-12-2011 , 05:37   Re: [HL2DM] Spectator Team Chat Fix
    Reply With Quote #4

    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 is offline
    Anhil
    Member
    Join Date: Jan 2011
    Old 02-14-2011 , 17:02   Re: [HL2DM] Spectator Team Chat Fix
    Reply With Quote #5

    Updated.
    See changelog.
    Anhil is offline
    Anhil
    Member
    Join Date: Jan 2011
    Old 03-06-2011 , 05:14   Re: [HL2DM] Spectator Team Chat Fix
    Reply With Quote #6

    Updated.
    Anhil is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 13:44.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode