stock PlayAudioStreamInRange( url[], Float:X, Float:Y, Float:Z, Float:Range=5.0 )
{
for( new playerid = 0; playerid < MAX_PLAYERS; playerid++ )
{
if( IsPlayerConnected(playerid) && IsPlayerInRangeOfPoint(playerid, Range, X, Y, Z) )
{
PlayAudioStreamForPlayer( playerid, url );
}
}
}
if( strcmp(cmd, \"/hangfal\", true) == 0 )
{
if(IsPlayerConnected(playerid))
{
PlayAudioStreamInRange( \"http://195.70.35.172:8000/radio1.mp3\", 661.8430, -440.6740, 16.3895, 20.0 );
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Hangfal\");
return 1;
}
}