Raised This Month: $ Target: $400
 0% 

[ Solved ] Ambience Sound what heard everywhere


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-03-2009 , 12:49   Re: Ambience Sound what heard everywhere
Reply With Quote #8

ok tested and it worked just fine, but how i can do random precache from these sounds?
PHP Code:
new g_Ambience[] = {
    
"DayOfDefeat/dodambience1.wav",
    
"DayOfDefeat/dodambience2.wav",
    
"DayOfDefeat/dodambience3.wav",
    
"DayOfDefeat/dodambience4.wav",
    
"DayOfDefeat/dodambience5.wav",
    
"DayOfDefeat/dodambience6.wav"
}; 
i tryed like that but it dident worked
PHP Code:
new g_PreAmbience;

    
g_PreAmbience g_Ambience[random_num(0sizeof g_Ambience 1)];
    
engfunc(EngFunc_PrecacheSoundg_PreAmbience);

    
// [...]
    
set_pev(entitypev_messageg_PreAmbience); 
__________________
xPaw is offline
 



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 09:14.


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