• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Sound ID isn't working
#1
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;
}
  Reply
#2
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.
  Reply
#3
What GTA version are you using? I'm assuming that Emmett and you are using 600mb version, that version lacks tons of sounds.
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#4
(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
  Reply
#5
Idk.. xd



[Image: image.png]

[Image: image.png]
  Reply


Forum Jump: