Raised This Month: $ Target: $400
 0% 

Code for random...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ctcwired
Member
Join Date: Aug 2007
Old 01-06-2008 , 19:00   Code for random...
Reply With Quote #1

Ok... I have this in my script...
PHP Code:
        server_cmd"amx_play holdmusic.mp3" 
This command is executing great... When it is time to... it executes
amx_play holdmusic.mp3

I added holdmusic2.mp3 and holdmusic3.mp3.....

I would like to change this command to a random state....
sometimes it does amx_play holdmusic.mp3
sometimes amx_play holdmusic2.mp3
and sometimes amx_play holdmusic3.mp3

Can someone give me the command that does random?? Or a small script that does random.... this command only needs to be executed once per map change... and the rest of the plugin is already getting to and executing this command but I want to make it execute 3 different commands at random...

Thanks!
__________________
I run a server, I make maps. My server looks like this \/ \/
www.xanacreations.com +karma if I was good!
______________
Ctcwired is offline
Send a message via AIM to Ctcwired Send a message via Skype™ to Ctcwired
 



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 11:12.


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