Raised This Month: $ Target: $400
 0% 

Sound Replace


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NooTy
Member
Join Date: Sep 2019
Old 06-15-2020 , 08:08   Sound Replace
Reply With Quote #1

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
NooTy is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode