SOUND on player damaged
#1

How to play sounds if player attack another player not with PlayAudioStreamForPlayer ?
Reply
#2

Few points :

1- OnPlayerTakeDamage
2- https://sampwiki.blast.hk/wiki/PlayerPlaySound
Reply
#3

pawn Code:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
    PlayerPlaySound(...);
    return true;
}
Something like this should work.
Reply
#4

SPA, You are asking to play the sound for the player WHO takes DAMAGE or GIVES DAMAGE ?
Reply
#5

Quote:
Originally Posted by iAnonymous
View Post
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?
Reply
#6

Quote:
Originally Posted by MMOSlot
View Post
What eXe said should work, and, Anonymous, why the hell are you using punctuation like that?


Got a problem with that?
Reply
#7

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)