Stream, for all
#1

I have a system, that you can stream for a player, but i want to stream for everyone in one command... And only for admins, specifically rcon... I was wondering if i could set the pos on PlayAudioStreamForPlayer To the middle of the map, then set the radius to like 10000... Or maybe stream it on each player with foreach(when i tried to do this myself with foreach, if a player did /stopmusic, it would stop his audio, but he still heard everybodies...)
Reply
#2

The distance parameters are optional so all you have to do is use foreach and don't include coordinates.

Ex:

Код:
foreach(Player, i)
{
         PlayAudioStreamForPlayer(playerid, "url");
}
Reply
#3

Thats what i had... When i set it up with foreach, DOESNT WORK...
Reply
#4

try this way

pawn Код:
foreach(Player, i)
{
    PlayAudioStreamForPlayer(i, "url");
}

// or

for(new i = 0; i <MAX_PLAYERS; i++)
{
    PlayAudioStreamForPlayer(i, "url");
}
Reply
#5

didnt work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)