19.12.2013, 12:11
pawn Код:
CMD:playmusic(playerid, params[])
{
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200");
return 1;
}
You will notice this:
Quote:
Originally Posted by SA-MP Wiki
Float:PosX The X position at which to play the audio. Default 0.0. Has no effect unless usepos is set to 1.
Float:PosY The Y position at which to play the audio. Default 0.0. Has no effect unless usepos is set to 1. Float:PosZ The Z position at which to play the audio. Default 0.0. Has no effect unless usepos is set to 1. Float:distance The distance over which the audio will be heard. Has no effect unless usepos is set to 1. usepos Use the positions and distance specified. Default disabled (0). |
I'm still unsure why this code would be playing audio for each player in the server, perhaps look for any other 'PlayAudioStreamForPlayer' codes in your script, and post the full functions/callbacks that include them here.