|
|
#1 |
|
Banned
![]() Join Date: Jan 2012
Location: Bulgaria
Posts: 222
Reputation: 8
|
Hey guys i have a very cool idea about my gamemode but i need to know how can i play random audio streams ? Anyone can help me ?
|
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2011
Location: Serbia
Posts: 1,230
Reputation: 139
|
First you need to choose which streams and then to take random of them. You can't play any random stream since 99.999999% of possible streaming URLs are invalid.
EDIT: Yes you can play mp3. Upload it and play it. |
|
|
|
|
|
#3 |
|
Little Clucker
![]() Join Date: Feb 2012
Location: United Kingdom
Posts: 36
Reputation: 4
|
You can indeed play a MP3, though I don't know how to randomly play them, my guess would be randomly select one from an array of them using a timer of some sort?
|
|
|
|
|
|
#4 |
|
Little Clucker
![]() Join Date: May 2012
Posts: 26
Reputation: 0
|
can we use like the url like gamemodename/scriptfiles/audio/blabla.mp3
|
|
|
|
|
|
#5 |
|
Banned
![]() Join Date: Jan 2012
Location: Bulgaria
Posts: 222
Reputation: 8
|
No i think you didn't get what i ment... i meen i have my own uploaded sounds and i want to randomly play them when player dies. Whoops also sorry for the mistake in the name of the topic. Fixed it.
|
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2011
Location: Serbia
Posts: 1,230
Reputation: 139
|
Like this:
pawn Code:
|
|
|
|
|
|
#7 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jan 2012
Location: samp.teamshrimp.com:7777
Posts: 226
Reputation: 20
|
Well to play randomly the easyest way for me to do it would be to make an array to hold the urls for the streams. Then in your case, when the player dies, make it pick a random stream.
EDIT:Instead of a array [MG]Dimi's would work too And as for sound clips you can upload any sounds you want here http://kiwi6.com/ and then copy the hotlink and it will stream for you. Last edited by nickdodd25; 11/06/2012 at 03:32 PM. Reason: change |
|
|
|
|
|
#8 | |
|
Banned
![]() Join Date: Jan 2012
Location: Bulgaria
Posts: 222
Reputation: 8
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vehicle still streams in when the interior is different | leong124 | Bug Reports | 13 | 28/04/2012 03:23 PM |
| Help With Streams & Towing | Dennis_Smith | Scripting Help | 1 | 18/03/2012 08:11 PM |
| Audio Streams | Infamous | Scripting Help | 2 | 13/03/2012 01:34 PM |
| Disable Audio Streams | Memoryz | Client Support | 6 | 01/03/2012 02:09 AM |