02.04.2018, 11:58
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?
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(playerid, params[])
{
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(Player, i)
{
PlayAudioStreamForPlayer(i, params);
}
return 1;
}