[Ajuda] Barulho
#1

Eu criei um barulho aquele barulho de Ad de quando pega um tiro faz o barulho...

So que so escuta o barulho quando Vc toma um tiro nгo quando vc da um tiro

Oque eu faзo ?

pawn Код:
forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
 PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
 return 1;
}
Reply
#2

PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloatamountweaponid)
{
    if(
damagedid != INVALID_PLAYER_ID)
    {
        
PlayerPlaySound(playerid,17802,0.0,0.0,0.0); //Quem Atirou
        
PlayerPlaySound(damagedid,17802,0.0,0.0,0.0); //Quem tomou o tiro
    
}
    return 
1;

Reply
#3

ou entгo troca o playerid por issuerid
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)