HLMOD.HU Forrás Megtekintés
- www.hlmod.hu#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Custom spray sound"
#define VERSION "0.2"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "v3x");
register_forward(FM_EmitSound, "EmitSound");
}
new CUSTOM_SOUND[] = "misc/css_sprayer.wav";
public plugin_precache()
precache_sound(CUSTOM_SOUND);
public EmitSound(entity, channel, const sound[])
{
if(pev_valid(entity))
{
if(contain(sound, "player/sprayer.wav")!=-1)
{
emit_sound(entity, channel, CUSTOM_SOUND, 1.0, ATTN_NORM, 0, PITCH_NORM);
return FMRES_SUPERCEDE;
}
}
return FMRES_IGNORED;
}