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?