SA-MP Forums Archive
[NEED] Sound when player damage [NEED] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [NEED] Sound when player damage [NEED] (/showthread.php?tid=565956)



[NEED] Sound when player damage [NEED] - Fantje - 02.03.2015

Hi,

You have the script for souond when player damage or get hit?

Thanks


Re: [NEED] Sound when player damage [NEED] - Sithis - 02.03.2015

OnPlayerTakeDamage > PlayerPlaySound


Re: [NEED] Sound when player damage [NEED] - Fantje - 02.03.2015

DON'T WORK


Re: [NEED] Sound when player damage [NEED] - zork - 02.03.2015

Something simple.
PHP код:
public OnPlayerTakeDamage playeridissueridFloat:amountweaponidbodypart ) {
        
// I don't believe that's the sound ID for the sound you're looking for.
    
PlayerPlaySound(playerid10950.00.00.0); 
    
PlayerPlaySound(issuerid10950.00.00.0);
    return 
1;

If that's not the sound you're looking for then search it here: https://sampwiki.blast.hk/wiki/SoundID.


Re: [NEED] Sound when player damage [NEED] - Fantje - 02.03.2015

: error 025: function heading differs from prototype


Re: [NEED] Sound when player damage [NEED] - Arastair - 02.03.2015

You mean a sound like the damage sound in A/D?


Re: [NEED] Sound when player damage [NEED] - Fantje - 02.03.2015

What is A/D?


Re: [NEED] Sound when player damage [NEED] - CalvinC - 02.03.2015

Update your a_samp to the latest 0.3z version.


Re: [NEED] Sound when player damage [NEED] - Fantje - 02.03.2015

Fixed, I've updated includes