Calculating amount of damage a certain player made.. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Calculating amount of damage a certain player made.. (
/showthread.php?tid=265432)
Calculating amount of damage a certain player made.. - [L3th4l] - 30.06.2011
I'm stuck here. How exactly can I calculate the amount of damage a certain player made? Then I would be displaying that amount OPD. This is not a request, but more like steps or ideas on how to get this working.
Re: Calculating amount of damage a certain player made.. -
=WoR=Varth - 30.06.2011
Ideas:
SetTimerEx
GetPlayerHealth
SetPVarFloat
Re: Calculating amount of damage a certain player made.. -
Tommy_Mandaz - 30.06.2011
Great include that does what you want:
http://forum.sa-mp.com/showthread.ph...yershootplayer
Re: Calculating amount of damage a certain player made.. -
=WoR=Varth - 01.07.2011
Quote:
Originally Posted by Tommy_Mandaz
|
He mean all the damage, not only weapon damage.
Re: Calculating amount of damage a certain player made.. -
Shadoww5 - 01.07.2011
Quote:
Originally Posted by varthshenon
He mean all the damage, not only weapon damage.
|
lol What ?
When a player shoot another there's only weapon damage unless he falls off a building, for example.
Re: Calculating amount of damage a certain player made.. -
PotH3Ad - 01.07.2011
It's possible but it will not be accurate, no point in trying.
You have to detect if a player is aiming at another player, if they are, detect if they are pressing the fire key and if they have a weapon in hand. You also have to detect if the player that is being aimed at lost health recently.
Re: Calculating amount of damage a certain player made.. -
=WoR=Varth - 01.07.2011
Quote:
Originally Posted by Shadoww5
lol What ?
When a player shoot another there's only weapon damage unless he falls off a building, for example.
|
I don't get what's your purpose of posting this with quote my post.
Re: Calculating amount of damage a certain player made.. -
Shadoww5 - 01.07.2011
Quote:
Originally Posted by varthshenon
I don't get what's your purpose of posting this with quote my post.
|
Because I was talking to you
Re: Calculating amount of damage a certain player made.. -
Shadoww5 - 01.07.2011
It doesn't make any sense for who doesn't want understand.
I 'have' many posts bacause I like helping other users.