Raised This Month: $ Target: $400
 0% 

precache_sound in parts


Post New Thread Reply   
 
Thread Tools Display Modes
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
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-11-2015 , 16:39   Re: precache_sound in parts
Reply With Quote #2

I suggest setting up fast download.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
mati009988
Member
Join Date: Jul 2009
Old 09-11-2015 , 16:44   Re: precache_sound in parts
Reply With Quote #3

I`ve got fast download but first connect to server continues more than three minutes. Without songs it`s above one...
mati009988 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-11-2015 , 16:56   Re: precache_sound in parts
Reply With Quote #4

Well remove some of the songs because what you want to do is not possible.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
mati009988
Member
Join Date: Jul 2009
Old 09-11-2015 , 16:58   Re: precache_sound in parts
Reply With Quote #5

I think it`s possible. If cs can check it, why amxx can not? Maby someone have any ideas?
mati009988 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-11-2015 , 17:06   Re: precache_sound in parts
Reply With Quote #6

If the player needs a sprite, sound or model to play then he will download it. If he doesn't have it then he can't join the server until he does. So if the player need part 2 of a song then he can't join the server until he download it.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
mati009988
Member
Join Date: Jul 2009
Old 09-11-2015 , 17:13   Re: precache_sound in parts
Reply With Quote #7

If server have not got any sounds, cs only warn about it in console. Player still can play, he can`t only hear sounds...
mati009988 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-11-2015 , 17:21   Re: precache_sound in parts
Reply With Quote #8

That's the server not the player.

Edit: Will the player need the sound to play?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 09-11-2015 at 17:28.
wickedd is offline
mati009988
Member
Join Date: Jul 2009
Old 09-11-2015 , 17:33   Re: precache_sound in parts
Reply With Quote #9

If server haven`t got, then player haven`t got it to... Ok, maby someone else have any ideas?

No, he don`t need it. Its`s only background sound

Last edited by mati009988; 09-11-2015 at 17:41.
mati009988 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-11-2015 , 18:16   Re: precache_sound in parts
Reply With Quote #10

Ok, but it's still not possible to do what you want.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Reply


Thread Tools
Display Modes

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