Jump to content

[HELP] Trying to make my first script


Recommended Posts

Hi, Im trying to make my first script ( I stopped with making HP shop Was to hard )

And now im trying to make something easier.

So im trying to make something like:

You shoot a weapon and you hear a explosion sound,

Like in "The Ballad of Gay Tony" the AA12 sound.

So when you shoot an AK-47 you hear that sound like:

Baam.

Just make a LITTLE start for me NOT to hard Please! :lol:

Then ill do the rest so i can learn how to script. :idea:

PS. My HP shop was/is a FAIL

Link to comment
something like

bad answer.

good answer:

I opened MTA WIKI.

Then i looked into Client side functions, checked Audio functions and found 3 functions that could help me:

playSoundFrontEnd
playSound
playSound3D

after i read all descriptions i know that playSoundFrontEnd isn't what i need, but i can use playSound to play fire sound, but it would be better to place the sound in san andreas world, so anybody can hear me shooting with different sound, so i choosed playSound3D

Should i finish this little tutorial of thinking by yourself?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...