This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Terrorists Win


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 10-13-2007 , 18:42   Terrorists Win
Reply With Quote #1

How can i change that message?
And the sound?
with client_print(0,print_center...... ?
__________________


I hate Spammers....
vl@d is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-13-2007 , 18:59   Re: Terrorists Win
Reply With Quote #2

Try this :

Code:
    #include <amxmodx>       public plugin_init()     {         register_plugin( "Custom Terrorist Win Sound/Message" , "1.0", "Amxx community" );         register_message( get_user_msgid( "SendAudio" ),"message_sendaudio" );         register_message( get_user_msgid( "TextMsg" )  ,"message_textmsg"   );     }         public message_textmsg( msg_id, msg_dest, msg_entity )     {         static message[3];         get_msg_arg_string( 2, message, sizeof  message - 1 );         if( message[1] == 'T' ) // #Terrorists_Win message         {             client_print( msg_entity, print_center, "Your new message" );             return PLUGIN_HANDLED;         }                 return PLUGIN_CONTINUE;     }     public message_sendaudio( msg_id, msg_dest, msg_entity )     {         static message[10];         get_msg_arg_string( 2, message, sizeof  message - 1 );         if( message[7] == 't' ) // -- %!MRAD_terwin         {             client_cmd( msg_entity, "spk your_new_sound" ); // or mp3 play             return PLUGIN_HANDLED;         }         return PLUGIN_CONTINUE;     }
__________________

Last edited by Arkshine; 10-13-2007 at 20:18.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-13-2007 , 19:21   Re: Terrorists Win
Reply With Quote #3

I've updated the code. Not tested yet but should work.
__________________
Arkshine is offline
l33tnewb
BANNED
Join Date: Sep 2007
Old 10-14-2007 , 04:49   Re: Terrorists Win
Reply With Quote #4

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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-14-2007 , 05:08   Re: Terrorists Win
Reply With Quote #5

"a picture shows in the screen"

I don't understand what you mean.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-14-2007 , 06:05   Re: Terrorists Win
Reply With Quote #6

In a motd window ? could be fun.
ConnorMcLeod is offline
l33tnewb
BANNED
Join Date: Sep 2007
Old 10-14-2007 , 08:38   Re: Terrorists Win
Reply With Quote #7

its like on css a picture is shown if zombies or humans win
l33tnewb is offline
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 10-14-2007 , 09:31   Re: Terrorists Win
Reply With Quote #8

thx a lot
__________________


I hate Spammers....
vl@d is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 04-27-2008 , 07:19   Re: Terrorists Win
Reply With Quote #9

gotcaek xD
rudle 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 14:20.


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