SA-MP Forums Archive
[Pedido] Som+Damage - 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: [Pedido] Som+Damage (/showthread.php?tid=445572)



Som+Damage - s4kuL - 21.06.2013

Queria um fs que mostrasse em textdraw quanto tiro ou perdeu de damage e que fizesse um som ao acertar/tomar tiro..

vlw.


Re: Som+Damage - SeV_ - 21.06.2013

Gamemode AAD_Death_zone Tem Estas Funcoes.

lembre-se de Deixar os Creditos do Criador.


Re: Som+Damage - [toːkʲoː]_Shinjuku_.] - 22.06.2013

isso pode ajudar! https://sampforum.blast.hk/showthread.php?tid=445474


Respuesta: Som+Damage - GabrielRibeiro - 22.06.2013

Ta ai amigo.

pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount,weaponid)
{
    if (damagedid != INVALID_PLAYER_ID)
    {
        new string[20];
        format(string, sizeof(string), "~y~-~r~%.0f", amount);//Aqui й a mensagem que aparece!
        GameTextForPlayer(playerid, string, 1000, 6);
        GameTextForPlayer(damagedid, string, 1000, 5);
        PlayerPlaySound(damagedid, 17802, 0.0, 0.0, 0.0);// som do "sino"
    }
    return 1;
}
Amigo sou novo no forum e nгo conheзo muito bem a linguagem mais espero que funcione.
Obs:nгo testei!