Raised This Month: $51 Target: $400
 12% 

Dead ALL Talk


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kitami
Senior Member
Join Date: Jun 2006
Location: Toronto
Old 06-26-2008 , 01:18   Dead ALL Talk
Reply With Quote #1

I was wondering just like they have it in source, could their be a plugin created so that dead people can talk to each other using their mics? Without the alive people hearing them.

This way when your a DEAD CT you can talk to a DEAD T with your mic, BUT only when your dead, once you respawn everything is back to normal and you cant speak to the other team unless you use chat.
__________________
You know what I'd like to be? I mean if I had my goddamn choice, I'd just be the catcher in the rye and all.
Kitami is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-26-2008 , 19:51   Re: Dead ALL Talk
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fakemeta>

new amx_deadtalk;

public 
plugin_init()
{
    
register_plugin("Dead Alltalk""0.1""Exolent");
    
    
register_forward(FM_Voice_SetClientListening"fwdSetVoice"0);
    
    
amx_deadtalk register_cvar("amx_deadtalk""1"00.0);
    
    return 
PLUGIN_CONTINUE;
}

public 
fwdSetVoice(receiversenderbool:bListen)
{
    if( !
get_pcvar_num(amx_deadtalk)
    || 
receiver == sender
    
|| !is_user_connected(receiver) || !is_user_connected(sender) )
    {
        return 
FMRES_IGNORED;
    }
    
    if( !
is_user_alive(receiver) && !is_user_alive(sender)
    && 
get_user_team(receiver) != get_user_team(sender) )
    {
        
engfunc(EngFunc_SetClientListeningreceiversender1);
        
        return 
FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 06-26-2008 at 20:29.
Exolent[jNr] is offline
Kitami
Senior Member
Join Date: Jun 2006
Location: Toronto
Old 06-26-2008 , 20:23   Re: Dead ALL Talk
Reply With Quote #3

Would you mind compiling it for me? Thanks alot. I get this when I try

PHP Code:
//// deadchat.sma
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(8) : error 029: invalid expr
essionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(8) : error 029: invalid expr
essionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(9) : error 029: invalid expr
essionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(9) : error 029: invalid expr
essionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(10) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(10) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(11) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(11) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(12) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(12) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(13) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(13) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(14) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(14) : error 029: invalid exp
ressionassumed zero
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(14) : warning 215: expressio
n has no effect
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(14) : error 001: expected to
ken";"but found "return"
// F:\AmxModx\addons\amxmodx\scripting\deadchat.sma(14) : fatal error 107: too m
any error messages on one line
//
// Compilation aborted.
// 16 Errors.
// Could not locate output file compiled\deadchat.amx (compile failed).
//
// Compilation Time: 0.61 sec 
__________________
You know what I'd like to be? I mean if I had my goddamn choice, I'd just be the catcher in the rye and all.
Kitami is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-26-2008 , 20:29   Re: Dead ALL Talk
Reply With Quote #4

I think the problem was that I used [pawn] tags.
Try to compile now (it works for me).
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Kitami
Senior Member
Join Date: Jun 2006
Location: Toronto
Old 06-26-2008 , 20:31   Re: Dead ALL Talk
Reply With Quote #5

It worked perfectly Ill test it on the server right now and let you know.
__________________
You know what I'd like to be? I mean if I had my goddamn choice, I'd just be the catcher in the rye and all.
Kitami is offline
Kitami
Senior Member
Join Date: Jun 2006
Location: Toronto
Old 06-26-2008 , 20:43   Re: Dead ALL Talk
Reply With Quote #6

It worked, theirs just one problem where if u went into spec and then choose a team it didn't work till you died again, but that's fine at lest someone was nice enough to make it

you can test the plugins @ 8.12.21.44:27015
__________________
You know what I'd like to be? I mean if I had my goddamn choice, I'd just be the catcher in the rye and all.
Kitami is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-27-2008 , 00:16   Re: Dead ALL Talk
Reply With Quote #7

http://forums.alliedmods.net/showthread.php?p=602274
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Kitami
Senior Member
Join Date: Jun 2006
Location: Toronto
Old 06-27-2008 , 02:12   Re: Dead ALL Talk
Reply With Quote #8

Thanks so much connorr
__________________
You know what I'd like to be? I mean if I had my goddamn choice, I'd just be the catcher in the rye and all.
Kitami is offline
fatal_nl
Member
Join Date: Apr 2017
Old 05-14-2017 , 14:18   Re: Dead ALL Talk
Reply With Quote #9

Sorry for bumping this old topic.

I need a stripped down version of the Exolent[jNr]'s code. None of the other plugins on this website (not even ConnorMcLeod's plugin) does the following:

(Keep in mind sv_alltalk is on)

Currently every player, dead or alive can hear each other. We have to enforce a rule in the server that the dead don't talk..

What plugin I want: alive CT's and T's can talk with each other. As soon a player dies they are unable to use their mic until next round. (same for spectators: they can't use their mic unless they're joining a team)

When a dead player or spectator try to talk, client_print a message and play a default sound. (from valve/sound library).
fatal_nl is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-14-2017 , 14:24   Re: Dead ALL Talk
Reply With Quote #10

untested:
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Voice"
#define AUTHOR "JustGo"
#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_forward(FM_Voice_SetClientListening"FakeMeta_Voice_SetListening"false);
    
    
set_cvar_num("sv_alltalk",1);
}

public 
FakeMeta_Voice_SetListening(iReceiveriSenderbool:bListen)
{
    if(
is_user_alive(iSender) && get_user_team(iSender) < 3)
    {
        
engfunc(EngFunc_SetClientListeningiReceiveriSendertrue);
        return 
FMRES_SUPERCEDE;
    }
    
engfunc(EngFunc_SetClientListeningiReceiveriSenderfalse);
    return 
FMRES_SUPERCEDE;

__________________
JusTGo 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 19:56.


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