SOUND on player damaged - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: SOUND on player damaged (
/showthread.php?tid=518201)
SOUND on player damaged -
SPA - 08.06.2014
How to play sounds if player attack another player not with PlayAudioStreamForPlayer ?
Re: SOUND on player damaged -
iAnonymous - 08.06.2014
Few points :
1- OnPlayerTakeDamage
2-
https://sampwiki.blast.hk/wiki/PlayerPlaySound
Re: SOUND on player damaged -
eXeDev - 08.06.2014
pawn Code:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
PlayerPlaySound(...);
return true;
}
Something like this should work.
Re: SOUND on player damaged -
iAnonymous - 08.06.2014
SPA, You are asking to play the sound for the player WHO takes DAMAGE or GIVES DAMAGE ?
Re: SOUND on player damaged -
MMOSlot - 08.06.2014
Quote:
Originally Posted by iAnonymous
SPA, You are asking to play the sound for the player WHO takes DAMAGE or GIVES DAMAGE ?
|
What eXe said should work, and, Anonymous, why the hell are you using punctuation like that?
Re: SOUND on player damaged -
iAnonymous - 08.06.2014
Quote:
Originally Posted by MMOSlot
What eXe said should work, and, Anonymous, why the hell are you using punctuation like that?
|
Got a problem with that?
Re: SOUND on player damaged -
Parallex - 09.06.2014
Here, it will play a "Ding" Sound when a player damages other one:
pawn Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
return 1;
}