Raised This Month: $ Target: $400
 0% 

No Talking Dead People


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dutchmeat
Senior Member
Join Date: Sep 2006
Plugin ID:
15
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 05-24-2007 , 02:34   No Talking Dead People
    Reply With Quote #1

    Well, this simple plugin stops dead/killed players from chatting
    This could be useful in clanwars/scrims,
    or just against anoying players that like to spam when they are dead

    This plugin is meant for CSS, but it could be compatible with other mods(that depends on the teamindex, 1 for spectators)

    There is one cvar,
    "noDeadTalk", default = "0"
    When enabled, the dead aren't allowed to speak

    enough said, here's the plugin:
    Attached Files
    File Type: sp Get Plugin or Get Source (nodeadtalk.sp - 2744 views - 1.5 KB)
    __________________
    before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.

    Last edited by Freecode; 06-30-2007 at 13:52.
    dutchmeat is offline
    dirtyjob
    Senior Member
    Join Date: Jul 2007
    Location: Boston,MA
    Old 02-20-2008 , 05:22   Re: No Talking Dead People
    Reply With Quote #2

    i realize this is an old post but this doesnt seem to work for dods, can it be made to? looking for something that will stop dead players from using their mic.
    dirtyjob is offline
    Send a message via AIM to dirtyjob
    andrzejmleczko
    Junior Member
    Join Date: Feb 2008
    Old 02-27-2008 , 07:20   Re: No Talking Dead People
    Reply With Quote #3

    Mayby I'm wrong but I tryed to use this plugin and when It's activated noone can talk! The dead and live people! I just started looking in sm sources but I made something like that: There you have this case: if ((!IsFakeClient(client)) && (IsClientConnected(client)) && tindex != 1) . It's not working, I changed to: if( !IsPlayerAlive(client)) and now works fine
    andrzejmleczko is offline
    DisoBayish
    Junior Member
    Join Date: Oct 2007
    Old 02-28-2008 , 15:51   Re: No Talking Dead People
    Reply With Quote #4

    Is there still support for this plugin?
    __________________
    DisoBayish is offline
    Cleric
    Member
    Join Date: Feb 2009
    Location: Sweden
    Old 04-26-2009 , 19:46   Re: No Talking Dead People
    Reply With Quote #5

    This would be great if you add mute for mic too.
    __________________
    Cleric is offline
    WhiteDeath
    New Member
    Join Date: Mar 2013
    Location: UK
    Old 03-27-2013 , 10:05   Re: No Talking Dead People
    Reply With Quote #6

    Good Plugin but on contage itch one "BOMB:1", "BOMB:2" Can you fix it?
    [Sry im portuguese, my english is bad ]

    WhiteDeath is offline
    ilga80
    Senior Member
    Join Date: Nov 2012
    Old 06-21-2013 , 07:27   Re: No Talking Dead People
    Reply With Quote #7

    PHP Code:
    #define TYPE 0
    new Handle:cvarNDT;
    public 
    OnPluginStart() 
    {
        
    RegConsoleCmd("say"chathook);
        
    RegConsoleCmd("say_team"chathook);
        
    cvarNDT CreateConVar("noDeadTalk""1""If enabled, the players won't be allowed to chat when they are dead");
    }
    public 
    Action:chathook(clientargs)
    {
        if (
    client 0)
        {
            if (
    GetConVarBool(cvarNDT))
            {
                if (!
    IsFakeClient(client) && GetClientTeam(client) > && !IsPlayerAlive(client))
                {
                    
    #if TYPE
                    
    decl String:display_message[192];
                    
    Format(display_message192"\x04 %s""You are not allowed to talk when you are dead!");
                    
    decl Handle:hBf;
                    
    hBf StartMessageOne("SayText2"client);
                    if (
    hBf != INVALID_HANDLE)
                    {
                        
    BfWriteByte(hBf1); 
                        
    BfWriteByte(hBf0); 
                        
    BfWriteString(hBfdisplay_message);
                        
    EndMessage();
                    }
                    
    #endif
                    #if !TYPE
                    
    PrintToChat(client"\x04 You are not allowed to talk when you are dead!");
                    
    #endif
                    
    return Plugin_Handled;
                }
            }
        }
        return 
    Plugin_Continue;

    ilga80 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 22:18.


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