sound problem.
#1

I only hear the sound when player connect others wont.

public OnPlayerConnect(playerid)
{

SendClientMessage(playerid,0xFFFF00AA,"Use /stopmusic to stop the music");
TogglePlayerClock(playerid, 0); // Show the clock
SetPlayerColor(playerid,0xFFFFFFAA);
PlayAudioStreamForPlayer(playerid, "http://k004.kiwi6.com/hotlink/96jz2pcdwx/ddd.mp3");
return 1;
}
Reply
#2

You mean only ID 0 hears the song?
Reply
#3

You want every time someone connects the sound will be hear by everyone even they are spawned?
if you say so loop it something like this

pawn Код:
for(new i; i<MAX_PLAYERS;i++)
{
    if(IsPlayerConnected(i))
    {
       PlayAudioStreamForPlayer(i, "http://k004.kiwi6.com/hotlink/96jz2pcdwx/ddd.mp3");
    }
}
Reply
#4

I think he wants only players that are on connecting stage to hear sound
Reply
#5

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
I think he wants only players that are on connecting stage to hear sound
Quote:
Originally Posted by oscar7610
Посмотреть сообщение
I only hear the sound when player connect others wont.
it is clear to you? he wants to make all players hear the sound.
Reply
#6

yes all players
Reply
#7

I want all players to hear this sound how can I make it? please when they connect but when they spawn the music stops or /stopmusic to stop. I can hear the music but others not
Reply
#8

someone pls?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)