SA-MP Forums

Go Back   SA-MP Forums > Other > Everything and Nothing

Reply
 
Thread Tools Display Modes
Old 07/01/2018, 01:07 PM   #1
Sting.
Gangsta
 
Sting.'s Avatar
 
Join Date: May 2011
Location: Malaysia
Posts: 868
Reputation: 122
Question Sound ID for m4/ak

Does anyone know the sound ID for m4/ak47? Like a single shot sound. I could find it at GTA SA sfx, general sound, library 137, sound 004. But the problem is, how do you get the sound ID? I've tried many apps that are out there, but they don't seem to have it.

There's this list: https://pastebin.com/sA5DNFaw

But how do you like preview the sound? Any ideas anyone?
Sting. is offline   Reply With Quote
Old 07/01/2018, 01:56 PM   #2
RIDE2DAY
Huge Clucker
 
RIDE2DAY's Avatar
 
Join Date: Jul 2015
Location: Modena, Italy
Posts: 219
Reputation: 375
Default Re: Sound ID for m4/ak

I think weapon sounds aren't available in SA-MP yet. Maybe you might want to check the AudioEvents.txt file from the data folder, I couldn't find weapon sounds tho.
RIDE2DAY is offline   Reply With Quote
Old 07/01/2018, 02:06 PM   #3
Sting.
Gangsta
 
Sting.'s Avatar
 
Join Date: May 2011
Location: Malaysia
Posts: 868
Reputation: 122
Default Re: Sound ID for m4/ak

Quote:
Originally Posted by RIDE2DAY View Post
I think weapon sounds aren't available in SA-MP yet. Maybe you might want to check the AudioEvents.txt file from the data folder, I couldn't find weapon sounds tho.
I tried man, all the same things. Could not find weapon sounds, too.
Sting. is offline   Reply With Quote
Old 07/01/2018, 02:22 PM   #4
Isolated
Gangsta
 
Isolated's Avatar
 
Join Date: Mar 2013
Location: United Kingdom
Posts: 834
Reputation: 155
Default Re: Sound ID for m4/ak

Why don't you use an audio streamer? Find the sound fx you want, upload it somewhere and stream it into your server? I know it's a little hacky and in no way ideal, but it'd work?
Isolated is offline   Reply With Quote
Old 07/01/2018, 02:44 PM   #5
Sting.
Gangsta
 
Sting.'s Avatar
 
Join Date: May 2011
Location: Malaysia
Posts: 868
Reputation: 122
Default Re: Sound ID for m4/ak

Quote:
Originally Posted by Isolated View Post
Why don't you use an audio streamer? Find the sound fx you want, upload it somewhere and stream it into your server? I know it's a little hacky and in no way ideal, but it'd work?
What your suggesting is what I even thought of, but as you see I'm planning to make gun shot sounds each time a player hits some key, imagine the stream client message spamming the chat box each time a player hits a key, etc.Spacebar..... How bad it will look. That's why I'm looking for PlayPlayerSound, which should be better. Anyway, thanks for sharing your opinion.
Sting. is offline   Reply With Quote
Old 07/01/2018, 04:33 PM   #6
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 618
Reputation: 287
Default Re: Sound ID for m4/ak

Pretty sure you can't access those sounds in SA-MP.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 07/01/2018, 04:59 PM   #7
ad@m
Banned
 
Join Date: Mar 2016
Location: https://steamcommunity.com/id/zuley0101/
Posts: 156
Reputation: 154
Default Re: Sound ID for m4/ak

Quote:
Originally Posted by Isolated View Post
Why don't you use an audio streamer? Find the sound fx you want, upload it somewhere and stream it into your server? I know it's a little hacky and in no way ideal, but it'd work?
Every gun would make the same sound no?
ad@m is offline   Reply With Quote
Old 07/01/2018, 05:09 PM   #8
Sting.
Gangsta
 
Sting.'s Avatar
 
Join Date: May 2011
Location: Malaysia
Posts: 868
Reputation: 122
Default Re: Sound ID for m4/ak

Then I suppose its better to use Audio Stream for player then, but could we like disable the messages from being shown as Client messages? cause that is what will spam the chat box than.....
Sting. is offline   Reply With Quote
Old 09/01/2018, 01:02 PM   #9
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Posts: 1,584
Reputation: 466
Default Re: Sound ID for m4/ak

Audio Plugin would be the best idea. Using default Audio Streams is very bad for this as there is a noticable delay between triggering the sound and the playback, this is especially bad for sounds that are short and played in a high frequency (like gun sounds).

The alternative would be making the sound longer and repetetive at the exact same frequency as the gunfire, so you don't play the sound on each shot, but rather for the whole duration it is shooting. This would probably not perfectly sync with the actual gun shots but it's, as far as I can see, the best approach using default Audio Streams without spamming the chat or having sounds interrupted/not played because of the delay.
NaS is offline   Reply With Quote
Old 09/01/2018, 01:57 PM   #10
Meller
Banned
 
Join Date: Dec 2016
Posts: 635
Reputation: 132
Default Re: Sound ID for m4/ak

/audiomsg

disables the Audio Stream msg
Meller is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound id for basketball sound hit to ground MerryDeer Scripting Help 1 16/11/2016 12:10 PM
Car Sound SonicFreeStyle Scripting Help 6 19/08/2014 07:23 AM
[FilterScript] Car Sound BarbaNegra Lançamentos/Releases 21 11/08/2014 02:08 AM
[sound] how do I make a sound of siren igal4576 Scripting Help 2 23/06/2012 05:47 PM
Sound maltheus. Help Archive 8 25/01/2010 04:37 PM


All times are GMT. The time now is 01:03 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.