• 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


Messages In This Thread
Sound ID isn't working - by robertocaribbean - 2021-03-18, 10:47 PM
RE: Sound ID isn't working - by Emmett - 2021-03-18, 11:39 PM
RE: Sound ID isn't working - by Pinch - 2021-03-18, 11:58 PM
RE: Sound ID isn't working - by robertocaribbean - 2021-03-19, 12:18 AM
RE: Sound ID isn't working - by Emmett - 2021-03-19, 12:18 AM

Forum Jump: