09.06.2010, 07:48
We'll be testing this, and if it works. Great!
Originally Posted by tshadow
I can't do the comands?
How I put a Internet radio in this Plugin? |
How to attach music to the player or the car? GetPlayerPos it is not updated |
Originally Posted by tshadow
I can't do the comands?
How I put a Internet radio in this Plugin? |
[22:39:34] Playing: "test.mp3" [22:39:34] Stopped: "test.mp3" |
public Audio_OnTransferFile(playerid, file[], current, total, result)
{
if(current==total)
{
new sid=Audio_Play(playerid,2,false,true);
Audio_SetVolume(playerid,sid,100);
Audio_Set3DPosition(playerid,sid,953.082,2070.278,10.0,40.0);
}
return 1;
}
public Audio_OnTransferFile(playerid, file[], current, total, result)
{
if(current==total)
{
Audio_Play(playerid,2,false,true);
Audio_SetVolume(playerid,sid,100);
Audio_Set3DPosition(playerid,2,953.082,2070.278,10.0,40.0);
}
return 1;
}
Audio_SetPack(const audiopack[], bool:transferable = true); Audio_TransferPack(playerid);
Audio_TransferPack(playerid, const audiopack[]);
Originally Posted by Diablosrouge
Suppose I have a music file with 1:00:00 length (1hour) and when the player types a command like /music, is the client able to start playing the music file in a random time instead from 0:00:00 like 0:19:27 for example ?
|
Suppose I have a music file with 1:00:00 length (1hour) and when the player types a command like /music, is the client able to start playing the music file in a random time instead from 0:00:00 like 0:19:27 for example ?
|
zcmd(music, playerid, params[])
{
Audio_Play(playerid, yourmusicfilehandleid);
Audio_Seek(playerid, yourmusicfilehandleid, random(3600));
return 1;
}