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

Capture/Hook client voice chat on/off


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killersoft
New Member
Join Date: Aug 2021
Old 08-29-2021 , 08:11   Capture/Hook client voice chat on/off
Reply With Quote #1

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.

Last edited by killersoft; 08-29-2021 at 08:11.
killersoft is offline
killersoft
New Member
Join Date: Aug 2021
Old 08-29-2021 , 08:24   Re: Capture/Hook client voice chat on/off
Reply With Quote #2

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
} -------
killersoft is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 08-31-2021 , 04:59   Re: Capture/Hook client voice chat on/off
Reply With Quote #3

Those forwards are available in SM1.11 by default! We really need a new release I guess
https://github.com/alliedmodders/sourcemod/pull/1247
__________________
Peace-Maker 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 15:11.


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