SA-MP Forums Archive
How to take/change player damage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to take/change player damage (/showthread.php?tid=514314)



How to take/change player damage - sagosagi1 - 20.05.2014

Hi all
How can i change the damage blood action/animation of taking player damage from weapon x to weapon y?
For example, if player take damage by boxing, it's need to look as damaged from katana.

This is not good, because it only change the animation without the blood actions.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID) // If not self-inflicted
    {            
        ApplyAnimation(playerid, animlib, animname, 4.0, 0, 0, 0, 0, 0);
}
}


Re: How to take/change player damage - Abagail - 20.05.2014

I don't think you can. How-ever, there may be some particle effects that may help you. Check out: http://gta-sa-mp.de/forum/index.php?...egory&objID=59


Re: How to take/change player damage - sagosagi1 - 20.05.2014

Quote:
Originally Posted by Abagail
Посмотреть сообщение
I don't think you can. How-ever, there may be some particle effects that may help you. Check out: http://gta-sa-mp.de/forum/index.php?...egory&objID=59
Please give me an exmaple of what you say "particle effects".