PHP Code:
#include <amxmodx>
public plugin_init()
{
register_event( "DeathMsg" , "DeathMsg" , "a" , "1>0" );
}
public DeathMsg()
{
new iKiller = read_data( 1 );
new iVictim = read_data( 2 );
new szWeapon[ 20 ];
new szVictimName[ 32 ] , szKillerName[ 32 ];
if ( iVictim != iKiller )
{
read_data( 4 , szWeapon , charsmax( szWeapon ) );
get_user_name( iKiller , szKillerName , charsmax( szKillerName ) );
get_user_name( iVictim , szVictimName , charsmax( szVictimName ) );
client_print( 0 , print_chat , "* %s killed %s with %s%s" , szKillerName , szVictimName , szWeapon , read_data( 3 ) ? ", via headshot!" : "" );
}
}
https://forums.alliedmods.net/showpo...14&postcount=2
__________________