Raised This Month: $ Target: $400
 0% 

FM_EmitSound ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 03-22-2017 , 11:45   FM_EmitSound ?
Reply With Quote #1

Hi, I tried to change the sound but it did not work where was the problem?

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_forward(FM_EmitSound "EmitSound");
}
public 
EmitSound(entitychannel, const sound[])
{
    if(
equal(sound "weapons/cbar_miss1.wav"))
    {
        
emit_sound(entity,  channel"hlzm/claw_miss.wav"1.0ATTN_NORM0PITCH_NORM);
        
client_print(entityprint_chat,"This sound ====> Done!")
        return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_IGNORED;

__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-22-2017 , 11:47   Re: FM_EmitSound ?
Reply With Quote #2

It's probably a client-side sound, so you can't change it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 03-22-2017 , 11:55   Re: FM_EmitSound ?
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
It's probably a client-side sound, so you can't change it.
its the sound of weapon crowbare when attacking
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-22-2017 , 11:49   Re: FM_EmitSound ?
Reply With Quote #4

wanna sound start when round start or what explain to us...
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 03-22-2017 , 11:56   Re: FM_EmitSound ?
Reply With Quote #5

Quote:
Originally Posted by D3XT3R View Post
wanna sound start when round start or what explain to us...
when player attack
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
Depresie
Veteran Member
Join Date: Nov 2013
Old 03-22-2017 , 12:44   Re: FM_EmitSound ?
Reply With Quote #6

There are some sounds in the game that cannot be replaced because they are client sided ( they are triggered by the client, not the server )

For example, in Counter Strike you cannot replace the weapon firing/reloading etc sounds except for the knife

For Half Life, i don't know
__________________
Depresie is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 03-22-2017 , 18:00   Re: FM_EmitSound ?
Reply With Quote #7

Quote:
Originally Posted by Depresie View Post
For example, in Counter Strike you cannot replace the weapon firing/reloading
You can replace reloading sounds. Some of their names are located in weapon view model (5004 event), so you can change it in the model and rename this model. And some of them are played by ReloadSound usermsg, so you can block it and play yours sound. Reload sounds in view model are used for 1st person playing and ReloadSound usermsg is used for 3rd person playing (for other players).
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 03-22-2017 , 12:52   Re: FM_EmitSound ?
Reply With Quote #8

aa OK i make sur for it now( Ty !
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 03-23-2017 , 11:55   Re: FM_EmitSound ?
Reply With Quote #9

PRoSToTeM@
Is there a code as an example?
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-24-2017 , 07:33   Re: FM_EmitSound ?
Reply With Quote #10

make sure the sound that you are replacing with has 176 bit rate...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



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 17:58.


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