PHP Code:
#include <amxmodx>
#include <fakemeta>
#define VERSION "0.0.1"
#define NEW_PITCH 80
#define SENDAUDIO_MESSAGE_PITCH_ARG 3
public plugin_init()
{
register_plugin("Sounds Pitch", VERSION, "ConnorMcLeod")
register_forward(FM_EmitSound, "EmitSound")
register_forward(FM_EmitAmbientSound, "EmitAmbientSound")
register_message(get_user_msgid("SendAudio"), "Message_SendAudio")
}
public EmitSound(const iEnt, const iChan, const szSample[], const Float:fVol, const Float:fAttn, const iFlags, const iPitch)
{
emit_sound(iEnt, iChan, szSample, fVol, fAttn, iFlags, NEW_PITCH)
return FMRES_SUPERCEDE
}
public EmitAmbientSound(const iEnt, const Float:vecPos[3], const szSample[], const Float:fVol, const Float:fAttn, const iFlags, const iPitch)
{
engfunc( EngFunc_EmitAmbientSound, iEnt, vecPos, szSample, fVol, fAttn, iFlags, NEW_PITCH)
return FMRES_SUPERCEDE
}
public Message_SendAudio(const iMsgId, const iMsgDest, const id)
{
set_msg_arg_int(SENDAUDIO_MESSAGE_PITCH_ARG, ARG_SHORT, NEW_PITCH)
}
__________________