Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

AMX TeamTalk

by Wilson [29th ID] · 2008-03-10 · 24 replies · 16817 views · 182 downloads

Read the thread (25 posts)

From the first post

I wrote this plugin today for my server but figured you would all enjoy it as well. My server always has AllTalk on during public play, but sometimes people want to use teamwork. Teamwork + AllTalk = the enemy hearing your plans.
rn
rnNow there is a bind for teamtalk. Basically, it's like turning alltalk off just for a second while you transmit your message.
rn
rnbind KEY +teamtalk
rn
rnHolding this button will transmit your voice to your team only.
rn
rnThe only cvar is amx_teamtalk <0/1>
rnThis plugin is compatible with AMX VoiceProx (if voiceprox is enabled, this plugin is disabled).

Files

amx_teamtalk.sma v1.0 1 KB 160 dl Download Compile

Added later in the thread

amx_teamtalk.sma v1.0 2 KB 22 dl Download Compile

The thread

All 25 posts from 8 people on AMX TeamTalk, kept as they were written.

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
03-10-2008, 12:25 PM #1

I wrote this plugin today for my server but figured you would all enjoy it as well. My server always has AllTalk on during public play, but sometimes people want to use teamwork. Teamwork + AllTalk = the enemy hearing your plans.rnrnNow there is a bind for teamtalk. Basically, it's like turning alltalk off just for a second while you transmit your message.rnrnbind KEY +teamtalkrnrnHolding this button will transmit your voice to your team only.rnrnThe only cvar is amx_teamtalk <0/1>rnThis plugin is compatible with AMX VoiceProx (if voiceprox is enabled, this plugin is disabled).

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
03-10-2008, 01:12 PM #2

ahhh great! lolnni always wanted to convert the admin voice chat plugin i have to allow team only voice chat while alltalk is on.. but since i dont have a mic i never really motivated myselfnnso thanks! lol this is gonna be great :)

rhodge32
posted here
Posts: 5
Threads: 0
Joined: Oct 2007
05-11-2008, 06:49 AM #3

How did this plugin work for you guys. I wasnt so fortunate. IT just comes up in console with this...rnrn

"amx_teamtalk.amxx") (native "get_pcvar_num") - debug not enabled!rnL 05/11/2008 - 19:47:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).rnL 05/11/2008 - 19:47:11: Invalid CVAR pointerrnL 05/11/2008 - 19:47:11: [AMXX] Run time error 10 (plugin "amx_teamtalk.amxx") (native "get_pcvar_num") - debug not enabled!rnL 05/11/2008 - 19:47:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).rnL 05/11/2008 - 19:47:11: Invalid CVAR pointerrnL 05/11/2008 - 19:47:11: [AMXX] Run time error 10 (plugin "amx_teamtalk.amxx") (native "get_pcvar_num") - debug not enabled!rnL 05/11/2008 - 19:47:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).rnL 05/11/2008 - 19:47:11: Invalid CVAR pointerrnL 05/11/2008 - 19:47:11: [AMXX] Run time error 10 (plugin "amx_teamtalk.amxx") (native "get_pcvar_num") - debug not enabled!rnL 05/11/2008 - 19:47:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).rnL 05/11/2008 - 19:47:11: Invalid CVAR pointerrnL 05/11/2008 - 19:47:11: [AMXX] Run time error 10 (plugin "amx_teamtalk.amxx") (native "get_pcvar_num") - debug not enabled!rnL 05/11/2008 - 19:47:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).rnL 05/11/2008 - 19:47:11: Invalid CVAR pointerrnL 05/11/2008 - 19:47:11: [AMXX] Run time error 10 (plugin "amx_teamtalk.amxx") (native "get_pcvar_num") - debug not enabled!rnL 05/11/2008 - 19:47:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).rnL 05/11/2008 - 19:47:11: Invalid CVAR pointerrnL 05/11/2008 - 19:47:11: [AMXX] Run time error 10 (plugin "amx_teamtalk.amxx") (native "get_pcvar_num") - debug not enabled!rnL 05/11/2008 - 19:47:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
rnrnrnrnAny ideas?? or have i stuffed up.

[ [SOL] Psycho
posted here
Posts: 60
Threads: 5
Joined: Dec 2007
05-11-2008, 09:57 AM #4

Cool, This will be very useful. Thanks Wilsonrnrnd-o doesn't have a mic? wow

rhodge32
posted here
Posts: 5
Threads: 0
Joined: Oct 2007
05-13-2008, 07:55 AM #5

Im just ever so greatful if it ends up working and i will still be greatful for the effort made!!! as i would NEVER be able to do any of this.rnrnps. Psycho - could you please reply back to say if it worked fro you or not. rnrnThanksrnHodgie

[ [SOL] Psycho
posted here
Posts: 60
Threads: 5
Joined: Dec 2007
05-13-2008, 08:10 AM #6

Actually it did not work, I tried it on a Linux and a Windows server. Both were sent into an error spiral. Creating huge error logs. I haven't had time to debug it yet. But maybe you could. [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). Then post the results.nnIf you would do this it would narrow down the problem. If you don't get around to it I will this weekend.

rhodge32
posted here
Posts: 5
Threads: 0
Joined: Oct 2007
05-13-2008, 08:31 AM #7

Ahh ok thanks.rnI done waht you said and here is the log. I dont know where it starts and ends so i hope this is enough. rnrnEDIT: (ahh looking at it.... it is repetitive.rnrnrnL 05/13/2008 - 21:24:50: Invalid CVAR pointerrnL 05/13/2008 - 21:24:50: [AMXX] Displaying debug trace (plugin "amx_teamtalk.amxx")rnL 05/13/2008 - 21:24:50: [AMXX] Run time error 10: native error (native "get_pcvar_num")rnL 05/13/2008 - 21:24:50: [AMXX] [0] phppYHcow.sma::plugin_enabled (line 62)rnL 05/13/2008 - 21:24:50: [AMXX] [1] phppYHcow.sma::fwd_SetClientListening (line 45)rnL 05/13/2008 - 21:24:50: Invalid CVAR pointerrnL 05/13/2008 - 21:24:50: [AMXX] Displaying debug trace (plugin "amx_teamtalk.amxx")rnL 05/13/2008 - 21:24:50: [AMXX] Run time error 10: native error (native "get_pcvar_num")rnL 05/13/2008 - 21:24:50: [AMXX] [0] phppYHcow.sma::plugin_enabled (line 62)rnL 05/13/2008 - 21:24:50: [AMXX] [1] phppYHcow.sma::fwd_SetClientListening (line 45)rnL 05/13/2008 - 21:24:50: Invalid CVAR pointerrnL 05/13/2008 - 21:24:50: [AMXX] Displaying debug trace (plugin "amx_teamtalk.amxx")rnL 05/13/2008 - 21:24:50: [AMXX] Run time error 10: native error (native "get_pcvar_num")rnL 05/13/2008 - 21:24:50: [AMXX] [0] phppYHcow.sma::plugin_enabled (line 62)rnL 05/13/2008 - 21:24:50: [AMXX] [1] phppYHcow.sma::fwd_SetClientListening (line 45)rnL 05/13/2008 - 21:24:50: Invalid CVAR pointerrnL 05/13/2008 - 21:24:50: [AMXX] Displaying debug trace (plugin "amx_teamtalk.amxx")rnL 05/13/2008 - 21:24:50: [AMXX] Run time error 10: native error (native "get_pcvar_num")rnL 05/13/2008 - 21:24:50: [AMXX] [0] phppYHcow.sma::plugin_enabled (line 62)rnL 05/13/2008 - 21:24:50: [AMXX] [1] phppYHcow.sma::fwd_SetClientListening (line 45)rnL 05/13/2008 - 21:24:50: Invalid CVAR pointerrnL 05/13/2008 - 21:24:50: [AMXX] Displaying debug trace (plugin "amx_teamtalk.amxx")rnL 05/13/2008 - 21:24:50: [AMXX] Run time error 10: native error QUOTE]

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
05-13-2008, 12:45 PM #8

my guess would be it might be from this line:n

p_voiceprox = get_cvar_pointer( "amx_voiceprox" );
nnwhen that cvar doesnt exist and it trys to get its pointer.. not sure tho, would have to see what wilson says

{DwP} 325th ABN
posted here
Posts: 231
Threads: 12
Joined: Aug 2006
05-13-2008, 08:33 PM #9

man wilson if you can get this one going it is the best one ive seen in along time. my clan always has all talk on and alot of the guys would love to be able to raise hell and run as a team. great concept man here are my errors from loadingrnrnrnMETA] WARNING: Plugin didn't set meta_result: fakemeta_amxx_i386.so:Voice_SetClientListening()rn[META] WARNING: Plugin didn't set meta_result: fakemeta_amxx_i386.so:Voice_SetClientListening()rn[META] WARNING: Plugin didn't set meta_result: fakemeta_amxx_i386.so:Voice_SetClientListening()rn[META] WARNING: Plugin didn't set meta_result: fakemeta_amxx_i386.so:Voice_SetClientListening()rn[META] WARNING: Plugin didn't set meta_result: fakemeta_amxx_i386.so:Voice_SetClientListening()

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
05-14-2008, 12:51 AM #10

have you got the DLL enabled in modules.ini and all? that's an odd error...seems like a problem in the fakemeta linux dll...

{DwP} 325th ABN
posted here
Posts: 231
Threads: 12
Joined: Aug 2006
05-14-2008, 02:17 AM #11

well i took the comma out of fakemeta still the same result. sucks i would so love to have this

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
05-14-2008, 07:52 PM #12
rhodge32
posted here
Posts: 5
Threads: 0
Joined: Oct 2007
05-15-2008, 05:46 AM #13

do we need amx_voiceprox plugin aswell. Ill do some experimenting :)rnrnrnCheersrnRyan

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
05-17-2008, 02:22 AM #14

no that's a totally separate plugin

{DwP} 325th ABN
posted here
Posts: 231
Threads: 12
Joined: Aug 2006
05-17-2008, 03:24 PM #15

does anyone have this running, i am still trying to figure out what im doing wrong to get this to work.

[ [SOL] Psycho
posted here
Posts: 60
Threads: 5
Joined: Dec 2007
05-17-2008, 03:48 PM #16

I can't get it to run, I have the same errors that rhodge32 has. I tried removing the line that d-o mentioned and it still goes into an error spiral. Creating huge error logs and making the server unresponsive.rnrnI am wondering if it is in conflict with any of the other plugins I am running.

rhodge32
posted here
Posts: 5
Threads: 0
Joined: Oct 2007
06-06-2008, 07:18 AM #17

Well i had no other custom plugins enabled so that counts that out?

P Price [508th PIR]
posted here
Posts: 70
Threads: 4
Joined: Jul 2007
06-12-2008, 01:02 PM #18

Its using the wrong CVAR for the plugin. It is searching through and then it just gets confused. You have to go into the plugin and specify the CVAR pointer for the plugin. Wilson correct me if i wrong... But i think i got it?

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
06-14-2008, 01:09 AM #19
;9851']no that's a totally separate plugin
n nand yet you are trying to set a pointer to a cvar that IS created in the proximity plugin... and NOT in this plugin....n nthe error is plainly visible in your code...n n
 np_voiceprox = get_cvar_pointer( "amx_voiceprox" );n
n nthis REQUIRES a cvar named amx_voiceprox otherwise you get those errors everyone is mentioning... YOU try commenting out the voice prox. plugin and discover yourself this is the truth...n nall others... try this...n
 n n#include <amxmodx>n#include <amxmisc>n#include <fakemeta>n#define PLUGIN "Team Talk"n#define AUTHOR "Captain Wilson"n#define VERSION "1.1"n//fixed by TatsuSaiseinnew teamtalking[33];nnew p_enabled;npublic plugin_init()n{nregister_plugin( PLUGIN, VERSION, AUTHOR );nregister_clcmd( "+teamtalk", "clcmd_teamtalk" );nregister_clcmd( "-teamtalk", "clcmd_teamtalk" );nregister_forward( FM_Voice_SetClientListening, "fwd_SetClientListening" );nnp_enabled = register_cvar( "amx_teamtalk", "1" );n}npublic clcmd_teamtalk( id ) {nif( get_pcvar_num(p_enabled))n{nnew cmd[16];nread_argv( 0, cmd, 15 );nnif( equal(cmd, "+", 1) )n{nteamtalking[id] = true;nclient_cmd( id, "+voicerecord" );n}nelsen{nteamtalking[id] = false;nclient_cmd( id, "-voicerecord" );n}nreturn PLUGIN_HANDLED;n}nreturn PLUGIN_CONTINUE;n}npublic fwd_SetClientListening( receiver, sender, listen ) {nif( get_pcvar_num(p_enabled))n{nif( is_user_connected(sender) && is_user_connected(receiver) && teamtalking[sender] )n{nnew team_sender = get_user_team( sender );nnew team_receiver = get_user_team( receiver );nnif( team_sender != team_receiver )n{nengfunc( EngFunc_SetClientListening, receiver, sender, false );nreturn FMRES_SUPERCEDE;n}n}n}nreturn FMRES_IGNORED;n}n
=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
06-14-2008, 01:49 PM #20

btw, just for shits and giggles I tried the code, and while it compiles without error and it doesn't throw out any errors (ran in debug) during runtime, but it simply doesn't seem to work ...

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
06-15-2008, 08:36 AM #21

If what you say is right Tatsu, would it work if you use both plugins? Since it sets a pointer to a cvar in the proximity plugin? If this is true tomorrow I can put both plugins on a server and see if they work then without spitting our errors or whatsoever.

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
06-20-2008, 04:55 PM #22

Yeah it worked with me and I had both plugins. I must have wrote this and then released it months later, blatantly forgetting about the "compatibility fix" I added for voiceprox :P

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
06-30-2008, 07:28 PM #23

After working for a long time on the server everything is finally working fine. Before cause downtime A-gain to the server, I would like to run this through with you guys and perhaps enlighten me if it would work or not.rnrnOk, if both plugins are on, it should work. If I put the voice proximity plugin on, when I use the cvar amx_voiceprox 0 (being disabled that is). Would it amx_teamtalk still get this linern

p_voiceprox = get_cvar_pointer( "amx_voiceprox" );
rnrnfrom the voice proximity plugin?rnrnIf not, I kinda understand from your former posts that the proximity plugin would not disable alltalk? This is true?

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
07-08-2008, 11:52 PM #24

yes. you can also just remove all the voiceprox stuff from the plugin and you won't need voiceprox.

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
11-22-2008, 01:47 PM #25

For people interested in the plugin without the voice prox. code, here it is. Tested on an amxmodx 1.81 Linux server and worked flawlessly for me.rnrnWhen using the plugin remember people need to break habits. So use a chat/hud message plugin or implement it into the plugin to get the fastest results.

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC