Try this :
Code:
#include <amxmodx>
new const gNewTerroristMsg[] = "Zombie Win";
new const gNewCTMsg [] = "Human Win";
public plugin_init()
{
register_plugin( "Custom Terrorist Win Sound/Message" , "1.0", "Arkshine" );
register_message( get_user_msgid( "TextMsg" ) ,"Message_TextMsg" );
}
public Message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{
static const TerroristMsg[] = "#Terrorists_Win";
static const CTMsg [] = "#CTs_Win";
static Message[ sizeof TerroristMsg + 1 ];
get_msg_arg_string( 2, Message, charsmax( Message ) );
if ( equal( Message, TerroristMsg ) )
{
set_msg_arg_string( 2, gNewTerroristMsg );
}
else if ( equal( Message, CTMsg ) )
{
set_msg_arg_string( 2, gNewCTMsg );
}
}
__________________