SA-MP Forums Archive
How to make ding sound on player give damage? - 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: How to make ding sound on player give damage? (/showthread.php?tid=533618)



How to make ding sound on player give damage? - SpikY_ - 25.08.2014

My question is same as my topic .. pls help me


Re: How to make ding sound on player give damage? - F1aw1ess - 25.08.2014

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID) //If not self inflicted
    {
        PlayerPlaySound(playerid,6401,0,0,0); //Plays the sound - Change '6401' to whatever sound you want to play
    }
    return 1;
}



Re: How to make ding sound on player give damage? - Mzake - 25.08.2014

Well its easy its like :
pawn Код:
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0); // (blank sound) No Sound/music
if u put the Jezzy's club coordinations u will get that club music, so i hope u understanded someting
U need to find the bell sound Coordinations or idk lol


Re: How to make ding sound on player give damage? - SpikY_ - 25.08.2014

tHX BRO .. I KNOW PLAYERPLAYSOUND BUT I WAS CONFUSED ON ONPLAYERGIVEDAMAGE THX +REP FOR YOU BOTH

SRY FOR THE CAPS .. KEYBOARD SUCKS


Re: How to make ding sound on player give damage? - Mzake - 25.08.2014

Quote:
Originally Posted by NGEN123
Посмотреть сообщение
tHX BRO .. I KNOW PLAYERPLAYSOUND BUT I WAS CONFUSED ON ONPLAYERGIVEDAMAGE THX +REP FOR YOU BOTH

SRY FOR THE CAPS .. KEYBOARD SUCKS
Yeah no problem, and bro can find Sounds IDs HERE