SA-MP Forums Archive
Audio stream with neared players - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Audio stream with neared players (/showthread.php?tid=597456)



Audio stream with neared players - Mill - 31.12.2015

[pawno]
if (strcmp("/radiopos", cmdtext, true) == 0)
{
new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GetPlayerPos(playerid, X, Y, Z);
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls", X, Y, Z, Distance, 1);
return 1;
}
return 0;
}
[/pawno]

Didnt help me because i got a lot of errors.

I changed the X Y Z to my position but i got errors on GetPlayerPos and new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
Can anyone help me?

And i make the script like UIF like party room.
When can change the radio station near players.???


Re: Audio stream with neared players - GeneralAref - 31.12.2015

remove this
PHP код:
return 0;




Re: Audio stream with neared players - Mill - 31.12.2015

Quote:
Originally Posted by GeneralAref
Посмотреть сообщение
remove this
PHP код:
return 0;

nothing. just same