SA-MP Forums Archive
help :D - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help :D (/showthread.php?tid=148824)



help :D - iJumbo - 19.05.2010

this work only if all player are in point ?
Код:
stock PlayMusicForAll(soundid)
{
  for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if (IsPlayerConnected(i))
		{
      if(IsPlayerInRangeOfPoint(i,50.0,-703.0861,963.7906,12.4002))
			{
			  PlayerPlaySound(i,soundid,0.0,0.0,0.0);
			}
		}
	}
	return 1;
}
the timer
Код:
SetTimer("musicceck",1000,1);
the public
public musicceck()
{
PlayMusicForAll(11331);
}