Test this.
PHP Code:
#include < amxmodx >
new g_iHudSync;
public plugin_init( ) {
register_plugin( "Death Name Shower", "0.1", "master4life" );
register_event( "DeathMsg", "EventDeathMsg", "a" );
g_iHudSync = CreateHudSyncObj( );
}
public EventDeathMsg( ) {
new iKiller = read_data( 1 );
new iVictim = read_data( 2 );
new szName[ 32 ]; get_user_name( iVictim, szName, 31 );
if( is_user_connected( iKiller ) ) {
set_hudmessage( 255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1 );
ShowSyncHudMsg( iKiller, g_iHudSync, "%s", szName );
}
}
__________________