Boombox or PlayAudioStream
#8

I want player to spawn their own ID of boombox, but this one seems weird.., sometimes the object itself doesn't show up,

this is the pwn when no song is chosen(despawn object)
pawn Код:
new Float:X, Float:Y, Float:Z, Float:Distance = 15.0;
                        for(new BoomBoxItem = 0; BoomBoxItem < MAX_OBJECTS; BoomBoxItem++)
                        {
                            if(IsValidObject(BoomBoxItem)) DestroyDynamicObject(BoomBoxItem);
                        }
                        for(new i = 0; i < MAX_PLAYERS; i++)
                        {
                            for(new BoomBoxItem = 0; BoomBoxItem < MAX_OBJECTS; BoomBoxItem++)
                            {

                                GetDynamicObjectPos(BoomBoxItem, X, Y, Z);
                            }
                            if(IsPlayerInRangeOfPoint(i, X, Y, Z, Distance))
                            {
                                StopAudioStreamForPlayer(i);
                            }
                         }
                        BoomboxPlaced[playerid] = 0;
                        StopAudioStreamForPlayer(playerid);
Reply


Messages In This Thread
Boombox or PlayAudioStream - by Malcor - 03.09.2012, 08:56
Re: Boombox or PlayAudioStream - by HuSs3n - 03.09.2012, 09:04
Re: Boombox or PlayAudioStream - by Malcor - 03.09.2012, 09:13
Re: Boombox or PlayAudioStream - by HuSs3n - 03.09.2012, 09:21
Re: Boombox or PlayAudioStream - by Malcor - 03.09.2012, 09:23
Re: Boombox or PlayAudioStream - by HuSs3n - 03.09.2012, 09:51
Re: Boombox or PlayAudioStream - by Malcor - 05.09.2012, 15:29
Re: Boombox or PlayAudioStream - by Malcor - 05.09.2012, 15:32
Re: Boombox or PlayAudioStream - by leonardo1434 - 05.09.2012, 15:51

Forum Jump:


Users browsing this thread: 10 Guest(s)