Quote:
Originally Posted by sebxx4
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^"");
}
__________________