Help me please. .
#1

I need help with a code related to PlayAudioStreamForPlayer

Can anyone please show me the code of Playing streamed links in the server for everyone .
If he/she is rcon logged in he can do /stream [URL] - It will play globally for everyone .

Thank you I'l + Rep
Reply
#2

Quote:
Originally Posted by Desi_Dude
Посмотреть сообщение
I need help with a code related to PlayAudioStreamForPlayer

Can anyone please show me the code of Playing streamed links in the server for everyone .
If he/she is rcon logged in he can do /stream [URL] - It will play globally for everyone .

Thank you I'l + Rep
Код:
COMMAND:stream(playerid, params[])
{
	foreach(new i: Player) {
		PlayAudioStreamForPlayer(i, params);
	}
	return 1;
}

OR

COMMAND:stream(playerid, params[])
{
	foreach(Player, i) {
		PlayAudioStreamForPlayer(i, params);
	}
	return 1;
}
You need to make it error out though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)