AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [May Be a Bug]set_client_listen do not work if sv_alltalk=1 (https://forums.alliedmods.net/showthread.php?t=9446)

larnk 01-19-2005 07:35

[May Be a Bug]set_client_listen do not work if sv_alltalk=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 01-20-2005 19:24

Nobody knows?

Is there any develpor team supportor?

Da Bishop 01-20-2005 19:25

Looks like sv_alltalk overrides your setting. Probably could catched the cvar change and reapply your settings.

larnk 01-20-2005 20:42

May be there is much more bugs.
 
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.


All times are GMT -4. The time now is 19:29.

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