PDA

View Full Version : No Talking Dead People


dutchmeat
05-24-2007, 02:34
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:

dirtyjob
02-20-2008, 05:22
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.

andrzejmleczko
02-27-2008, 07:20
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 :)

DisoBayish
02-28-2008, 15:51
Is there still support for this plugin?

Cleric
04-26-2009, 19:46
This would be great if you add mute for mic too.

WhiteDeath
03-27-2013, 10:05
Good Plugin but on contage itch one "BOMB:1", "BOMB:2" Can you fix it?
[Sry im portuguese, my english is bad :(]

http://www.gameme.com/sig/0:14919180_css.png (http://www.gameme.com/ranking/0:14919180)

ilga80
06-21-2013, 07:27
#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(client, args)
{
if (client > 0)
{
if (GetConVarBool(cvarNDT))
{
if (!IsFakeClient(client) && GetClientTeam(client) > 1 && !IsPlayerAlive(client))
{
#if TYPE
decl String:display_message[192];
Format(display_message, 192, "\x04 %s", "You are not allowed to talk when you are dead!");
decl Handle:hBf;
hBf = StartMessageOne("SayText2", client);
if (hBf != INVALID_HANDLE)
{
BfWriteByte(hBf, 1);
BfWriteByte(hBf, 0);
BfWriteString(hBf, display_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;
}