Jump to content

[HELP] Trying to make my first script


Recommended Posts

Posted

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

Posted
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?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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...