[Ajuda] Barulho - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Barulho (
/showthread.php?tid=520886)
Barulho -
BigRet - 20.06.2014
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;
}
Re: Barulho -
ProKillerpa - 20.06.2014
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
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;
}
Re: Barulho -
Kimossab - 20.06.2014
ou entгo troca o playerid por issuerid