Raised This Month: $ Target: $400
 0% 

precache_sound in parts


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mati009988
Member
Join Date: Jul 2009
Old 09-11-2015 , 16:35   precache_sound in parts
Reply With Quote #1

Hi,
Can I download sounds in parts?
I have got more than 20 sounds on my server and download time is to long for players.
I would to download 5 songs every connect to server.

Something like...
PHP Code:
public plugin_precache(id){
    if(!
part_1_songs){
        
precache_sound("misc/1.mp3")
        
precache_sound("misc/2.mp3")
        
precache_sound("misc/3.mp3")
        
precache_sound("misc/4.mp3")
        
precache_sound("misc/5.mp3")
    } else if(!
part_2_songs){
        
precache_sound("misc/6.mp3")
        
precache_sound("misc/7.mp3")
        
precache_sound("misc/8.mp3")
        
precache_sound("misc/9.mp3")
        
precache_sound("misc/10.mp3")
    } else if(!
part_x){
        
    }

Maby nvalut or another way to check downloaded?

Please help
mati009988 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 22:14.


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