Quote:
Originally Posted by wy19850
Hit the head dead, make a sound, hope someone help, thank you
|
Try
PHP Code:
#include <amxmodx>
#define PLUGIN "Headshot Sound"
#define VERSION "1.0"
#define AUTHOR "Author"
new const soundfile[]="misc/headshot.mp3" //soundfile name here
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public plugin_precache() precache_sound(soundfile)
public client_death(iKiller, iVictim, iWpnIndex, iHitPlace)
{
if(iHitPlace == HIT_HEAD)
{
client_cmd(iKiller, "mp3 play %s", soundfile)
}
}
__________________