Raised This Month: $ Target: $400
 0% 

how to block SendAudio?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 07-07-2010 , 05:21   how to block SendAudio?
Reply With Quote #1

i do
PHP Code:
register_messageget_user_msgid"SendAudio" ),"message_sendaudio" ); 

public 
message_sendaudiomsg_idmsg_destmsg_entity )
{
    static 
message[10];
    
get_msg_arg_string2messagesizeof message );

    switch( 
message[7] )
    {
        
// -- %!MRAD_terwin ; %!MRAD_ctwin ; %!MRAD_rounddraw
        
case 'c''t''r' : return end();
    }

    return 
PLUGIN_CONTINUE;
}

public 
end()
{
    
log_amx("blocked message");
    return 
PLUGIN_HANDLED;

we get "blocked message" and I don't hear "Terrorist Win" etc sounds but event is called

PHP Code:
register_event("SendAudio","end_round","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw");

public 
end_round()
{
    
log_amx("is still called");

we get "is still called" =\
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
 



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 07:06.


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