Quote:
Originally Posted by SilentSoul
This section for people who got some problems with their script. by the way i hope you learn.
pawn Код:
public OnPlayerUpdate(playerid) { if(IsPlayerInRangeOfPoint(playerid, 20.0, 842.67010, -2049.13647, 11.67430)) { PlayAudioStreamForPlayer(playerid, "http://www.woo55.com/adata/11069/ow59LUN3ODCf.129.mp3", 842.67010, -2049.13647, 11.67430, 100.0, 1); } return 1; }
|
Quote:
Originally Posted by VenomMancer
This will good ?
pawn Код:
public OnPlayerUpdate(playerid) { if(IsPlayerInRangeOfPoint(playerid, 20.0, 842.67010, -2049.13647, 11.67430)) { PlayAudioStreamForPlayer(playerid, "http://www.woo55.com/adata/11069/ow59LUN3ODCf.129.mp3"); } else return StopAudioStreamForPlayer(playerid); // <<< Will make when the player not on the event place the music will auto stoped ! return 1; }
|
That will play every time
OnPlayerUpdate gets called, I suggest using
streamer and use
OnPlayerEnter/ExitDynamicArea