Raised This Month: $ Target: $400
 0% 

How to detect if player is trying to send voice?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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
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 #2

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
Reply


Thread Tools
Display Modes

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 23:24.


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