17.09.2015, 14:23
(
Последний раз редактировалось dh240473; 17.09.2015 в 16:15.
)
Hi Guys Today I'm Going To Make A Tutorial How To Making A Stream And Stop Stream Commands
1.Sorry For My Bad English
2.You Need Put A Commands
Like That
3.You Need The Put Function Of That Commands
4.You Only Can Stream The Url Got .mp3 At Back Example:http://musicjustfor.me/assets/songs/...1440819845.mp3
5.If You're Think The Url Are Too Long You Need To Short It Using http://bit.do Or http://******* Or Http://*******
6.Compile And Enjoy The Script!
1.Sorry For My Bad English
2.You Need Put A Commands
PHP код:
CMD:stream(playerid, params[])
{
return 1;
}
CMD:stopstream(playerid, params[])
{
return 1;
}
3.You Need The Put Function Of That Commands
PHP код:
CMD:stream(playerid, params[])
{
new string[128];
if(isnull(params)) return SendClientMessage(playerid, LIGHT_RED, "USAGE: /stream [Url]");//error message if the params is nothing
new HighestPlayerId = GetPlayerPoolSize();
for(new x=0; x <= HighestPlayerId; x++) { // (note the condition change from < to <=)
if(!IsPlayerConnected(x)) continue;//only for connected player
format(string, sizeof(string), "[DJ]%s(%d)Has Been Stream The Best Music", IsPlayerName(playerid), playerid);//A Message To Send For All Player
SendClientMessage(x, 0x00FFFFFF, string);//A Function To Send The Message
PlayAudioStreamForPlayer(x, params);//Make The Music Are Played!
}
}
return 1;
}
CMD:stopstream(playerid, params[])
{
StopAudioStreamForPlayer(playerid);//Stop The Music
return 1;
}
5.If You're Think The Url Are Too Long You Need To Short It Using http://bit.do Or http://******* Or Http://*******
6.Compile And Enjoy The Script!
