How to catch the "MIC" event ?
I want to catch the event when player start speaking and end speaking .
How to do that? |
Re: How to catch the "MIC" event ?
PHP Code:
|
Re: How to catch the "MIC" event ?
You cannot hook [+/-] commands from the games unless they aren't standard.
Here is how you catch it: Code:
|
Re: How to catch the "MIC" event ?
so if i return supercode will this block the voice?
ps - if i set_speak to muted when player connect, will it stay whole game on server and he won't be able to use mic ? |
Re: How to catch the "MIC" event ?
Quote:
Code:
Quote:
|
Re: How to catch the "MIC" event ?
I'm getting always 0 as return value of get_speak.
I'm missing something? |
Re: How to catch the "MIC" event ?
I put a client_print in there to test and it constantly printed even when I wasn't pressing\holding voice com button. Or is that not what it's supposed to hook?
PHP Code:
|
Re: How to catch the "MIC" event ?
That forward is called to set if 'sender' can talk to 'receiver'.
You can change the return value or return FMRES_SUPERCEDE and use: engfunc( EngFunc_SetClientListening, receiver, sender, 0 ); And that will set that sender can't talk to receiver. |
| All times are GMT -4. The time now is 02:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.