27.06.2017, 18:27
hello anyone knows a good audiostream filterscript?? i want a one to pasty links from ******* not to upload the songs in a host.
//more advanced ? (using 2.0 functions) #include <[MV]_*******> #include <sscanf2> #include <zcmd> CMD:play(playerid,params[]) { new link[128]; if(sscanf(params,"s[128]",link)) return SendClientMessage(playerid,RED,"Usage: /play [*******-url]"); if(!IsValid*******URL(link)) return SendClientMessage(playerid,RED,"Invalid ******* link !"); if(strlen(link) >= 128) return SendClientMessage(playerid,RED,"Link too long !"); Play*******VideoForPlayer(playerid,link); return 1; } //This is the image on top of this post (the dialog) CMD:songinfo(playerid,params[]) { new info[256]; if(!Is*******VideoPlaying(playerid)) return SendClientMessage(playerid,RED,"There isn't any song playing at the moment."); format(info,sizeof(info),"Current song info:\n\n%s\nDuration: %d seconds\nLink: %s",GetVideoTitle(playerid),GetVideoDuration(playerid),GetVideoLink(playerid)); ShowPlayerDialog(playerid,DIALOG_SONGINFO,DIALOG_STYLE_MSGBOX,"Song info",info,"OK",""); return 1; }
thanks I found another one
Код:
//more advanced ? (using 2.0 functions) #include <[MV]_*******> #include <sscanf2> #include <zcmd> CMD:play(playerid,params[]) { new link[128]; if(sscanf(params,"s[128]",link)) return SendClientMessage(playerid,RED,"Usage: /play [*******-url]"); if(!IsValid*******URL(link)) return SendClientMessage(playerid,RED,"Invalid ******* link !"); if(strlen(link) >= 128) return SendClientMessage(playerid,RED,"Link too long !"); Play*******VideoForPlayer(playerid,link); return 1; } //This is the image on top of this post (the dialog) CMD:songinfo(playerid,params[]) { new info[256]; if(!Is*******VideoPlaying(playerid)) return SendClientMessage(playerid,RED,"There isn't any song playing at the moment."); format(info,sizeof(info),"Current song info:\n\n%s\nDuration: %d seconds\nLink: %s",GetVideoTitle(playerid),GetVideoDuration(playerid),GetVideoLink(playerid)); ShowPlayerDialog(playerid,DIALOG_SONGINFO,DIALOG_STYLE_MSGBOX,"Song info",info,"OK",""); return 1; } |
How about try that by yourself? I believe that'd be faster than asking people here to test and tell you the result.
|