If you want the sound to be heard by one player, use "spk":
PHP Code:
// precache the sound first
public plugin_precache()
{
precache_sound ("player/pl_pain2.wav")
return PLUGIN_CONTINUE
}
// and then play it:
public hurt_me(id)
{
client_cmd(id, "spk ^"player/pl_pain2.wav^"")
return PLUGIN_CONTINUE
}