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

Round Terminator


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-13-2011 , 12:32   Re: Round Terminator
Reply With Quote #111

It appears not, no file have been parsed. It should be just a matter to unzip the contens in amxmodx/. You should see files in amxmodx/configs/orpheu/functions/.
__________________
Arkshine is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 03-13-2011 , 12:44   Re: Round Terminator
Reply With Quote #112

Aha thanks so much for your help it works perfect now!

I see where the problem was. I've had Orpheu set up on my LAN for quite some time, so the function files were already there. Although, to make it easier to upload to my server, I downloaded the orpheu_base from the link that you provided. The zip package downloaded from there, does not contain the function files :S I just uploaded them from my own config directory.
hornet is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 03-25-2011 , 17:50   Re: Round Terminator
Reply With Quote #113

Why i cant block win sounds, is it round_terminator fault?

iam using your method, win messages are blocked sucsesfully, but win sound plays

PHP Code:
  public plugin_init()
    {   
        
// block win sounds
        
register_messageget_user_msgid"SendAudio" ),"message_sendaudio" ); 
        
        
// block win messages
        
register_messageget_user_msgid"TextMsg" )  ,"message_textmsg"   ); 
    }
    
    
    public 
message_textmsgmsg_idmsg_destmsg_entity )
    {
        static 
message[3];
        
get_msg_arg_string2messagesizeof message );

        switch( 
message[1] )
        {
            
// -- #CTs_Win ; #Terrorists_Win ; #Round_Draw
            
case 'C''T''R' : return PLUGIN_HANDLED;
        }

        return 
PLUGIN_CONTINUE;
    }


    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 PLUGIN_HANDLED;
        }

        return 
PLUGIN_CONTINUE;
    } 
9evill is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-25-2011 , 19:48   Re: Round Terminator
Reply With Quote #114

Don't know, it should, because by default it uses emessage() so others plugins can hook such messages.
__________________
Arkshine is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 03-26-2011 , 03:58   Re: Round Terminator
Reply With Quote #115

Maybe you could update round_terminator, to have ability to block win messages and sounds?
Something like:
PHP Code:
 TerminateRoundroundEndTypeteamWinningmapTypesendWinMsgsendWinSound  ); 
9evill is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-26-2011 , 06:25   Re: Round Terminator
Reply With Quote #116

In BroadcastAudio(), try to change MSG_BROADCAST by MSG_ALL and see if it helps.
__________________
Arkshine is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 03-26-2011 , 09:51   Re: Round Terminator
Reply With Quote #117

No, it doesnt help.
9evill is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-26-2011 , 09:56   Re: Round Terminator
Reply With Quote #118

See if message_sendaudio() is well called before the check.
__________________
Arkshine is offline
9evill
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 03-27-2011 , 03:08   Re: Round Terminator
Reply With Quote #119

Yes it registered fine. I see it in logs.
PHP Code:
//Block win sounds
public message_sendaudiomsg_idmsg_destmsg_entity )
    {
        static 
message[10];
        
get_msg_arg_string2messagesizeof message );
        
        
log_amx("Send audio registered");
        

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

        return 
PLUGIN_CONTINUE;
    } 
9evill is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-27-2011 , 03:11   Re: Round Terminator
Reply With Quote #120

You should have logged message to see the string retrieved.
__________________
Arkshine 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 04:13.


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