Raised This Month: $ Target: $400
 0% 

[May Be a Bug]set_client_listen do not work if sv_alltalk=1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
larnk
Member
Join Date: Dec 2004
Old 01-19-2005 , 07:35   [May Be a Bug]set_client_listen do not work if sv_alltalk=1
Reply With Quote #1

I wrote such code
Code:
#include <amxmodx> #include <engine> #include <cstrike> #include <fun> #include <amxmisc> public plugin_init(){     register_plugin("Voice Comm Control","0.0.1","Zhao")     register_event("DeathMsg","eDeathMsg","a") } public eDeathMsg(){     new victim=read_data(2)     remove_voice_from_alive(victim) } public remove_voice_from_alive(victim){         new players[32],playerscount         get_players(players,playerscount,"a")         for(new i=0;i<playerscount;i++){             set_client_listen(players[i],victim,0)         } }

When sv_alltalk is setted to 0. set_client_listen works well. the alive players can not hear voice of dead teammate.

But if sv_alltalk is setted to 1. alive players still can hear voice of the dead players..

I consider that it's the bug of set_client_listen.

Is there any develpor team support can help me?
larnk is offline
larnk
Member
Join Date: Dec 2004
Old 01-20-2005 , 19:24  
Reply With Quote #2

Nobody knows?

Is there any develpor team supportor?
larnk is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 01-20-2005 , 19:25  
Reply With Quote #3

Looks like sv_alltalk overrides your setting. Probably could catched the cvar change and reapply your settings.
__________________
Anything that is done can only be done better by urself - since life is a opinion make it the way urs feel its best

~live by it
Da Bishop is offline
Send a message via MSN to Da Bishop
larnk
Member
Join Date: Dec 2004
Old 01-20-2005 , 20:42   May be there is much more bugs.
Reply With Quote #4

Another Problem....

if set_speak(id,LISTEN_ALL), set_client_listen(id,otherid,0) does not work

if sv_alltalk=0 and set_speek(id,NORMAL), set_client_listen(id,other_team_player_id,1) does not work.
larnk 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:29.


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