Need help
#9

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
Reply


Messages In This Thread
Need help - by OssiBaba - 26.12.2013, 18:49
Re: Need help - by VenomMancer - 26.12.2013, 18:55
Re: Need help - by SilentSoul - 26.12.2013, 18:56
Re: Need help - by iJumbo - 26.12.2013, 18:56
Re: Need help - by OssiBaba - 26.12.2013, 18:59
Re: Need help - by VenomMancer - 26.12.2013, 19:01
Re: Need help - by SilentSoul - 26.12.2013, 19:01
Re: Need help - by VenomMancer - 26.12.2013, 19:09
Re: Need help - by Patrick - 26.12.2013, 19:09
Re: Need help - by OssiBaba - 27.12.2013, 06:29

Forum Jump:


Users browsing this thread: 1 Guest(s)