View Single Post
wy19850
Member
Join Date: Feb 2020
Location: suzhou
Old 02-18-2020 , 12:34   Re: To help new plug-in
Reply With Quote #20

Quote:
Originally Posted by DJEarthQuake View Post
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
wy19850 is offline
Send a message via Skype™ to wy19850