cmd for audistream all players
#1

how to make a command with audio stream for all players ??
i know for one player but for all?
Reply
#2

pawn Код:
//everyone.
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
StopAudioStreamForPlayer(i);
PlayAudioStreamForPlayer(i, "the fakin link here");
}
}
//people nearby.
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i,RANGE,Pos[0],Pos[1],Pos[2]))
{
StopAudioStreamForPlayer(i);
PlayAudioStreamForPlayer(i, "the fakin link here");
}
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)