#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#define P_SOUND "sector/nice_knife.wav"
public plugin_init()
{
register_plugin("Knife kill sound", "1.0", "by GordonFreeman")
}
public plugin_precache()
{
precache_sound( P_SOUND )
}
public client_death( killer, victim, wpnindex )
{
if( wpnindex == 29 )
{
for( new i; i <= get_maxplayers(); i++ )
{
if( is_user_connected( i ) )
{
client_cmd( i, "spk %s", P_SOUND )
}
}
}
}