Raised This Month: $ Target: $400
 0% 

Random play sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 09-28-2012 , 17:14   Random play sounds
Reply With Quote #1

Hello.
How can i make to play random sounds in one event.
something like:

play random {
client_cmd(iVictim,"mp3 play sound/misc/x.mp3")
client_cmd(iVictim,"mp3 play sound/misc/y.mp3")
client_cmd(iVictim,"mp3 play sound/misc/z.mp3")
}

i don;'t know the exact snipet code to use, if anyone can help, i'll be forever grateful
Thanks in advance.
EDUTz is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 09-28-2012 , 17:39   Re: Random play sounds
Reply With Quote #2

PHP Code:
switch (random_num(13))
            {
                case 
1client_cmd(iVictim,"mp3 play sound/misc/x.mp3")
                case 
2client_cmd(iVictim,"mp3 play sound/misc/y.mp3")
                case 
3client_cmd(iVictim,"mp3 play sound/misc/z.mp3")
            } 
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 09-28-2012 , 17:40   Re: Random play sounds
Reply With Quote #3

Thank you very much.
EDUTz is offline
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 08:19.


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