Calculating amount of damage a certain player made..
#1

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.
Reply
#2

Ideas:
SetTimerEx
GetPlayerHealth
SetPVarFloat
Reply
#3

Great include that does what you want:
http://forum.sa-mp.com/showthread.ph...yershootplayer
Reply
#4

Quote:
Originally Posted by Tommy_Mandaz
Посмотреть сообщение
Great include that does what you want:
http://forum.sa-mp.com/showthread.ph...yershootplayer
He mean all the damage, not only weapon damage.
Reply
#5

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.
Reply
#6

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.
Reply
#7

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.
Reply
#8

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
Reply
#9

It doesn't make any sense for who doesn't want understand.

I 'have' many posts bacause I like helping other users.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)