Hey, I wanna help in this code
Code:
public fw_EmitSound(id, channel, String:sample[], Float:volume, Float:attn, flags, pitch)
{
if (!is_user_connected(id))
{
return 1;
}
if (scmode[id] && equal(sample[8], "mp5",3))
{
if (equal(sample[14], "sho",3))
volume = 0.60/*1058642330*/;
{
if (equal(sample, "weapons/mp5-1.wav"))
{
emit_sound(id, CHAN_ITEM, "Brawl_Stars/effects/colt_attack.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
}
if (equal(sample, "weapons/mp5-2.wav"))
{
emit_sound(id, CHAN_ITEM, "Brawl_Stars/effects/colt_attack.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
}
}
}
if (skmode[id] && equal(sample[8], "kni",3))
{
volume = 0.60/*1058642330*/;
if (equal(sample[14], "sla",3))
{
engfunc(EngFunc_EmitSound, id, channel, "Brawl_Stars/effects/mortis_attack.wav", volume, attn, flags, pitch);
return 4;
}
}
return FMRES_IGNORED;
}
when i slap with knife work but mp5 not work