06.07.2010, 09:13
Quote:
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 ?
|
pawn Код:
zcmd(music, playerid, params[])
{
Audio_Play(playerid, yourmusicfilehandleid);
Audio_Seek(playerid, yourmusicfilehandleid, random(3600));
return 1;
}