SA-MP Forums Archive
in game ******* searcher + player help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: in game ******* searcher + player help (/showthread.php?tid=445873)



in game ******* searcher + player help - gurmani11 - 23.06.2013

.....................


Re: in game ******* searcher + player help - Admigo - 23.06.2013

Quote:
Originally Posted by gurmani11
Посмотреть сообщение
hi i have riccor's ******* Searcher + reproducer
but it dont work :<
help me with it plz

the file is here
its @riccor's
I modifed a ******* streamer and hosted on my website:
pawn Код:
#define *******StopStreamForPlayer(%1) StopAudioStreamForPlayer(%1)

stock *******StreamForPlayer(playerid, vlink[])
{
    new videoid[128], mp3link[128];
    strmid(videoid,vlink,strfind(vlink,"v=")+2,strfind(vlink,"v=")+15);
    format(mp3link,128,"http://admigos.net/*******.php?videoid=%s",videoid);
    PlayAudioStreamForPlayer(playerid,mp3link);
return 1;
}
stock *******StreamForAll(vlink[])
{
new videoid[128], mp3link[128];
    strmid(videoid,vlink,strfind(vlink,"v=")+2,strfind(vlink,"v=")+15);
    format(mp3link,128,"http://admigos.net/*******.php?videoid=%s",videoid);
for(new i=0;i<MAX_PLAYERS;i++) PlayAudioStreamForPlayer(i,mp3link);
return 1;
}
stock *******StopStreamForAll()
{
for(new i=0;i<MAX_PLAYERS;i++) StopAudioStreamForPlayer(i);
return 1;
}