Code:
#include < amxmodx >
new const g_iDefuserColor[ 3 ] = { 255, 0, 255 };
public plugin_init( )
{
register_message( get_user_msgid( "StatusIcon" ), "MessageStatusIcon" );
}
public MessageStatusIcon( iMsgId, iDest, iReceiver )
{
static szIcon[ 32 ];
get_msg_arg_string( 2, szIcon, 31 );
if( equal( szIcon, "defuser" ) )
{
for( new i = 0; i < 3; i++ )
{
if( get_msg_arg_int( i + 3 ) != g_iDefuserColor[ i ] )
{
set_msg_arg_int( i + 3, ARG_BYTE, g_iDefuserColor[ i ] );
}
}
}
}
__________________