AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   How to detect if player is trying to send voice? (https://forums.alliedmods.net/showthread.php?t=342120)

sebxx4 03-10-2023 02:27

How to detect if player is trying to send voice?
 
Hello,
How can I detect if player starts voice chat? (the moment he press K button)

JusTGo 03-10-2023 04:10

Re: How to detect if player is trying to send voice?
 
Quote:

Originally Posted by sebxx4 (Post 2800968)
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); 


DJEarthQuake 03-10-2023 07:38

Re: How to detect if player is trying to send voice?
 
get_client_listen

sebxx4 03-10-2023 09:47

Re: How to detect if player is trying to send voice?
 
Quote:

Originally Posted by JusTGo (Post 2800970)
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.

JocAnis 03-10-2023 14:59

Re: How to detect if player is trying to send voice?
 
did you load "VoiceTranscoder (VTC)" module properly on your server? there are several links for downloading it

sebxx4 03-11-2023 01:52

Re: How to detect if player is trying to send voice?
 
I have it running when type "meta list" in the console.

sebxx4 03-13-2023 05:07

Re: How to detect if player is trying to send voice?
 
Refresh


All times are GMT -4. The time now is 23:24.

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