19.05.2010, 09:54
this work only if all player are in point ?
the timer
the public
public musicceck()
{
PlayMusicForAll(11331);
}
Код:
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; }
Код:
SetTimer("musicceck",1000,1);
public musicceck()
{
PlayMusicForAll(11331);
}