Raised This Month: $ Target: $400
 0% 

êmit sound & mp3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-18-2009 , 14:14   êmit sound & mp3
Reply With Quote #1

PHP Code:
public plugin_precache()
{
    
precache_sound"rally/drehzahl.wav" );
}



emit_sound,CHAN_ITEM"rally/drehzahl.wav"1.0ATTN_NORM0PITCH_HIGH); 
so this one now to mp3

PHP Code:
public plugin_precache()
{
    
precache_generic"sound/rally/drehzahl.mp3" );
}

emit_sound,CHAN_ITEM"sound/rally/drehzahl.mp3"1.0ATTN_NORM0PITCH_HIGH); 
<<< lol?? where am i wrong?


i like the sounds in wav. but its laggy, this must repeat the sound & this shit makes a noise by repeat.


&&& :

i tried with spk, but i can hear the player from very far distance. is there a way to edit the distance? i tried this on de_dust & i could hear the CT @ CTBASE when i was @B.
__________________

Last edited by One; 05-18-2009 at 14:26.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
merkava
Junior Member
Join Date: Jun 2008
Old 05-18-2009 , 14:49   Re: êmit sound & mp3
Reply With Quote #2

Maybe use this:
PHP Code:
new const sounds_bla[][] =
{
    
"rally/drehzahl.wav"
</span></span>
merkava is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-18-2009 , 14:54   Re: êmit sound & mp3
Reply With Quote #3

Quote:
Originally Posted by merkava View Post
Maybe use this:
PHP Code:
new const sounds_bla[][] =
{
    
"rally/drehzahl.wav"
</span></span>

there are more then 60 sounds. & how i said. this willbe nice when i could change the distance
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-18-2009 , 15:44   Re: êmit sound & mp3
Reply With Quote #4

the attenuation value is the distance the lower it its, the further you can hear the sound, ATTN_STATIC (1.25) can be heard really close, but not as close as ATTN_IDLE (2.0)... use ATTN_NONE (0.0) and see what happens when you place an emit sound in the far end of the map

also, you can not do emit sound with mp3, you can do a client command with mp3...
PHP Code:
client_cmd("mp3 play ^"sound/path/music.mp3^""
__________________
Hunter-Digital is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-18-2009 , 18:05   Re: êmit sound & mp3
Reply With Quote #5

emit_sound() accepts only .wav. If you want to loop a wav edit the sound with an audio software ( eg: SoundForge ) or you can try to search if there is a flag for that.
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 05-18-2009 , 18:13   Re: êmit sound & mp3
Reply With Quote #6

damn.

ty @all.

ill try this all later. now i have to install 6 servers

its bullshit what i do, every time that i begin to finishing the rally mod, is there a new problem & i dont have time for rally. :-|

2day added 10 sounds & the only one problem is this one here. i hope this will work. i tried this with EF_FadeClientVolume too
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Reply


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 01:26.


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