Raised This Month: $51 Target: $400
 12% 

Print a message when player starts using +voicerecord


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Adomaz1
Senior Member
Join Date: Feb 2014
Old 07-23-2019 , 14:26   Print a message when player starts using +voicerecord
Reply With Quote #1

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.

Last edited by Adomaz1; 07-23-2019 at 14:28.
Adomaz1 is offline
 



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 13:58.


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