PDA

View Full Version : [Include] [INC] SoundBox by Littlejohny (Version 1.0)


Littl3j0hNy
04/03/2009, 04:50 PM
[INC] SoundBox
by Littlejohny

Hi Community,
With this Include you can Create SoundBoxes.
If you go into the Radius of the SoundBox you can hear Sound.

Example: at LS PD
AddSoundBox(1, 1183, 1552.1064,-1675.5435,16.1441, 0.0,0.0,0.0)
[AddSoundBox(ID, TITELID, X,Y,Z, rX,rY,rZ)]

____________________________________

Name: SoundBox
Version: 1.0
Scripter: Littlejohny
Function: AddSoundBox(ID, TITELID, X,Y,Z, rX,rY,rZ);
Release: 4.3.09

____________________________________

Object ID's of Boxes: 1840, 2229, 2230, 2226, 2231, 2232
____________________________________

Download v1.0: Click (http://littlejohny.li.funpic.de/gtascripting/SoundBox.rar)
Pastebin: Click (http://pawno.pastebin.com/f7bf8b4eb)

Infos:

You can change the Limit of Boxes in the Include Line 10 !
If you want to add more than 998 Boxes change the 999 in the Include Line 11 to -1 !
You can change the Radius in the Include Line 34 !


Please put this Functions into your Script:
SoundBoxInit(); - Under GameModeInit
SoundBoxExit(); - Under GameModeExit


____________________________________

Please report Bugs ! Thanks !
And please give Credits ;)

- Mfg LJ

Dark_BasS
04/03/2009, 05:02 PM
Nice job Lj. ;)

Littl3j0hNy
04/03/2009, 05:04 PM
Thanks ^^

- LJ

Synkro93
04/03/2009, 05:29 PM
Nice, may be usable for even rp - stereo system on/off :mrgreen:

Rks25
04/03/2009, 05:36 PM
U can arrange a movie?

Littl3j0hNy
04/03/2009, 05:53 PM
U can arrange a movie?


Hmm, i think no, but if you want to make a Movie
Create it and send me over MSN ^^

- LJ

RyDeR`
04/03/2009, 06:07 PM
hehe thanks :D

Littl3j0hNy
05/03/2009, 12:05 PM
Hi,
No problem ^^

- LJ

DauerDicht
05/03/2009, 12:09 PM
can i hear my own music if the music is on webserver?

Littl3j0hNy
05/03/2009, 12:42 PM
can i hear my own music if the music is on webserver?


You can only hear the Sounds of GTA
Look here for the Sound Id's: http://wiki.sa-mp.com/wiki/SoundID

- LJ

DauerDicht
05/03/2009, 12:43 PM
what a shame... but thx!

1337connor
05/03/2009, 10:58 PM
Nice, Does this mean you can play any sound? Like Music? That would be SWEET.

Norn
05/03/2009, 11:03 PM
Pity changing volumes not possible.

Littl3j0hNy
06/03/2009, 10:15 AM
Nice, Does this mean you can play any sound? Like Music? That would be SWEET.


Hi,
You can play only GTA Sounds, a List of the Sound ID's you can find on SA:MP Wiki.

- LJ

Magician
06/03/2009, 11:08 AM
I suggest you to put INVALID_BOX_ID to -1, so there could be more than 998 b0x3z.

Littl3j0hNy
06/03/2009, 11:13 AM
I suggest you to put INVALID_BOX_ID to -1, so there could be more than 998 b0x3z.


Yeah, but i don' think, that anybody adds 998 Boxes ^^

- LJ :mrgreen:

Magician
06/03/2009, 11:40 AM
No shit sherlock, I already added ~300 boxes in less than day 8)

Littl3j0hNy
06/03/2009, 11:49 AM
No shit sherlock, I already added ~300 boxes in less than day 8)


OK, will add a Comment at the first Post !

loT4r
06/03/2009, 12:04 PM
This is faking great! Thanks man!

tatane_speed
10/03/2009, 12:03 PM
I can't use this INC :( i was added:
AddSoundBox(1, 1183, 2167.2605,1025.8525,10.9766, 0.0,0.0,0.0);
In OnGameModeInit but the song didn't play when i go to the soudbox
Can someone help me pleazeeeee!!

Littl3j0hNy
10/03/2009, 12:48 PM
Hi,
Look at the first Post !
You must add the 2 Functions into your Script !
SoundBoxInit(); - Under GameModeInit
SoundBoxExit(); - Under GameModeExit

CroAtTheTop
22/03/2009, 06:57 PM
Please help me....i know how to put in include folder .inc file....i added under #include <a_samp> the #include <SoundBox>
It says me this error:
C:\Documents and Settings\Administrator\Desktop\sampwonserevr2\game modes\WLBt.pwn(3) : fatal error 100: cannot read from file: "SoundBox"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

JOliver
22/03/2009, 10:24 PM
Amazing man.. Good Job

Littl3j0hNy
23/03/2009, 01:59 PM
Please help me....i know how to put in include folder .inc file....i added under #include <a_samp> the #include <SoundBox>
It says me this error:
C:\Documents and Settings\Administrator\Desktop\sampwonserevr2\game modes\WLBt.pwn(3) : fatal error 100: cannot read from file: "SoundBox"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Hi,
You must put the Include into your Pawno Directory.

- LJ

CroAtTheTop
23/03/2009, 03:08 PM
Please help me....i know how to put in include folder .inc file....i added under #include <a_samp> the #include <SoundBox>
It says me this error:
C:\Documents and Settings\Administrator\Desktop\sampwonserevr2\game modes\WLBt.pwn(3) : fatal error 100: cannot read from file: "SoundBox"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Hi,
You must put the Include into your Pawno Directory.

- LJ


I putted your Include into the Pawno Directory but it says me still that error

Littl3j0hNy
24/03/2009, 01:47 PM
Hi,
If the Include is in the Pawno Directory (pawno/include), the error must then be resolved.

- LJ

RyDeR`
24/03/2009, 03:11 PM
Hey LJ xD
Can you also give me the object id of a music player or a music box or someting else seems the same please?

Littl3j0hNy
24/03/2009, 03:36 PM
Hey LJ xD
Can you also give me the object id of a music player or a music box or someting else seems the same please?


Hi, OK but please wait

* LJ is watching and is looking for a few ID's

Littl3j0hNy
11/04/2009, 09:46 AM
Sorry for Doublepost, but i have edit the First Post.

But I have now added Object ID's of Boxes ! Have Fun !

- LJ

Lewwy
11/04/2009, 09:59 AM
Ahh it's weird somebody having the same nickname as me. :|
Nice job by the way.

HACKHERS
11/04/2009, 10:03 AM
I Can't UnderStand Can You Make Me Example Sound Id:1185 BoxId:1840 X,Y,Z,:1884.2949,-1463.4733,192.9261

Littl3j0hNy
11/04/2009, 10:08 AM
I Can't UnderStand Can You Make Me Example Sound Id:1185 BoxId:1840 X,Y,Z,:1884.2949,-1463.4733,192.9261


Hi, Can you give me the full CreateObject Line ?

- LJ

HACKHERS
11/04/2009, 10:19 AM
Create Object? Can You Make Me Full Of Code Please...

Sorry For My Bad English :-[

Weirdosport
11/04/2009, 10:46 AM
More than 999 boxes? Now that's asking for lag.

Littl3j0hNy
11/04/2009, 11:09 AM
Create Object? Can You Make Me Full Of Code Please...

Sorry For My Bad English :-[


Hi, You must give the full Code of the Object.
The Code looks like this: CreateObject(1840, 2502.426758, -1664.226807, 12.373929, 0.0000, 0.0000, 0.0000);
If you give me your Mapped Object i can create a Full Sound Code.

- LJ

[M2S]moe
11/04/2009, 11:28 AM
what happens if you enter an area where 2 soundboxes are playing at once?

Littl3j0hNy
11/04/2009, 02:09 PM
moe ]
what happens if you enter an area where 2 soundboxes are playing at once?


You will hear two Sounds, lol^^

- LJ

BP13
15/07/2009, 10:03 AM
is it possible to use music of a interior in certian areas. like from clubs and stuf or is it just that "skin choosing" music. alos how big is the radius.

Littl3j0hNy
15/07/2009, 01:58 PM
BP13 ]
is it possible to use music of a interior in certian areas. like from clubs and stuf or is it just that "skin choosing" music. alos how big is the radius.


I think Yes ^^ You need the SoundID and then you will hear it.

- LJ

BP13
15/07/2009, 03:10 PM
hmm. wheres a list of interior music?

Littl3j0hNy
15/07/2009, 04:14 PM
BP13 ]
hmm. wheres a list of interior music?


For SoundID, look in SA:MP Wiki or a Sound Tool here in the Forum.

- LJ

James_Alex
15/07/2009, 08:43 PM
awesome i'll use this 8)

BP13
15/07/2009, 09:49 PM
I have a problem with this. If the sound starts playing the radius is the entire SA no matter what I cahnge in the .inc

Littl3j0hNy
19/07/2009, 12:40 PM
BP13 ]
I have a problem with this. If the sound starts playing the radius is the entire SA no matter what I cahnge in the .inc


What did you mean?

- LJ

BP13
19/07/2009, 03:15 PM
the sound boxes radius is the entire SA. I tested it using that test sound thing on the main post

Littl3j0hNy
25/08/2009, 07:22 AM
Downloadlink is now fixed. Sorry for the downtime.