AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Capture/Hook client voice chat on/off (https://forums.alliedmods.net/showthread.php?t=334096)

killersoft 08-29-2021 08:11

Capture/Hook client voice chat on/off
 
Hi.
I am looking for a method to hook when a client(CS:S ideally), presses there voice chat button and releases.
Any suggestions ?

I would like to make a per-client voice time-limit plugin, and of course need to capture and time how long they have already spoken.

killersoft 08-29-2021 08:24

Re: Capture/Hook client voice chat on/off
 
Found it

https://forums.alliedmods.net/showthread.php?p=2177167

--------
#include <voiceannounce_ex>

public void OnClientSpeakingEx(int client)
{
// client is talking
}

public void OnClientSpeakingEnd(int client)
{
// client is stop talking
} -------

Peace-Maker 08-31-2021 04:59

Re: Capture/Hook client voice chat on/off
 
Those forwards are available in SM1.11 by default! We really need a new release I guess :D
https://github.com/alliedmodders/sourcemod/pull/1247


All times are GMT -4. The time now is 04:39.

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