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_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
else
if( message[1] == 'CT' ) // #Counter-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
else
if( message[7] == 'ct' ) // -- %!MRAD_terwin
{
client_cmd( msg_entity, "spk your_new_sound" ); // or mp3 play
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}