Audio for players in virtual world
#1

Hello .
I coded an audio streaming code, but i guess it plays the music for everyone, and i want to play it for those, who are in virtual world 3. Any suggestions?
PHP код:
CMD:playmusicl(playeridparams[])
 {
    if(
GetPlayerVirtualWorld(playerid) == 3) return SendClientMessage(playerid, -1"Ure not in virtual world 3!");
    if(
isnull(params)) return SendClientMessage(playerid, -1"Ievadi: /playmusicl (url)");
    foreach(
Playeri)
    {
    
PlayAudioStreamForPlayer(iparams);
    }
    return 
1;
 } 
Reply


Messages In This Thread
Audio for players in virtual world - by Mill - 02.04.2018, 11:58
Re: Audio for players in virtual world - by David (Sabljak) - 02.04.2018, 12:13
Re: Audio for players in virtual world - by Sabur - 02.04.2018, 12:14
Re: Audio for players in virtual world - by Mill - 02.04.2018, 12:24

Forum Jump:


Users browsing this thread: 1 Guest(s)