Quote:
Originally Posted by Sanjay Singh
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)
}
}
|
CS1.5 and CS1.6, WAV and MP3 players try doesn't work, please continue to improve, thank you