Is it possible to print a message to a player when he starts using +voicerecord? I tried to do this with FM_Voice_SetClientListening, but it didn't work, just started spamming the chat.
Code, if needed:
Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_dictionary("voice.txt");
register_forward(FM_Voice_SetClientListening, "FwdVoiceSetClientListening");
}
public FwdVoiceSetClientListening(iReceiver, iSender, bool: bListen)
{
if(iReceiver == iSender)
return FMRES_SUPERCEDE;
client_print_color(iSender, iSender, "%L", iSender, "VOICE_WARN");
return FMRES_IGNORED;
}
Thank you.