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

set_speak()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheKidz
Senior Member
Join Date: May 2009
Old 12-09-2011 , 22:42   set_speak()
Reply With Quote #1

Im having a problem with the set_speak thing, i already tried both, fakemeta and engine way to block players to talk, buuuut... when they connect, while dead with 0/0 frag, he can talk... anyway can show me a way to fix it ?
__________________
TheKidz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-09-2011 , 23:21   Re: set_speak()
Reply With Quote #2

Find the plugin that does this (or something similar) already using fakemeta. It doesn't use set_speak(). It uses FM_SetClientListening or something like that.
__________________

Last edited by fysiks; 12-09-2011 at 23:22.
fysiks is offline
TheKidz
Senior Member
Join Date: May 2009
Old 12-09-2011 , 23:26   Re: set_speak()
Reply With Quote #3

yes, i already tested with that forward:
PHP Code:
register_forwardFM_Voice_SetClientListening"fwdSetClientListeningPre");

public 
fwdSetClientListeningPreiReceiveriSenderbool:Listen ) {
    
client_printiSenderprint_chat"SPEAKING? %s"Listen "YES":"NO" );
    
    return 
FMRES_SUPERCEDE;

And, the message doesnt print when i late connect the server(joined the team and didnt spawned, frag 0/0).

what i mean with doesnt print is even the SPEAKING? thing is on my chat.
__________________
TheKidz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-10-2011 , 02:58   Re: set_speak()
Reply With Quote #4

You have forgotten forward_return
PHP Code:
public fwdSetClientListeningPreiReceiveriSenderbool:Listen )
{
    
client_printiSenderprint_chat"SPEAKING? %s"Listen "YES":"NO" );
    
forward_return
    
(
        
FMV_CELL
        
engfunc
        
(
            
EngFunc_SetClientListening
            
iReceiver
            
iSender
            
false
        
)
    );
    return 
FMRES_SUPERCEDE;

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-10-2011 at 03:00.
ConnorMcLeod is offline
TheKidz
Senior Member
Join Date: May 2009
Old 12-10-2011 , 18:28   Re: set_speak()
Reply With Quote #5

Can you explain to me why that forward_return is important? and the problem still, there is anyway that i could refresh the "list" who's iReceiver and iSender is in? seems like the server doesnt see those players who connected in late game.
__________________
TheKidz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-11-2011 , 04:30   Re: set_speak()
Reply With Quote #6

I don't know if forward_return is important, but for sure it's sure to resend EngFunc_SetClientListening because you SUPERCEDE the previous one.
It's not like hamsandwich where you can change arguments.

Edit : I've logged a bit, most of times function returns 1, but few times it returns 0 when Listen is 1.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-11-2011 at 06:04.
ConnorMcLeod is offline
TheKidz
Senior Member
Join Date: May 2009
Old 12-11-2011 , 16:11   Re: set_speak()
Reply With Quote #7

any ideas to fix it guys ? @_@
__________________
TheKidz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-12-2011 , 01:17   Re: set_speak()
Reply With Quote #8

Works for me oO
Make sure you don't run a plugin that is uses the same forward (amx_super for example).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 11:07.


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