Quote:
Originally Posted by DJEarthQuake
MP3 is generic cache.
Example.
Code:
new const SOUND_SANI[] = "sound/misc/sani.mp3"
precache_generic(SOUND_SANI);
|
*
*
*
*非常感谢,谢谢您的帮助,祝您好运
*
*
*
#include <amxmodx>
#define PLUGIN“ Headshot Sound”
#define VERSION“ 1.0”
#define AUTHOR“ Author”
新的const声音文件[] =“ misc / head.wav” //此处为声音文件名
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
}
public plugin_precache()precache_sound(
soundfile )public client_death(iKiller,iVictim,iWpnIndex,iHitPl ace)
{
如果(iHitPlace == HIT_HEAD)
{
client_cmd(iKiller,“ spk misc / head.wav”)
}
}
Only a shot in the head of death, the voice heard, only my own how to let the players also can hear the sound