Raised This Month: $ Target: $400
 0% 

Loadingsound more than 1 Sound.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 08-05-2013 , 19:02   Re: Loadingsound more than 1 Sound.
Reply With Quote #3

First, you shouldn't precache mp3 files with precache_sound.

You must use precache_generic.

If you want to know how to do it, this is the right section. But if you want someone to do it for you, you must start the thread in the "Suggestions / Requests" section.

Code:
#include <amxmodx> new const mp3array[][] = {     "sound/misc/myfile.mp3",     "sound/misc/myfile2.mp3",     "sound/misc/myfile3.mp3" } public plugin_precache() {     for(new i; i<sizeof(mp3array); i++) {         precache_generic(mp3array[i])     } } public client_connect(id) {     client_cmd(id,"mp3 play ^"%s^"",mp3array[ random( sizeof(mp3array) ) ] ) } public plugin_init() {     register_plugin("Loadingsound","1.0","Lambo") }

Last edited by akcaliberg; 08-05-2013 at 19:31.
akcaliberg 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 15:46.


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