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

How to detect if player is trying to send voice?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sebxx4
Senior Member
Join Date: Feb 2013
Old 03-10-2023 , 02:27   How to detect if player is trying to send voice?
Reply With Quote #1

Hello,
How can I detect if player starts voice chat? (the moment he press K button)
sebxx4 is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 03-10-2023 , 04:10   Re: How to detect if player is trying to send voice?
Reply With Quote #2

Quote:
Originally Posted by sebxx4 View Post
Hello,
How can I detect if player starts voice chat? (the moment he press K button)
If you are using ReAPI + VTC you can use this forward:

PHP Code:
/*
* Called when the player started talking.
*
* @param index      Client index
*
* @noreturn
*/
forward VTC_OnClientStartSpeak(const index); 
__________________
JusTGo is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-10-2023 , 07:38   Re: How to detect if player is trying to send voice?
Reply With Quote #3

get_client_listen
__________________
DJEarthQuake is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 03-10-2023 , 09:47   Re: How to detect if player is trying to send voice?
Reply With Quote #4

Quote:
Originally Posted by JusTGo View Post
If you are using ReAPI + VTC you can use this forward:
Ok, so I have this:

Quote:
#include <amxmodx>
#include <reapi>

public plugin_init()
{
register_plugin("test", "1.0", "sebxx");
}

public VTC_OnClientStartSpeak(const iSender)
{
client_print(iSender, print_center, "SPEAKING!");
}
But nothing happens when pressing K button.

Last edited by sebxx4; 03-10-2023 at 10:32.
sebxx4 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-10-2023 , 14:59   Re: How to detect if player is trying to send voice?
Reply With Quote #5

did you load "VoiceTranscoder (VTC)" module properly on your server? there are several links for downloading it
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 03-11-2023 , 01:52   Re: How to detect if player is trying to send voice?
Reply With Quote #6

I have it running when type "meta list" in the console.
sebxx4 is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 03-13-2023 , 05:07   Re: How to detect if player is trying to send voice?
Reply With Quote #7

Refresh
sebxx4 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 10:14.


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