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

Print a message when player starts using +voicerecord


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-30-2019 , 15:50   Re: Print a message when player starts using +voicerecord
Reply With Quote #21

Quote:
Originally Posted by edon1337 View Post
Third parameter returns true in case receiver can hear sender and false otherwise, it won't make any difference. Either way it still keeps spamming.

The method with Orpheu that Krtola provided is the only way for now.
If someone can hear you, then you're holding the voice key. So it makes difference ��

Also, do you even check the method correctly? It uses the same forward we were mentioning... It REALLY makes no difference, we'll still need to add a check to avoid the spam. See? No difference.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 07-30-2019 at 15:55.
EFFx is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-30-2019 , 16:31   Re: Print a message when player starts using +voicerecord
Reply With Quote #22

Quote:
Originally Posted by EFFx View Post
If someone can hear you, then you're holding the voice key. So it makes difference ******************

Also, do you even check the method correctly? It uses the same forward we were mentioning... It REALLY makes no difference, we'll still need to add a check to avoid the spam. See? No difference.

Quote:
Originally Posted by edon1337 View Post
Yes, but in the tutorial, SV_ParseVoiceData was used to check whether player is using voice chat or not. Such thing is only achieved with Orpheu.

I tested FM_Voice_SetClientListening, it gets called multiple times within a second even when I'm not holding voice chat, tried checking whether 3rd param is 1 too, same results. Even if you manage to set a delay, how will you know the player is actually holding down the voice chat key?
__________________
edon1337 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-30-2019 , 19:37   Re: Print a message when player starts using +voicerecord
Reply With Quote #23

I guess you should read what I said again and try to understand my point correctly before trying to argue.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Old 07-31-2019, 05:43
edon1337
This message has been deleted by edon1337.
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-31-2019 , 05:49   Re: Print a message when player starts using +voicerecord
Reply With Quote #24

I actually think you should read what I said earlier, and I'm not trying to argue, I'm trying to prove a point.

Nobody was using voice chat.

PHP Code:
#include < amxmodx >
#include < fakemeta >

public plugin_init( )
{
    
register_forwardFM_Voice_SetClientListening"fwd_Voice_SetClientListening" );
}

public 
fwd_Voice_SetClientListeningiReceiveriSenderiListen )
{
    if( 
iReceiver == iSender || ! is_user_connectediReceiver ) || ! is_user_connectediSender ) || ! iListen )
    return 
FMRES_IGNORED;
    
    
client_print0print_chat"Receiver: %d | Sender: %d"iReceiveriSender );
    return 
FMRES_IGNORED;

Also tried checking whether bListen was false. Same results.

Code:
Receiver: 2 | Sender: 4
Receiver: 3 | Sender: 1
Receiver: 3 | Sender: 5
Receiver: 5 | Sender: 1
Receiver: 5 | Sender: 3
Receiver: 1 | Sender: 3
Receiver: 1 | Sender: 5
Receiver: 3 | Sender: 1
Receiver: 3 | Sender: 5
Receiver: 4 | Sender: 2
Receiver: 5 | Sender: 1
Receiver: 5 | Sender: 3
Receiver: 1 | Sender: 3
Receiver: 1 | Sender: 5
Receiver: 3 | Sender: 1
Receiver: 3 | Sender: 5
Receiver: 4 | Sender: 2
Receiver: 5 | Sender: 1
Receiver: 5 | Sender: 3
Receiver: 1 | Sender: 3
Receiver: 1 | Sender: 5
Receiver: 3 | Sender: 1
Receiver: 3 | Sender: 5
Receiver: 4 | Sender: 2
Receiver: 5 | Sender: 1
Receiver: 5 | Sender: 3
Receiver: 1 | Sender: 3
Receiver: 1 | Sender: 5
Receiver: 3 | Sender: 1
Receiver: 3 | Sender: 5
Receiver: 4 | Sender: 2
Receiver: 5 | Sender: 1
Receiver: 5 | Sender: 3
Receiver: 1 | Sender: 3
Receiver: 1 | Sender: 5
Receiver: 2 | Sender: 4
__________________

Last edited by edon1337; 07-31-2019 at 05:52.
edon1337 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 19:50.


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