[Ajuda] SISTEMA GRITAR
#4

Bom, se quiser para todos os players do servidor eu acho que sei fazer, primeiro vocк deverб definir que й para todos os players do servidor sendo assim:
Код:
for (new i=0; i < MAX_PLAYERS; i++)
E com este cуdigo base utilizaremos isto para iniciar o audio para todos do servidor totalizando:

Код:
for (new i=0; i < MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, "http://24.media.v4.skyrock.net/music/245/dcd/245dcdbcbc5b0e5b2f89c26fc1eed062.mp3");
}

e para players que estгo perto й assim:

new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerInRangeOfPoint(i, /*Ratio*/, Pos[0], Pos[1], Pos[2]))
    {
        PlayAudioStreamForPlayer(i, "http://24.media.v4.skyrock.net/music/245/dcd/245dcdbcbc5b0e5b2f89c26fc1eed062.mp3");
    }
}
Reply


Messages In This Thread
SISTEMA GRITAR - by Dimbalada - 25.04.2017, 23:52
Re: SISTEMA GRITAR - by FullStarS - 25.04.2017, 23:56
Re: SISTEMA GRITAR - by Dimbalada - 25.04.2017, 23:57
Re: SISTEMA GRITAR - by FullStarS - 25.04.2017, 23:58
Re: SISTEMA GRITAR - by Adiiti - 25.04.2017, 23:59
Re: SISTEMA GRITAR - by FullStarS - 26.04.2017, 00:02
Re: SISTEMA GRITAR - by Adiiti - 26.04.2017, 00:04
Re: SISTEMA GRITAR - by FullStarS - 26.04.2017, 00:05
Re: SISTEMA GRITAR - by Dimbalada - 26.04.2017, 00:10
Re: SISTEMA GRITAR - by Adiiti - 26.04.2017, 00:13

Forum Jump:


Users browsing this thread: 3 Guest(s)