Audio stream with neared players
#1

[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.???
Reply
#2

remove this
PHP код:
return 0;

Reply
#3

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

nothing. just same
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)