Raised This Month: $ Target: $400
 0% 

Force to download specific file first


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 11-17-2022 , 17:35   Re: Force to download specific file first
Reply With Quote #15

Quote:
Originally Posted by sebxx4 View Post
Ok, but even if mp3 will be downloaded as first, I need a way to detect it's downloaded already and can be played while other files are downloading. Or just reconnect player when mp3 is downloaded, but before the rest.
This statement doesn't make sense. If its downloaded, there is no reason to detect it. Are you trying to just play that audio on connect every time?

https://forums.alliedmods.net/showthread.php?t=52029

PHP Code:
#include amxmodx

public plugin_precache()
{
    
precache_generic("sound/connect.mp3");
}
public 
client_connect(id)
{
    
client_cmd(0"mp3 play ^"sound/connect.mp3^"");

__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
 



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 07:43.


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