open.mp forum
[Pawn] Sound ID isn't working - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] Sound ID isn't working (/showthread.php?tid=1785)



Sound ID isn't working - robertocaribbean - 2021-03-18

Hi there,

I want to place in my script, a death sound when a player dies. I looked in the folder "data/audioevents.txt" and found the sound I was looking for:
SOUND_PED_DEATH_CRUNCH 1189.

But unfortunately, that id doesn't play any sound. I tried with other ids and they work perfectly.

Code (I'm using weapon-config):

Code:
public OnPlayerDamageDone(playerid, Float:amount, issuerid, weapon, bodypart) {
? ? if (amount == 0.0) {
? ? ? ? PlayerPlaySound(playerid, 1189, 0.0, 0.0, 0.0);
? ? ? ? SendClientMessage(playerid, -1, "Death");
? ? }
? ? return 1;
}



RE: Sound ID isn't working - Emmett - 2021-03-18

I don't think that sound is available anymore. I tried, but it doesn't work. I tried to find that sound ID in the an app for sounds, textures, etc. And I couldn?t find it. I tried another ID (SOUND_SLAP - 1190) and it works well.


RE: Sound ID isn't working - Pinch - 2021-03-18

What GTA version are you using? I'm assuming that Emmett and you are using 600mb version, that version lacks tons of sounds.


RE: Sound ID isn't working - robertocaribbean - 2021-03-19

(2021-03-18, 11:58 PM)Pinch Wrote: What GTA version are you using? I'm assuming that Emmett and you are using 600mb version, that version lacks tons of sounds.



I'm using the full version


RE: Sound ID isn't working - Emmett - 2021-03-19

Idk.. xd



[Image: image.png]

[Image: image.png]