03.06.2012, 14:21
Is there a way to play the music that came with the game (Car radio) when someone enters an area? I've found something called PlayAudioStreamForPlayer, but I can't figure it out.
public OnGameModeInit()
{
SetTimer("Music", 1000, true);
return 1;
}
forward Music();
public Music()
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerInRangeOfPoint(i, 5, x, y, z))
{
PlayAudioStreamForPlayer(i, URL, 0, 0, 0, 50.0, 0);
}
}