Raised This Month: $ Target: $400
 0% 

Terrorists Win


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
l33tnewb
BANNED
Join Date: Sep 2007
Old 10-14-2007 , 04:49   Re: Terrorists Win
Reply With Quote #1

Can you do one for if ct win a picture shows in the screen
This wont work

PHP Code:
#include <amxmodx>
 
public plugin_init()
    {
        
register_plugin"Custom Terrorist Win Sound/Message" "1.0""Amxx community" );

        
register_messageget_user_msgid"SendAudio" ),"message_sendaudio" );
        
register_messageget_user_msgid"TextMsg" )  ,"message_textmsg"   );
    }
    

public 
message_textmsgmsg_idmsg_destmsg_entity )
    {
      static 
message[3];
      
get_msg_arg_string2messagesizeof  message );

      if( 
message[1] == 'T' // #Terrorists_Win message
      
else 
      if( 
message[1] == 'CT' // #Counter-Terrorists_Win message
      
{
          
client_printmsg_entityprint_center"Your new message" );
          return 
PLUGIN_HANDLED
      }
        
        return 
PLUGIN_CONTINUE;
    }
    
public 
message_sendaudiomsg_idmsg_destmsg_entity )
    {
      static 
message[10];
      
get_msg_arg_string2messagesizeof  message );

      if( 
message[7] == 't' // -- %!MRAD_terwin
      
else
      if( 
message[7] == 'ct' // -- %!MRAD_terwin
      
{
        
client_cmdmsg_entity"spk your_new_sound" ); // or mp3 play
        
return PLUGIN_HANDLED
      }

        return 
PLUGIN_CONTINUE;


Last edited by l33tnewb; 10-14-2007 at 04:52.
l33tnewb is offline
Reply


Thread Tools
Display Modes

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 09:27.


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