Raised This Month: $51 Target: $400
 12% 

How to play random sound?


Post New Thread Reply   
 
Thread Tools Display Modes
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-09-2010 , 08:32   Re: How to play random sound?
Reply With Quote #11

I think you have to add sound/ then.

Like:
PHP Code:

new const bGzSounds[][] = 
{
    
"sound/...mp3",
    
// more sounds
}

for(new 
0sizeof(bGzSounds); a++)
    
precache_generic(bGzSounds[a]);

client_cmd(id"mp3 play ^"%s^""bGzSounds[random(sizeof(bGzSounds))]); 
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 11-09-2010 at 08:38.
drekes is offline
Send a message via MSN to drekes
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 11-09-2010 , 09:58   Re: How to play random sound?
Reply With Quote #12

you can play mp3 through console ... but use .wav sound files
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
r14170
Veteran Member
Join Date: Dec 2009
Old 11-09-2010 , 15:38   Re: How to play random sound?
Reply With Quote #13

i love you miley thx a lot!
r14170 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-09-2010 , 16:43   Re: How to play random sound?
Reply With Quote #14

Quote:
Originally Posted by r14170 View Post
i love you miley thx a lot!
coolest thanks i ever got
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-09-2010 , 19:37   Re: How to play random sound?
Reply With Quote #15

Quote:
Originally Posted by drekes View Post
coolest thanks i ever got
He called you a GIRL!! lol.

Too bad her parents are getting a divorce.
__________________
fysiks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-09-2010 , 20:01   Re: How to play random sound?
Reply With Quote #16

Quote:
Originally Posted by fysiks View Post
He called you a GIRL!! lol.
Who says i'm a guy ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 02:20.


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