PHP Code:
public Event_DeathMsg()
{
new killer = read_data( 1 )
new victim = read_data( 2 )
new headshot = read_data( 3 )
if( !is_user_connected( killer ) || !is_user_connected( victim ) )
return PLUGIN_HANDLED
new killerName[32], victimName[32]
get_user_name( killer, killerName, 31)
get_user_name( victim, victimName, 31)
if( headshot )
{
client_print( 0, print_chat, "%s killed %s with a headshot!", killerName, victimName )
return PLUGIN_HANDLED
}
client_print( 0, print_chat, "%s killed %s.", killerName, victimName )
}
__________________